Crude_Fools Black Gold Strategy

#11
Hi Silentshadow ,

Thanks for sharing this strategy.

I have found the following afl in internet. Actually it was for four days and i modified it for 3 days.

_SECTION_BEGIN("3hl method");
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
DC=TimeFrameGetPrice( "C", inDaily, 0);
DC1=TimeFrameGetPrice( "C", inDaily, -1);
dh=TimeFrameGetPrice( "H", inDaily, 0);
dh1=TimeFrameGetPrice( "H", inDaily, -1);
dh2=TimeFrameGetPrice( "H", inDaily, -2);
dh3=TimeFrameGetPrice( "H", inDaily, -3);
DL=TimeFrameGetPrice( "L", inDaily, 0);
dl1=TimeFrameGetPrice( "l", inDaily, -1);
dl2=TimeFrameGetPrice( "l", inDaily, -2);
dl3=TimeFrameGetPrice( "l", inDaily, -3);
do1=TimeFrameGetPrice( "O", inDaily, -1);
doo=TimeFrameGetPrice( "O", inDaily, 0);
Maxh1=Max(dh1,dh2);
Maxh2=Max(dh2,dh3);
Maxh=Max(Maxh1,Maxh2);
Plot(Maxh,"maxh",colorBrown,styleLine);

Minl1=Min(dl1,dl2);
Minl2=Min(dl2,dl3);
Minl=Min(Minl1,Minl2);
Plot(Minl,"minl",colorYellow,styleLine);
Buy = Cross(Close , Maxh);
Sell = Cross( Minl,Close);
PlotShapes(Sell*shapeDownArrow,colorWhite);
PlotShapes(Buy*shapeUpArrow,colorWhite);
Title = EncodeColor(colorBlack)+ "excel trade" + " - " + Name() + " - " + EncodeColor(colorRed)+ Interval(2) + EncodeColor(colorWhite) +
" - " + Date() +" - "+"\n" +EncodeColor(colorBlue) +"Op-"+O+" "+"Hi-"+H+" "+"Lo-"+L+" "+
"Cl-"+C+" "+ "Vol= "+ WriteVal(V)+" 3dh= "+WriteVal(Maxh)+" 3dL= "+WriteVal(Minl);

Filter=(Buy OR Sell) ;
NumColumns = 0;
AddColumn(Close,"CMP", 1.2);
AddColumn( IIf( Buy, 66, 83 ), "Signal" , formatChar,2,4 );
AddColumn(doo,"open", 1.2);
AddColumn(dH,"HIGH", 1.2);
AddColumn(dL,"low", 1.2);
AddColumn(dC,"close", 1.2);
AddColumn(Maxh,"buy value", 1.2);
AddColumn(Minl,"sell value", 1.2);

_SECTION_END();

Kindly check is it correct?

Thanks
 

Silentshadow

Well-Known Member
#12
Don't have platform to check this on my office computer. I have tried it @ various day frames and finally settled for 3 day min/max. May be you can run this AFL, backtest and post results on trades. Tricky part would be how would put your TSL

Hi Silentshadow ,

Thanks for sharing this strategy.

I have found the following afl in internet. Actually it was for four days and i modified it for 3 days.

_SECTION_BEGIN("3hl method");
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
DC=TimeFrameGetPrice( "C", inDaily, 0);
DC1=TimeFrameGetPrice( "C", inDaily, -1);
dh=TimeFrameGetPrice( "H", inDaily, 0);
dh1=TimeFrameGetPrice( "H", inDaily, -1);
dh2=TimeFrameGetPrice( "H", inDaily, -2);
dh3=TimeFrameGetPrice( "H", inDaily, -3);
DL=TimeFrameGetPrice( "L", inDaily, 0);
dl1=TimeFrameGetPrice( "l", inDaily, -1);
dl2=TimeFrameGetPrice( "l", inDaily, -2);
dl3=TimeFrameGetPrice( "l", inDaily, -3);
do1=TimeFrameGetPrice( "O", inDaily, -1);
doo=TimeFrameGetPrice( "O", inDaily, 0);
Maxh1=Max(dh1,dh2);
Maxh2=Max(dh2,dh3);
Maxh=Max(Maxh1,Maxh2);
Plot(Maxh,"maxh",colorBrown,styleLine);

