I'm trying to code an indicator that I will later use inside a strategy and not sure how to do the following:
For example:
Condition:
If the MACD crosses up x bars back,
Entry into position
Then place an arrow when the small trigger lines cross up.
I believe if I understand how to code this, then I would be able to use the same methodology to use the same code for some other conditions inside my code.
Any help would be greatly appreciated. Thanks.
Ryan
Comment