Series of candles
-
Hi. I would like to make a condition, that passes, if the 10 and 15 EMA cross the 50 SMA somewhere between lets say candle ID 20 and 50. is there a way to do this in a simple way, or do I really have to make a condition for each candle ID? Thanks for your help.
-
@sirluk You could use flags so when MA crosses it's set to true so when the next crosses a trade is placed, make sure the flags are reset, also when a MA has crossed it becomes above or below so when another crosses both are in the place you need.
-
@sirluk said in Series of candles:
Hi. I would like to make a condition, that passes, if the 10 and 15 EMA cross the 50 SMA somewhere between lets say candle ID 20 and 50. is there a way to do this in a simple way, or do I really have to make a condition for each candle ID? Thanks for your help.
you could draw up a loop code, constantly looking over the last X to X candles. 1 block to rule them all....well, like 3 or 4 would be needed in total...But theres a project in tutorials. ZigZag, written by Miro. He uses a loop in there.
-
@tipsywisdom that sounds like it could work. Thanks a lot!