Pride's Intra-Day Strategy [Profit Everyday]

Status
Not open for further replies.
I don't want to discourage anyone. But the fact is that backtesting this system by any method (whether AmiBroker Backtesting or Manual Backtesting) gives very negative result. :mad:

Here is the AmiBroker Code.

It takes care of touching and separating of two EMAs rather than actual crossing. This is done in order to avoid any manual intervention about 'touching and separating'.
Also, I have added a filter so that it doesn't buy in overbought condition and doesn't short in oversold condition

_SECTION_BEGIN("Pride Stochastic Indicator");
SetChartBkColor(ParamColor("BackGround Color", colorblack));
periods = Param( "%K Periods", 8, 1, 20, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 4, 1, 20, 1 );

ST_StochK = StochK( periods , Ksmooth);
ST_StochD = StochD( periods , Ksmooth, DSmooth);

PlotST = ParamToggle("Plot ShortTerm Stochastics", "YES|NO", 0);
if (PlotST == 0) { //Plot(ST_StochK, "", colorLime, styleDashed);
Plot(ST_StochD, "ST StochD", IIf(ST_StochK > ST_StochD, colorGreen, colorRed), ParamStyle("ST Style", styleDots));
}

TimeFrameSet(6*Interval());
LT_StochK = StochK( periods , Ksmooth);
LT_StochD = StochD( periods , Ksmooth, DSmooth);
TimeFrameRestore();
expandString = ParamToggle("Expand Type", "Expand Last|Expand First", 0);
if (expandString == 0) {LT_StochK = TimeFrameExpand(LT_StochK, 6*Interval(), expandLast); LT_StochD = TimeFrameExpand(LT_StochD, 6*Interval(), expandLast); }
else {LT_StochK = TimeFrameExpand(LT_StochK, 6*Interval(), expandFirst); LT_StochD = TimeFrameExpand(LT_StochD, 6*Interval(), expandFirst); }
PlotLT = ParamToggle("Plot LongTerm Stochastics", "YES|NO", 0);
if (PlotLT == 0) { //Plot(LT_StochK, "", colorLime, styleDashed);
Plot(LT_StochD, "LT StochD", IIf(LT_StochK > LT_StochD, colorWhite, colorOrange), ParamStyle("LT Style", styleDots));
}

LTBullish = LT_StochK > LT_StochD; LTBearish = LT_StochK < LT_StochD;
STBullish = ST_StochK > ST_StochD; STBearish = ST_StochK < ST_StochD;
OverallBullish = LTBullish AND STBullish; OverallBearish = LTBearish AND STBearish;

EMA_Hist = (EMA(C, 5)- EMA(C, 13));
Plot(EMA_Hist, "Histogram", ParamColor("EMA Histogram Color", colorLightGrey), styleOwnScale|styleHistogram);

EMA_Buy = EMA_Hist > 0 AND Ref(EMA_Hist, -1) < 0; EMA_Short = EMA_Hist < 0 AND Ref(EMA_Hist, -1) > 0;
EMA_Buy_modified = Ref(EMA_Hist, -1) < 1 AND EMA_Hist > 1; EMA_Short_modified = Ref(EMA_Hist, -1) > -1 AND EMA_Hist < -1;

Buy = OverallBullish AND (EMA_Buy OR EMA_Buy_modified) AND ST_StochD < 70; Sell = STBullish == 0;
Short = OverallBearish AND (EMA_Short OR EMA_Short_modified) AND ST_StochD > 30; Cover = STBearish == 0;

Buy = ExRem(Buy, Sell); Sell = ExRem(Sell, Buy);
Short = ExRem(Short, Cover); Cover = ExRem(Cover, Short);

Buyshape = Buy * shapeUpArrow; SellShape = Sell * shapeDownArrow;
Shortshape = Short * shapeHollowDownArrow; CoverShape = Cover * shapeHollowUpArrow;

PlotShapes(BuyShape, colorLime, 0, ST_StochD); PlotShapes(SellShape, colorLime, 0, ST_StochD);
PlotShapes(ShortShape, colorOrange, 0, ST_StochD); PlotShapes(CoverShape, colorOrange, 0, ST_StochD);
Plot(80, "", ParamColor("80 Grid Color", colorLime));
Plot(20, "", ParamColor("20 Grid Color", colorLime));
_SECTION_END();
One more thing :
I have also given the option of using 'ExpandLast' and 'ExpandFirst' for expanding Stochastic Oscillators from 30 minute TF to 5 minute TF. While backtesting you can use both option one by one and see the difference in result. But you can't trust the result shown with 'ExpandFirst' condition. This is because the stochastic in 30 min TF may change before the 30 min bar completes.

