I forgot where I got these indicators from but it is pretty interesting.
 

 

 

 Momentum  Divergence 
 

 {Close Plot - Creates Plot1}
 LBP:=Input("Look Back Period",5,200,15);

 
CloseValue:=If(HHV(CLOSE,LBP)-LLV(CLOSE,LBP)<>0,HHV(CLOSE,LBP)-LLV(CLOSE,LBP),50);

 ClosePlot:=100*(CLOSE-LLV(CLOSE,LBP))/CloseValue;
 ClosePlot;
 

 

 {MACD Plot - Creates Plot2}
 FastMA:= Input("FastMA periods",5, 200, 12);

 SlowMA:= Input("SlowMA periods",5, 200, 26);
 LBP:=Input("Look Back Period",5,200,15);
 MyMACD:=Mov(CLOSE,FastMA,E)-Mov(CLOSE,SlowMA,E);
 MACDvalue:=

 If(HHV(MyMACD,LBP)-LLV(MyMACD,LBP)<>0,{THEN}
 HHV(MyMACD,LBP)-LLV(MyMACD,LBP), {ELSE}
 50);
 MACDplot:=100*(MyMACD-LLV(MyMACD,LBP))/MACDvalue;
 
 MACDplot;
 

 

Reply via email to