+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

Stoch Signals

Stoch Signals in AFL refer to trading signals generated from the Stochastic Oscillator. Integrating an [AmiBroker data feeder] enables accurate data input for Stochastic calculations, facilitating the identification of potential buy or sell signals based on this indicator.

/
_SECTION_BEGIN("DblStoch Signals");
period = 10;
RawStoch1 = StochK(period,1);
Ema13 = EMA(RawStoch1,3);
RawStoch2 = (Ema13-LLV(Ema13,period))/(HHV(Ema13,period)-LLV(Ema13,period))*100;
Cycles10 = EMA(Rawstoch2,3);


//DblStoch Signals
WBDblStochSignal = IIf(Trough(Cycles10,0.01,1) < 40 AND TroughBars(Cycles10,0.01,1)==1, H,
IIf(Peak(Cycles10,0.01,1) > 70 AND PeakBars(Cycles10,0.01,1)==1, -L, 0.00));

Plot(WBDblStochSignal, "", 5);

//WB BlueLine Signals
m23=EMA(C,23);
m50=EMA(C,50);
DSSS = IIf(WBDblStochSignal > 0 AND m23>m50 AND C>m50 AND BarsSince(Lm50)<4, -L, 0));

Plot(DSSS, "", 6);

red = IIf(WBDblStochSignal > 0 AND m23>m50 AND C>m23 AND BarsSince(Lm23)<4, -L, 0));

Plot(red, "", 4);
_SECTION_END();

Open chat
1
Hi, how can I help you?