Please help to edit the formula

#1
I do backtest with the following formula and result not bad.When I backtest , backtest results in different graphics in different
my wish ;
when dahl cross up the avg and dahl Is greater than 10 Buy
when dahl cross down the avg and dahl Value is less than 90 short

How do I edit

P=7;Q=9;R=8;AV=9;
p = Optimize("Period",P,21,29,1);
q = Optimize("Q ",Q,5,30,1);
r = Optimize("R lookback",R,5,25,1);
Av = Optimize("S Average",AV,2,21,1);

M=JurikJMA(C,q);
Dahl = TEMA( ( M - Ref(M,-p)- LLV (M - Ref(M,-p),r) )/(HHV(M -
Ref(M,-p),r)-(LLV(M - Ref(M,-p),r))),r)*100 ;

Buy = Cover = Cross (dahl,JurikJMA(dahl,av))AND dahl >10;
Short = Sell = Cross (JurikJMA(dahl,av), dahl)AND dahl<90;


GraphXSpace=2;
Plot(Dahl,"Dahl",4,4);
Plot(JurikJMA(Dahl,av),"Avg",7,4);
 

Similar threads

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Name:Phone:
Email:City:
State:
Are you a day trader?