Trade options:
Trailing Stop (TS): True or False (on or off)
Take Profit (TP): True or False (on or off)
Variables (six variables):
Var 1: Current Price
Var 2: Current Simple Moving Average (SMA) where SMA length would be user defined.
Var 3: UpTrend Confirm, which would be current SMA plus an X number of pips where X is user defined.
Var 4: DownTrend Confirm, which would be current SMA minus an X number of pips where X is user defined.
Var 5: ExitBuy Signal, which would be current SMA minus an X number of pips where X is user defined.
Var 6: ExitSell Signal, which would be current SMA plus an X number of pips where X is user defined.
Entry Rules:
Buy when Var 1 > Var 3,
and when current bar close is greater than previous bar close and the previous bar close is greater than the close on the bar before that...
Close [0] > Close [1], and Close [1] > Close [2].
Sell when Var 1 < Var 4,
and when current bar close is less than previous bar close and the previous bar close is less than the close on the bar before that...
Close [0] < Close [1], and Close [1] < Close [2].
Only one trade at a time.
Exit Rules:
Exit an open buy when Var 1 < Var 5, or
if Trailing Stop or if Take Profit is "True" and triggered.
Exit an open sell when Var 1 > Var 6, or
if Trailing Stop or if Take Profit is "True" and triggered.
Thank you
Trailing Stop (TS): True or False (on or off)
Take Profit (TP): True or False (on or off)
Variables (six variables):
Var 1: Current Price
Var 2: Current Simple Moving Average (SMA) where SMA length would be user defined.
Var 3: UpTrend Confirm, which would be current SMA plus an X number of pips where X is user defined.
Var 4: DownTrend Confirm, which would be current SMA minus an X number of pips where X is user defined.
Var 5: ExitBuy Signal, which would be current SMA minus an X number of pips where X is user defined.
Var 6: ExitSell Signal, which would be current SMA plus an X number of pips where X is user defined.
Entry Rules:
Buy when Var 1 > Var 3,
and when current bar close is greater than previous bar close and the previous bar close is greater than the close on the bar before that...
Close [0] > Close [1], and Close [1] > Close [2].
Sell when Var 1 < Var 4,
and when current bar close is less than previous bar close and the previous bar close is less than the close on the bar before that...
Close [0] < Close [1], and Close [1] < Close [2].
Only one trade at a time.
Exit Rules:
Exit an open buy when Var 1 < Var 5, or
if Trailing Stop or if Take Profit is "True" and triggered.
Exit an open sell when Var 1 > Var 6, or
if Trailing Stop or if Take Profit is "True" and triggered.
Thank you