Minl1=Min(dl1,dl2);
Minl2=Min(dl2,dl3);
Minl=Min(Minl1,Minl2);
Plot(Minl,"minl",colorYellow,styleLine);
Buy = Cross(Close , Maxh);
Sell = Cross( Minl,Close);
PlotShapes(Sell*shapeDownArrow,colorWhite);
PlotShapes(Buy*shapeUpArrow,colorWhite);
Title = EncodeColor(colorBlack)+ "excel trade" + " - " + Name() + " - " + EncodeColor(colorRed)+ Interval(2) + EncodeColor(colorWhite) +
" - " + Date() +" - "+"\n" +EncodeColor(colorBlue) +"Op-"+O+" "+"Hi-"+H+" "+"Lo-"+L+" "+
"Cl-"+C+" "+ "Vol= "+ WriteVal(V)+" 3dh= "+WriteVal(Maxh)+" 3dL= "+WriteVal(Minl);

Filter=(Buy OR Sell) ;
NumColumns = 0;
AddColumn(Close,"CMP", 1.2);
AddColumn( IIf( Buy, 66, 83 ), "Signal" , formatChar,2,4 );
AddColumn(doo,"open", 1.2);
AddColumn(dH,"HIGH", 1.2);
AddColumn(dL,"low", 1.2);
AddColumn(dC,"close", 1.2);
AddColumn(Maxh,"buy value", 1.2);
AddColumn(Minl,"sell value", 1.2);

_SECTION_END();

Kindly check is it correct?

Thanks
 

Silentshadow

Well-Known Member
#13
I had seen this system in old issue of Capital Market Technicals many years ago.It was called Highest Low and Lowest High system.It was a SAR system on daily bars.I remember having traded it on daily timeframe.

Where are you keeping the stoploss ? How do you decide that stoploss level ?

Smart_trade
I normally go naked as trading with minis, near to day closure I feed it OHL values in the excel to check if trigger is getting reversed if I find it so I will sqaure off else will carry my position trailing along close price or PDH/PDL which is lower or higher

Lets take a example




7/19 I sold 5 minis when price came below 3012 - my target would have been 40 points from here or trail post checking the trigger reversal near to day close it was still showing sell. Since I did not get 40 points I offloaded 3 lots near to day close and held on to rest
7/20 - gap up opening and near to close it was showing a buy signal so will sqaure off the whole lot and did not add new lots as PDL was not broken
7/21 - buy signal - but a no trade day as PDH was not broken
7/22 - sell signal - went short 5 mini below 3025 and booked 3 lot @ 40 points and carried 2 for next day
7/23 - sell again have 2 lot priced @ 3024 and again added 5 when it fell below 2956. Booked 3 again for 40 and held 2. Now I have 4 lots to carry fwd priced at 3024 & 2956 respectively ... and this goes on till trend reversal

I keep my sl at trend
 

Silentshadow

Well-Known Member
#14
Gentlemen,
Hope I am making sense. I look forward to your inputs to better present and refine it if possible so that it benefits beginners in commodity
~ Thanks

Simply a rally & decline method without the waiting for confirmation
I had seen this system in old issue of Capital Market Technicals many years ago.It was called Highest Low and Lowest High system.It was a SAR system on daily bars.I remember having traded it on daily timeframe.

Where are you keeping the stoploss ? How do you decide that stoploss level ?

Smart_trade
 
#19
Dear Sir,

I checked the above strategy on closed basis H4 time Frame for USD,

OCT 2016 Series

Trading from 30 August to 9th Sept.

Result found good. I will do backtesting on H4 Time for at-least for last six month.

two Query

1. Have u come up with any filter to avoid sideways.
2. Do we need keep the SL from previous day. while current day is running.

Regards

Mukesh
 
Last edited:

kcsusha

Active Member
#20
Instead of PDH or PDL, would it be even better to wait for break of Highest High
of last 3 days and Highest Low of last 3 days? Just putting a querry to elicit valuable
suggestions from our esteemed Traderji members.
 

Similar threads