Backtest it and see the result yourself

Thanks Pride for sharing your system. I really admire you for that.

Thanks
----TIZ-----
 
Last edited:
I don't want to discourage anyone. But the fact is that backtesting this system by any method (whether AmiBroker Backtesting or Manual Backtesting) gives very negative result. :mad:

Here is the AmiBroker Code.

It takes care of touching and separating of two EMAs rather than actual crossing. This is done in order to avoid any manual intervention about 'touching and separating'.
Also, I have added a filter so that it doesn't buy in overbought condition and doesn't short in oversold condition



One more thing :
I have also given the option of using 'ExpandLast' and 'ExpandFirst' for expanding Stochastic Oscillators from 30 minute TF to 5 minute TF. While backtesting you can use both option one by one and see the difference in result. But you can't trust the result shown with 'ExpandFirst' condition. This is because the stochastic in 30 min TF may change before the 30 min bar completes.

Backtest it and see the result yourself

Thanks Pride for sharing your system. I really admire you for that.

Thanks
----TIZ-----
Thanks TIZ for you hard work...

May be we all can get together and find a solution for this.. I was backtesting it and found it gave a negative result.. But may be we can try to fix this.. Since i am trading with pride's statergy in cash. I can understand the result how it gives.. Let me check live with your afl and with my way of trading.. may be i could find something.
 

ag_fx

Well-Known Member
Thanks TIZ for you hard work...

May be we all can get together and find a solution for this.. I was backtesting it and found it gave a negative result.. But may be we can try to fix this.. Since i am trading with pride's statergy in cash. I can understand the result how it gives.. Let me check live with your afl and with my way of trading.. may be i could find something.

Tiz, regardson,

I dont know how to use AFL. I know regardson you know how to use it. Please check it with the trades that we took in the last 2 weeks to come to a conclusion. If you need the data for NF, let me know, I will send u da AMI feedable data.

Happy Trading

PS: As i also mentioned a couple of days back, backtesting this method in the month if January gave highly negative returns. We will have to work together to see if this can be updated. I request pride to chip in too with some suggestions.
 

uthuman

Active Member
hi Hmp,
i won't be able to attach image right now.. but could give you an explaination,since i am also using tt.

add study and select double average and choose first as 5 and second 13 and choose expotiental. 2 tab choose the colour u like to for both... that's it.

again add study and choose stochastic and just enter the following series in order 3,8,4 ie period 3, k 8 and last one 4. that's all... it should be simple.

now when market opens if you want to see the continuation of 30 or 5 min chart.. just open the chart and at the right bottom corner below z choose that and select 3D and then choose either 5 or 30 ... this will give you the continuation of pervious day.. you can keep this screen and zoom to current day and do the trading.. this is how i do...

good luck... hope its very clear:clap:
Dear Regardson,

I think the settings u mentioned here for stochoistic at trade tiger is wrong...Please go thro' it. It should be 4,8,3. That is 8 for %k and 3 for %D and 4 for average. Please advise me if I am wrong.


(Originally Posted by .Pride.

The main stochastic line is known as %K, and is calculated over a specified number of days/bars, in this case, it is 8.

A short term moving average is applied to %K and this timing line is known as %D, which is 3 for this system.

A third variable is used to “slow” or smooth the %K line by displaying it as a moving average, which for us is 4.)


uthuman
 
Last edited:
_SECTION_BEGIN("Pride Stochastic Indicator");
SetChartBkColor(ParamColor("BackGround Color", colorblack));
periods = Param( "%K Periods", 8, 1, 20, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 4, 1, 20, 1 );

ST_StochK = StochK( periods , Ksmooth);
ST_StochD = StochD( periods , Ksmooth, DSmooth);

PlotST = ParamToggle("Plot ShortTerm Stochastics", "YES|NO", 0);
if (PlotST == 0) { //Plot(ST_StochK, "", colorLime, styleDashed);
Plot(ST_StochD, "ST StochD", IIf(ST_StochK > ST_StochD, colorGreen, colorRed), ParamStyle("ST Style", styleDots));
}

