Median lines

johnnypareek

Well-Known Member
#32
Hi,

This as per shruti. Buy is nuy and short. As per me, though didn't dig much, sell point at ur comfort or when short come in lower TF. Say buy given then buy shud be above high of that bar and short below low of short given bar.

On 15 mijn tf over cash nifty I found that sell shud be below of last bar. This give very small sl and when market move in direction nice profit.

HTML:
 _SECTION_BEGIN("Background_Setting");
 SetChartBkGradientFill( ParamColor("BgTop", colorBlack),
 ParamColor("BgBottom", colorDarkGrey),ParamColor("TitleBack",colorGrey40)); 
 SetChartBkColor(ParamColor("Outer Panel",colorPaleBlue));
 SetChartOptions(0,chartShowArrows|chartShowDates);
 _SECTION_END();

 _SECTION_BEGIN("Shruti's Median afl");

 Plot(C,"Close",colorWhite,styleBar);

 mH1=MA(H,1);
 mL1=MA(L,1);
 MD1=MA(Median(C,3),3);

 Plot(mH1,"MA Hi",colorRed,styleLine,styleThick);
 Plot(ml1,"Ma Lo",colorBrightGreen,styleLine,styleThick);
 Plot(MD1,"Median",colorYellow,styleLine); // change the colorYellow to colorwhite and u will get what u want
Buy=Cross(ml1,MD1);
Short=Cross(mh1,md1);
PlotShapes(IIf(Buy==1, shapeUpArrow , shapeNone), colorGreen, 0,Low, Offset=-10);
//PlotShapes(IIf(Sell==1, shapeStar, shapeNone), colorRed, 0,High, Offset=20);
PlotShapes(IIf(Short==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-10);
//PlotShapes(IIf(Cover==1, shapeStar, shapeNone), colorGreen, 0,Low, Offset=-20); 

 Title =EncodeColor(colorYellow)+"Shruti's Median Price plot "+"\n"+
 EncodeColor(colorWhite)+  Name () + "\n" 
 +EncodeColor(colorWhite)+ "Op : "+ EncodeColor(colorWhite)+ O + " | "
 +EncodeColor(colorWhite)+ "Hi : "+ EncodeColor(colorWhite)+ H + " | "
 +EncodeColor(colorWhite)+ "Lo : "+ EncodeColor(colorWhite)+ L + " | "
 +EncodeColor(colorWhite)+ "Cls : "+ WriteIf(C> Ref(C, -1),EncodeColor(colorBrightGreen),EncodeColor(colorGold))+ C 
 +EncodeColor(colorWhite)+ "\nVolume : " + EncodeColor(colorWhite)+ WriteVal(V,1.0)+ "\n\n"
 +EncodeColor(colorWhite)+ "\nMA Hi : "+ EncodeColor(colorWhite)+ mh1 + " | "
 +EncodeColor(colorWhite)+ "\nMa Lo : "+ EncodeColor(colorWhite)+ ml1 + " | "
 +EncodeColor(colorWhite)+ "\nMedian : "+ EncodeColor(colorWhite)+ md1 ;

 _SECTION_END();
 

sr114

Well-Known Member
#33
Kindly help for Trade tiger settings
Only the sma hi and lo can be put in Trade Tiger - cud not figure it out the median line sma -

to put the sma of hi and lo - go to chart and add study.

till this i can figure out. nothing more - ask some experienced users of trade tiger

rgds
subroto
 

johnnypareek

Well-Known Member
#34
Well I did some tweak n here is result data 10.04.13 till 18.04.13 in hourly.

1st buy triger above 5508.35 close 5547 if sell same day otherwise sold below 5572 next day.
2nd on 15.04 short below 5507 stopped out 5522.

3rd same day buy above 5567.75 added more above 5634.75 added more above 5698 exit all below 5703.
on 18 buy above 5718.50. closing 5774.75 buy triger for monday above 5790 to add more sl below 5770.


Not bad
 

sr114

Well-Known Member
#38
Please Subroto..Kindly paste this above afl

(Buy-sell arrows with median lines n MA).


I have reason behind it.. pls kindly post it.
what code i had posted have the same stuff u want - only read the code , uncomment the plot of the mas or the median mas, the plot shapes are open means it will plot.

just go thru the code , search this (//) and if found remove it. it will be plotted

i have posted all the stuff

rgds
subroto
 

Similar threads