Hi all,
Would any kind soul help me out?
I'm trying to code the following for ES:
1. For discussion sake, we will use 10MA & 20MA crossovers.
2. When 10MA < 20MA, SHORT. When 10MA > 20MA, LONG.
3. Profit Target = 3pt, Stop Loss = 2pt.
4. If StopLoss breached, then close ALL.
5. When Profit Target reached, scale out HALF the size. Let the other half ride until MA cross again or stopped out.
I'm able to code up to the StopLoss and Profit Taking part, but really loss on how to code the scale-out part.
Can anyone please help me?
Would any kind soul help me out?
I'm trying to code the following for ES:
1. For discussion sake, we will use 10MA & 20MA crossovers.
2. When 10MA < 20MA, SHORT. When 10MA > 20MA, LONG.
3. Profit Target = 3pt, Stop Loss = 2pt.
4. If StopLoss breached, then close ALL.
5. When Profit Target reached, scale out HALF the size. Let the other half ride until MA cross again or stopped out.
I'm able to code up to the StopLoss and Profit Taking part, but really loss on how to code the scale-out part.
Can anyone please help me?
Comment