Hi
Need help coding… If my system have closed a position and I want the system to wait until MA(x) is crossed until it take a new position. How do I code that?
Add
AND close CROSSES OVER MA(x)
to your conditions to enter a trade.
Hello,
Here is a proposal so that it doesn’t rebuy if the MA was not crossed earlier.
once aim = 0
// your conditions
IF close crosses over Average[X] THEN
aim = 1
ENDIF
IF Not LongOnMarket and aim = 1 and conditions THEN
// Buy instruction
aim = 0
ENDIF