Sorry Eugene, thanks so much for helping
I am trying to integrate an additional entry condition on the entry and ATR Trailing Stop on the exit into this Wider Projection Band System
Entry -
1)Trigger based on the Parameter set below set in the original script
paramPer = CreateParameter("Band lookback", 20, 2, 40, 1);
paramDip = CreateParameter("Limit price", 0.96, 0.9, 0.99, 0.01);
2) If possible I would like to include a Momentum (12, Close) parameter based on a 3 Min Intraday scale.
So once the Band Limit value is set by the 1st condition, the trade would trigger if the value is equal or lower than the Band limit and hits the Momentum parameter.
Exit
1) ATR Trailing Stop (Parameter)- ATR Per. 3-21 Days, and ATR Factor, 1.6 to 3.5 - This would need to be set in place on a 3 Min Intraday scale on the next bar after entry.
2) Time Based Parameter that will sell at market (1 day after entry to 20 days after entry)
I would also like to plot the entry and exits if possible, and have the Quote screen reflect the threshold of the entry and exits values.
I hope this helps and makes sense.
CODE:
Please log in to see this code.