StochasticMACD from Nov 2019 TASC

This is the place to discuss EdgeRater Chart Script

Moderator: Chris White

Post Reply
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

StochasticMACD from Nov 2019 TASC

Post by henry1224 »

Under the Parameters Tab

periods Double 50 2 1000

HERE IS THE CODE UNDER THE SCRIPT TAB


HP:=HHV(H,Periods);
LP:=LLV(L,Periods);
MA12:=EMA(C,12);
MA26:=EMA(C,26);
ST12:=(MA12-LP)/(HP-LP);
ST26:=(MA26-LP)/(HP-LP);
STMACD:(ST12-ST26)*100,width2,ColorBlue;
Signal:EMA(STMACD,9),Width2,ColorRed;
FillRgn(STMACD>Signal,STMACD,Signal),Brush#800000FF;
FillRgn(STMACD<Signal,STMACD,Signal),Brush#80FF0000;
MaxX:=Max(STMACD,Signal);
MinX:=Min(STMACD,Signal);
FillRgn(MinX>0,MinX,0),Brush#8000FF7F;
FillRgn(MaxX<0,MaxX,0),Brush#80FFB6C1;
@SETHLINE(0);
Post Reply