BREAK AND RETEST OF MA
-
Please, I want to create a robot that would take a trade when price breaks and retest of moving averages.
for instances, if price breaks moving average 50, let the bot take trade only when the price retests the broken moving average.
Something like this is what i want.
Thanks
-
set conditions and flags in separate trees,
no buy trade - candle 0 close x> MA - set a flag true
check flag true - candle 0 close x< - place buy - set flag back to false
no sell trade create another 2 opposite trees for sell
This will give you a good start to work with -
@jstap please can you give me and example using a shared link
thanks
-
@jstap is it something like this?
-
Yes, for testing I would set timeframes to current