TimeFrameSet(6*Interval());
LT_StochK = StochK( periods , Ksmooth);
LT_StochD = StochD( periods , Ksmooth, DSmooth);
TimeFrameRestore();
expandString = ParamToggle("Expand Type", "Expand Last|Expand First", 0);
if (expandString == 0) {LT_StochK = TimeFrameExpand(LT_StochK, 6*Interval(), expandLast); LT_StochD = TimeFrameExpand(LT_StochD, 6*Interval(), expandLast); }
else {LT_StochK = TimeFrameExpand(LT_StochK, 6*Interval(), expandFirst); LT_StochD = TimeFrameExpand(LT_StochD, 6*Interval(), expandFirst); }
PlotLT = ParamToggle("Plot LongTerm Stochastics", "YES|NO", 0);
if (PlotLT == 0) { //Plot(LT_StochK, "", colorLime, styleDashed);
Plot(LT_StochD, "LT StochD", IIf(LT_StochK > LT_StochD, colorWhite, colorOrange), ParamStyle("LT Style", styleDots));
}

LTBullish = LT_StochK > LT_StochD; LTBearish = LT_StochK < LT_StochD;
STBullish = ST_StochK > ST_StochD; STBearish = ST_StochK < ST_StochD;
OverallBullish = LTBullish AND STBullish; OverallBearish = LTBearish AND STBearish;

EMA_Hist = (EMA(C, 5)- EMA(C, 13));
Plot(EMA_Hist, "Histogram", ParamColor("EMA Histogram Color", colorLightGrey), styleOwnScale|styleHistogram);

EMA_Buy = EMA_Hist > 0 AND Ref(EMA_Hist, -1) < 0; EMA_Short = EMA_Hist < 0 AND Ref(EMA_Hist, -1) > 0;
EMA_Buy_modified = Ref(EMA_Hist, -1) < 1 AND EMA_Hist > 1; EMA_Short_modified = Ref(EMA_Hist, -1) > -1 AND EMA_Hist < -1;

Buy = OverallBullish AND (EMA_Buy OR EMA_Buy_modified) AND ST_StochD < 70; Sell = STBullish == 0;
Short = OverallBearish AND (EMA_Short OR EMA_Short_modified) AND ST_StochD > 30; Cover = STBearish == 0;

Buy = ExRem(Buy, Sell); Sell = ExRem(Sell, Buy);
Short = ExRem(Short, Cover); Cover = ExRem(Cover, Short);

Buyshape = Buy * shapeUpArrow; SellShape = Sell * shapeDownArrow;
Shortshape = Short * shapeHollowDownArrow; CoverShape = Cover * shapeHollowUpArrow;

PlotShapes(BuyShape, colorLime, 0, ST_StochD); PlotShapes(SellShape, colorLime, 0, ST_StochD);
PlotShapes(ShortShape, colorOrange, 0, ST_StochD); PlotShapes(CoverShape, colorOrange, 0, ST_StochD);
Plot(80, "", ParamColor("80 Grid Color", colorLime));
Plot(20, "", ParamColor("20 Grid Color", colorLime));
_SECTION_END();
Some one need to run it and confirm if it gives the same trades as we have got for last 2 weeks.
 

Sunil

Well-Known Member
again add study and choose stochastic and just enter the following series in order 3,8,4 ie period 3, k 8 and last one 4. that's all... it should be simple.

Dear Regardson,

I think the settings u mentioned here for stochoistic at trade tiger is wrong...Please go thro' it. It should be 4,8,3. That is 8 for %k and 3 for %D and 4 for average. Please advise me if I am wrong.

uthuman
Both of you are right...
The actual way of presenting parameters of Stochs are 4,8,3
But, the boxes in SK's tradetiger are arranged in such a manner that it seems like 3,8,4

That's how Sharekhan's terminal presents it:


Missing you lots, Uthu bro....
Long time.....
Hope to catch u online at Y! M
:)
 
Dear Regardson,

I think the settings u mentioned here for stochoistic at trade tiger is wrong...Please go thro' it. It should be 4,8,3. That is 8 for %k and 3 for %D and 4 for average. Please advise me if I am wrong.


(Originally Posted by .Pride.

The main stochastic line is known as %K, and is calculated over a specified number of days/bars, in this case, it is 8.

A short term moving average is applied to %K and this timing line is known as %D, which is 3 for this system.

A third variable is used to slow or smooth the %K line by displaying it as a moving average, which for us is 4.)


uthuman

I have been using the one i wrote earlier. Let me check yours and will get back to you...
 

Sunil

Well-Known Member
Where did you close the position sir? I took a 5 point Loss.
that is why I mentioned "scalping long" - I wanted to juice out 15-20pts - no matter what happens next
this system can give that much only on an average...
i feel this is not a system for swing trading, but for scalping, and i have adopted it accordingly


wanted to add that 5min stochs were already OB - and the trade was pre-10:30
 
Last edited:
Status
Not open for further replies.

Similar threads