Dual Timeframe Stochastics Intraday system

suri112000

Well-Known Member
#1
The system is devised from Triple Screen method. Donot expect massive profits, but you are likely to get consistent returns.

It uses Dual time-frame Stochastics Indicator on 5 minutes Chart with 30 minutes Stochastics as perspective. I have tested this on Banknifty.

The system requires 30 min TF stochastics (AFL for showing 30 min TF for showing it on 5 min chart itself will be added in the next post).

Coming to the system :

a long position is initiated when

1. In 30 Minute Stochastics Chart, the Stochastic should be bullish (ie Blue in Colour).

2. When first condition is satisfied, look for Stochastics in 5 min TF enters oversold sold ie reading 30 or below.

3. When both conditions satisfied, make a buy stop order above the high of candle on which both conditions are satisfied. If the order is not filled, make the buy stop order above the high of next candle. Move the order likewise until filled. Make sure that 30 Min Stochastics chart does not change its colour from Blue to Red while doing so. If the colour of 30 min Stochastics change colour, the set up is cancelled and wait for next signal.


4. Once the order got filled, place the initial stop at recent pivot low.

5. You can exit the trade at fixed profit targets (For Banknifty 40-50 points).

6. If trading multiple lots exit one lot at fixed target and trail the SL as per your liking to skim maximum from the move.


For Short Trades opposite of the above rules is used.




The system occasionally fails to catch the big moves, but that does not matter as long as system is making profits.

Comments and suggestions are most welcome.
 

suri112000

Well-Known Member
#2
30 min TF stochastics indicator AFL.

_SECTION_BEGIN("Stochastic_30_MINS");
periods = Param( "Periods", 8, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 4, 1, 200, 1 );

TimeFrameSet(in1Minute * 30);
k30 = StochK( periods , Ksmooth);
d30 = StochD( periods , Ksmooth, DSmooth );
TimeFrameRestore();

K = TimeFrameExpand(k30, in1Minute * 30);
D = TimeFrameExpand(d30, in1Minute * 30);

Plot(D, "D", colorRed, styleThick );
Plot(K, "K", colorBlue, styleThick );

Hi = IIf(k > d, k, d);
Lo = IIf(k < d, k, d);

COLOR = IIf(Ref(d,1) > Ref(k,1), colorRed, colorBlue);
//COLOR = IIf(K > D AND (K > 80 OR D > 80) OR D > K AND (K < 20 OR D <20), colorLightGrey, COLOR);

PlotOHLC(Lo,Hi,Lo,Hi,"",COLOR, styleNoLabel | styleCloud);

_SECTION_END();
 

jahan

Well-Known Member
#3
Hello,

Be careful when dealing with dual-time frame stochastic/ Afl .....bcoz it repaints lot in realtime....don't judge ur trades based on past data with this Afl...always use bar replay option in Amibroker when dealing with Timeframeexpand function while making ur strategy/system.

The concept is good..and surely it has potential to give consistent profits.

similar concept u can find in Robert Miner Book "High probability Trading Strategies".

Regards,
 

suri112000

Well-Known Member
#4
Hello,

Be careful when dealing with dual-time frame stochastic/ Afl .....bcoz it repaints lot in realtime....don't judge ur trades based on past data with this Afl...always use bar replay option in Amibroker when dealing with Timeframeexpand function while making ur strategy/system.

The concept is good..and surely it has potential to give consistent profits.

similar concept u can find in Robert Miner Book "High probability Trading Strategies".

Regards,
Thank you for your review.

Going through Robert Miner book. There seems to be more room for improving the system. Its a matter of time before incorporating Robert Miner rules.
 
#5
Hi Suri,
I like it.

Please look at this afl

This is the formula of his DTOsc, displaying 15 min TF in 5 min TF, Can you please help me by displaying 20 min TF in 5 min TF.

Thanks

Isabella

_SECTION_BEGIN("5");
/* DT Oscillator
**
** AFL translation by X-Trader
** http://www.x-trader.net
**
*/

PeriodRSI= Param("PeriodRSI", 13, 1, 250, 1);
PeriodStoch=Param("PeriodStoch", 8, 1, 250, 1);
MAType=Param("MAType", 1, 1, 2, 1);
PeriodSK=Param("PeriodSK", 5, 1, 250, 1);
PeriodSD=Param("PeriodSD", 3, 1, 250, 1);
Upper=Param("Upper", 70, 50, 100, 1);
Lower=Param("Lower", 30, 0, 50, 1);


StoRSI= 100*(( RSI( PeriodRSI) - LLV( RSI( PeriodRSI ) , PeriodStoch ) ) / ( (
HHV( RSI( PeriodRSI) , PeriodStoch ) ) - LLV(RSI( PeriodRSI ), PeriodStoch ) )
);

if(MAType==1)
{
SK=MA(StoRSI,PeriodSK);
SD=MA(SK,PeriodSD);
}

if(MAType==2)
{
SK=EMA(StoRSI,PeriodSK);
SD=EMA(SK,PeriodSD);
}

Plot(SK,"DTOscSK",ParamColor( "ColorSK", colorBrightGreen ),styleLine|styleNoLabel);
Plot(SD,"DTOscSD",ParamColor( "ColorSD", colorAqua ),styleDashed|styleNoLabel);
Plot(0,"ZeroLine",ParamColor( "ColorZero", colorLime ),styleLine|styleNoLabel);
Plot(Upper,"Upper",ParamColor( "ColorUpper", colorRed ),styleLine);
Plot(Lower,"Lower",ParamColor( "ColorLower", colorGreen ),styleLine);

