Can anyone help me with this. I'm trying to code a strategy that only takes signals if indicatorline1 was below indicatorline2, for the last n bars.
Instead of writing n lines of code for comaring, I thought I should use a loop.
Maybe someone has already done something like this and can give me some help.
Thanks,
Marco

Comment