Two days trading system

Shailu

Active Member
#12
But asi had done backtesting for this very rarely buy or sell level comes because max time next day open is between hh and ll .
 

johnnypareek

Well-Known Member
#14
@johnny sir,

thanks for the afl .. please change the following

Ll = Ref(L,-1)+((Ref(L,-1)-Ref(L,-2)));
Hh = Ref(H,-1)+((Ref(H,-1)-Ref(H,-2)));

and open should be the intraday open..
please help ....
thanks,

Yes I did n about to post

HTML:
/*
Two days trading system:
Many might be following this system, I will here explain how to trade using the two Day data AND Buy OR Sell using it
hh = (today's High - yesterday;s High)+today;s High
ll = (today's Low - yesterday's Low)+today;s Low
calculate the two values.. if price opens above the hh value... Sell below hh
for the trgt of ll
AND if price opens below ll wait for the price to Cross ll AND then Buy , target would be hh
example
jindalstel

High 1 AND Low 1 are 406.75 AND 398.65
High 2 AND Low 2 are 417 AND 405.10

hh AND ll are 396.5 AND 391.7

price Open today was 404.80 (403.85)

price opened above hh value AND Short below 396.5 for a target of 391.70

when the price doesn;t Open below ll OR above hh then no trade..
good luck! 
*/
_SECTION_BEGIN("Price");
GraphXSpace=5;
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();
TimeFrameSet( inDaily );
Hh=Ref(H,-1)+(Ref(H,-1)-Ref(H,-2));
Ll=Ref(L,-1)+(Ref(L,-1)-Ref(L,-2));
Oo=O;
TimeFrameRestore();
Hh = TimeFrameExpand(hh,inDaily,expandFirst); 
Ll = TimeFrameExpand(ll,inDaily,expandFirst);
Oo= TimeFrameExpand(Oo,inDaily,expandFirst);
Short=Oo>Hh AND ll <hh AND Cross(Hh,L);
Buy=Oo<Ll AND ll<hh AND Cross(H,Ll);
Cover=Cross(H,0) OR Buy;
Sell=Cross(L,0) OR Short;

//Buy=ExRem(Buy,Short);
//Sell=ExRem(Sell,Buy);
//Short=ExRem(Short,Buy);
//Cover=ExRem(Cover,Short);
 
PlotShapes(IIf(Buy==1, shapeUpArrow , shapeNone), colorBlue, 0,Low, Offset=-20);
PlotShapes(IIf(Short==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-20);
PlotShapes(IIf(Cover==1, shapeUpArrow , shapeNone), colorBlue, 0,Low, Offset=-20);
PlotShapes(IIf(Sell==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-20);

Plot(Hh,"Upper",5,1);
Plot(Ll,"Lower",4,1);
Plot(Oo,"Open of day",9,1+32);
johnny
 

Similar threads