Derived straight from the moving average basic example, except a third moving average is added to tighten the sell rule. 20 bull crossover 100 = buy. 20 bear crossover 50 = sell. Performed on QQQ.

Does anyone have code that uses ATR as a sell rule?

Author