//////
///Following lines of code is added by me to
///display 15 min oscillator
//////

TimeFrameSet(in15Minute);
PeriodRSI= Param("PeriodRSI", 13, 1, 250, 1);
PeriodStoch=Param("PeriodStoch", 8, 1, 250, 1);
MAType=Param("MAType", 1, 1, 2, 1);
PeriodSK=Param("PeriodSK", 5, 1, 250, 1);
PeriodSD=Param("PeriodSD", 3, 1, 250, 1);
Upper=Param("Upper", 70, 50, 100, 1);
Lower=Param("Lower", 30, 0, 50, 1);


StoRSI= 100*(( RSI( PeriodRSI) - LLV( RSI( PeriodRSI ) , PeriodStoch ) ) / ( (
HHV( RSI( PeriodRSI) , PeriodStoch ) ) - LLV(RSI( PeriodRSI ), PeriodStoch ) )
);

if(MAType==1)
{
SK=MA(StoRSI,PeriodSK);
SD=MA(SK,PeriodSD);
}

if(MAType==2)
{
SK=EMA(StoRSI,PeriodSK);
SD=EMA(SK,PeriodSD);
}
TimeFrameRestore();
k=TimeFrameExpand(SK,in15Minute);
d=TimeFrameExpand(SD,in15Minute);
Plot(k,"DTOscSK1",ParamColor( "ColorSK1", colorRed ),styleLine|styleDots|styleNoLabel);
Plot(d,"DTOscSD1",ParamColor( "ColorSD1", colorOrange ),styleLine|styleDots|styleNoLabel);
_SECTION_END();

This is the formula of his DTOsc, displaying 15 min TF in 5 min TF, Can you please help me by displaying 20 min TF in 5 min TF.

Thanks

Isabella
 

suri112000

Well-Known Member
#6
Find below AFL in 20 min TF.

Code:
_SECTION_BEGIN("5");
/* DT Oscillator 
**
** AFL translation by X-Trader
** http://www.x-trader.net
**
*/

PeriodRSI= Param("PeriodRSI", 13, 1, 250, 1);
PeriodStoch=Param("PeriodStoch", 8, 1, 250, 1);
MAType=Param("MAType", 1, 1, 2, 1);
PeriodSK=Param("PeriodSK", 5, 1, 250, 1);
PeriodSD=Param("PeriodSD", 3, 1, 250, 1);
Upper=Param("Upper", 70, 50, 100, 1);
Lower=Param("Lower", 30, 0, 50, 1);


StoRSI= 100*(( RSI( PeriodRSI) - LLV( RSI( PeriodRSI ) , PeriodStoch ) ) / ( (
HHV( RSI( PeriodRSI) , PeriodStoch ) ) - LLV(RSI( PeriodRSI ), PeriodStoch ) )
);

if(MAType==1)
{
SK=MA(StoRSI,PeriodSK);
SD=MA(SK,PeriodSD);
}

if(MAType==2)
{
SK=EMA(StoRSI,PeriodSK);
SD=EMA(SK,PeriodSD);
}

Plot(SK,"DTOscSK",ParamColor( "ColorSK", colorBrightGreen ),styleLine|styleNoLabel); 
Plot(SD,"DTOscSD",ParamColor( "ColorSD", colorAqua ),styleDashed|styleNoLabel);
Plot(0,"ZeroLine",ParamColor( "ColorZero", colorLime ),styleLine|styleNoLabel);
Plot(Upper,"Upper",ParamColor( "ColorUpper", colorRed ),styleLine);
Plot(Lower,"Lower",ParamColor( "ColorLower", colorGreen ),styleLine);

//////
///Following lines of code is added by me to
///display 15 min oscillator
//////

TimeFrameSet(in1Minute*20);
PeriodRSI= Param("PeriodRSI", 13, 1, 250, 1);
PeriodStoch=Param("PeriodStoch", 8, 1, 250, 1);
MAType=Param("MAType", 1, 1, 2, 1);
PeriodSK=Param("PeriodSK", 5, 1, 250, 1);
PeriodSD=Param("PeriodSD", 3, 1, 250, 1);
Upper=Param("Upper", 70, 50, 100, 1);
Lower=Param("Lower", 30, 0, 50, 1);


StoRSI= 100*(( RSI( PeriodRSI) - LLV( RSI( PeriodRSI ) , PeriodStoch ) ) / ( (
HHV( RSI( PeriodRSI) , PeriodStoch ) ) - LLV(RSI( PeriodRSI ), PeriodStoch ) )
);

if(MAType==1)
{
SK=MA(StoRSI,PeriodSK);
SD=MA(SK,PeriodSD);
}

if(MAType==2)
{
SK=EMA(StoRSI,PeriodSK);
SD=EMA(SK,PeriodSD);
}
TimeFrameRestore();
k=TimeFrameExpand(SK,in1Minute*20);
d=TimeFrameExpand(SD,in1Minute*20);
Plot(k,"DTOscSK1",ParamColor( "ColorSK1", colorRed ),styleLine|styleDots|styleNoLabel); 
Plot(d,"DTOscSD1",ParamColor( "ColorSD1", colorOrange ),styleLine|styleDots|styleNoLabel);
_SECTION_END();
 
#8
Can anybody help me with coding the complete Robert miner strategy with automated buy & sell signals and take profit and trailing sl.


Regards

sameer
 

ping

New Member
#9
Wow, this is nice.

Is there a way to "convert" this and show DAILY RSI(14) with the WEEKLY RSI(14) overlaid into the same DAILY CHART?

Thanks!