Comment on Managing your Script

[email protected] commented on 08 May 2016, 12:59 PM

Buy Script:
SET MA1 = SimpleMovingAverage(CLOSE, 28)
SET MA2 = SimpleMovingAverage(CLOSE, 14)

I want to to test different exits
1. Stop Loss if price goes down by 1%
2. Take Profit if price goes up by 2%
3. Exit when the gap between MA1 and MA2 reduces.

please help code the exit.

Also is there a way to carry the entry price from the Buy script to the exit script.

View the full comment thread »