Counting candles before buy/sell gets triggered.
-
Hi i am not a coder.What I am trying to do is link up multiple indicators that operate together only when they are within a certain candle stick range of one another. Since all buy/sell signals dont line up all at once in most cases. I saw a way on your software called width. But im not sure if thats what the option is for not. If it is then am i correct in understanding if i input 3 in width function, from the current candle... it will count -3 and +3 candles?
-
Another way to accomplish this is to have only one indicator be the "trigger" utilizing the cross criteria (x>, x<) and let the others "pass" if they are above or below your condition (ex. RSI > 50 AND fast MA x> slow MA).
-
@luqmaan It depends on oyour conditions. Can you please share your project to take a look at it?
-
@l-andorrà said in Counting candles before buy/sell gets triggered.:
conditions
Ok well i can explain it to u and perhaps u can help.
I basically want to only buy or sell when 20/50sma line up with macd.I might add more indicators and play around with it at a later stage. But i basically just wana understand the logic behind creating an EA that only trades when all conditions are in alighnment at "roughly" the same time.
Macd for eg is a lagging indicator.
So it wont line up with my SMA in most cases.That means that there might be opportunity to buy or sell at that momment but it wont trigger anything.
If i can have a parimiter of lets between the last 5 candles starting from the current that at that range all indicators need to be true within that range, and then it triggers my buy/sell. That would be ideal.