September 25, 2019

This week we answer questions live and look deeper into Eric’s trading system.

Starting point for EasyLanguage conversion. (Note: if you don’t write code or you don’t have TradeStation, this is just a bonus and not required to benefit from our looking into this strategy)

{Incomplete 9/25/2019}

{Incomplete 9/25/2019}
 Inputs:
 ATRlookback(30),
 FastMA(20),
 SlowMA(50);
 Vars:
 ATR(0),
 fast(0),
 slow(0),
 size(0),
 BEtrail(0);
 If H - L > 0 then begin
 ATR = avgtruerange(atrlookback);
 fast = average(c,fastma);
 slow = average(c,slowma);
 size = 2000/atr;
 {entry}
 If (c > o and c > ((H-L) * .7 + L) or C > H[1])
 And fast > fast[1]
 And fast[1] > fast[2]
 And (slow > slow[1] or slow - slow[3] > (ATR * -.12))
 And c < fast + (ATR * 2.5) And C < slow + (ATR  * 3.5) And (C > fast or c > slow)
 And fast < (slow + (ATR *2.5)) And c > average(c,200)
 Then buy size shares this bar close;
 end;
 If marketposition = 1 then begin
 {1st profit target}
 If c > entryprice + (2 * ATR) then sell (currentshares * .25) shares this bar close;
 {2nd profit target} 
 If c > entryprice + (5 * ATR) then sell (currentshares * (1/3)) shares this bar close;
 {Big Extension Trailing Stop
 If highest(c,5) - lowest(c,5) > (3 * ATR) 
 Or C - fast > (4 * ATR)
 Or C - slow > (8 * ATR)
 Or fast - slow > (3 * ATR)
 ??? not sure how to keep this "true" without resetting
 }
 Sell next bar entryprice - (3 * ATR) stop;
 If highest(C,barssinceentry) > entryprice + (5 * ATR) 
     then Sell next bar highest(C,barssinceentry) - (1.5 * ATR) stop;
 If barssinceentry > 199 then sell this bar close;
 end;