Dear DM sir,
I am giving my simple code here...It is working fine , I want to use it Option
Trading (INDEX Option), and only for Buying of CALL/PUT (Not selling)..
I want your help here .....
I want to draw Stop Loss Line at the bottom of the Candle where my Buy signal (Green Triangle ) appears.... Also if you can add code where it should display the price of Stop Loss at the bottom of That candle too...
I want to Draw a Stop Loss line (Horizontal Line) which should be big enough to display clearly.
Can you Please Guide me how I can do this ??
HERE IS MY CODE:
SECTION_BEGIN("Price");
SetBarFillColor( IIf( Close > Open, colorGreen, colorDarkRed ) );
SetChartOptions(0,chartShowArrows|chartShowDates);
Title = EncodeColor(colorWhite)+ Name() + " - " + EncodeColor(colorYellow)+ Interval(2) + EncodeColor(colorYellow) +
" - " + Date() +" - "+ EncodeColor(colorYellow) + "Open = "+EncodeColor(colorWhite)+WriteVal(O,8.2) + EncodeColor(colorYellow) +
", High = "+EncodeColor(colorWhite)+ WriteVal(H,8.2)+ EncodeColor(colorYellow) + ", Low= "+EncodeColor(colorWhite)+ WriteVal(L,8.2)+
EncodeColor(colorYellow) + ", Close= "+EncodeColor(colorWhite)+ WriteVal(C,8.2)+ EncodeColor(colorYellow) + ", Vol= "+EncodeColor(colorWhite)+ WriteVal(V,1)+("\n");
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle |ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("BUY SELL");
Buy= Cross(EMA( C, 3 ), EMA( C, 30 ));
Sell= Cross(EMA( C, 30 ), EMA( C, 3 ));
//Buy= Cross(EMA( C, 3 ), EMA( C, 30 ));
//-----------------------------------------------------------------------------------------------
// I WANT TO DRAM SL LINE AT THE BOTTOM OF CANDLE WHERE BUY SIGNAL (GREEN TRIANGLE) APPEAR
//----------------------------------------------------------------------------------------------
StopLoss = Low;
//PlotText("SL @"+Low , BarCount+5,5,Null,colorBlue);
Filter = Buy OR Sell ;
PlotShapes(IIf(Buy, shapeUpTriangle, shapeNone),colorGreen, 0,L, Offset=-15);
//PlotShapes(IIf(Sell, shapeDownTriangle, shapeNone),colorRed, 0,H, Offset=-15);
AlertIf( Buy, "SOUND C:\\Windows\\Media\\tada.wav", "Audio alert", 5 );
AlertIf( Sell, "SOUND C:\\Windows\\Media\\tada.wav", "Audio alert", 5 );
Plot( EMA( Close,3), "3 EMA", colorDarkBlue,styleThick);
Plot( EMA( Close,30), "30 EMA", colorDarkRed,styleThick);
_SECTION_END();
Thanks.
Bhupesh