How to check if price crosses indicator?
Created at 23 May 2015, 02:16
How to check if price crosses indicator?
23 May 2015, 02:16
I've currently got a multi-time frame EMA indicator, and am trying to write up a simple if statement to check if the price has crossed a particular line.
Sounds simple enough but am having trouble:
This is source of the indicator:
/algos/indicators/show/783
Any help would be appreciated.
Thanks.
Spotware
15 Jun 2015, 15:28
Dear Trader,
The following links may be useful for you:
Referencing Custom Indicators: /api/guides/indicators#el8
HasCrossedAbove function: /api/reference/functions/hascrossedabove-6119
We do not provide coding assistance services. We more than glad to assist you with specific questions about cAlgo.API. You also can contact one of our Partners or post a job in Development Jobs section for further coding assistance.
@Spotware