Problem loop
-
I have been trying for some time to make a "loop" or some way for my indicator to draw me whenever those conditions have been fulfilled previously in the graph according to the number of sails I stipulate.
Could someone send me an example?
-
@yerlin
Hi, I can give you a loop example of your system if you give me a little more information about the conditions(indicator value, time or candle id). -
@seb-0 For example, I would like you to indicate in the graph some arrows when the rsi crosses the 30 level up and when it crosses the 70 level down.
-
@yerlin
Do you want these arrows :- everytime the RSI crosses up the 30 level(no matter what happened before), same thing with the 70 level ? or
- when the RSI crosses down the 70 level if it crossed up the 30 level only a few time ago ?
-
@seb-0 Only the first one, every time the RSI crosses the 70 and 30 level, but I mean during the previous 20 or "x" sails.
-
@yerlin
I suppose by sails you mean candle, then this should work :
https://fxdreema.com/shared/if9MclbEb
However i have an issue with my Fxdreema account so i can't check that it works well. -
@seb-0 Thank you very much. I'm going to try it out and see if I can understand how it works.
-
@seb-0 shared/QZJSgnV6d
I have been testing what you sent me but I can not add it as I would like to my indicator, I attach the link to my indicator as I would like to load the indicator in the graph I get the arrows in the past history, not only in the future
-
@yerlin said in Problem loop:
shared/QZJSgnV6d
Your structure is not searching at the past. It will only work from the present candle onwards. Searching loops to past candles are not trivial to do. Can't you find a custom indicator doing that job?