Is it possible to code “buy at market if indicator x is touched”?
Thanks for the help
As for as I know, if is touched buy inmediatly is not possible at the moment, system will wait until current candle finish.
I found other ways to get similar or better price sometimes when this occours, just let us know wich indicators should be touched to code your premise.
Cheers.
Thanks for replying Adolfo. The MA[5](high) of the previous bar.
Yes it’s possible. You have to test the OHLC values (at least 2 of them) of the previous period if it were above or below the indicator you’d like to test.
Thanks Nicolas.
Something like this?
a = MA[5](high)
b = L<=a AND H>=a
What do I do next please?
Almost good! Something like this :
a = MA[5](high)
b = Low[1]<=a AND High[1]>=a