mark past MA crossovers
-
Hi fxDreema!
I need something (EA or Script) that show me when a MA crossover happened in the past, and it should mark it with a symbol or something. So ideally, once added this EA or Script on the chart, I should see a symbol every time a MA crossover happened until last candle.
Is it possible with fxDreema?Many thanks,
Alessandro -
it is possible with fxdreema, but first you need learn working with fxdreema on easier way to understand logic
-
Actually it was more than 6 months that I work with fxDreema and I can say I understood its logic...at least for building EA that work on forward conditions, but I can't figure out how trace something happend in the past. So, if you can help me you are welcome...
Thanks,
Alessandro -
work in onInit section or use block pass once, use loop function block or counter (from counters), use increased or decreased variable for looking candles in condition block with indicators and this crossing you can mark with something from objects with specific time/candle ...

-
Well, this thing is... I can't say impossible, but it will be ugly. The logic itself is really easy - "for" loop, checking values in it and breaking the loop when the crossover is detected. There is a block to start loop in fxDreema, but then you can't break it. I would say that the whole idea is much better to be made as a custom indicator.
-
Many thanks for your reply.