buy and sell values display in tittle

#1
Hi all,

i am new to amibroker, i am having a problem while i create a code,

I have to display the buy and sell signal values in title of the chart, but when i trying both values displaying as same , will u please help me...with examle code

Thanks in advance

Velsamy A
 
#3
Code
-----
_SECTION_BEGIN("one");

Plot(C,"price",colorBlack,styleCandle);

Vishnu=ADX(50);
padma=ADX(20);

Buy=Cross(Vishnu,padma);
Sell=Cross(padma,Vishnu);

PlotShapes(shapeUpArrow*Buy,colorDarkGreen,0,L,-15);
PlotShapes(shapeDownArrow*Sell,colorRed,0,H,-15);


SetChartBkGradientFill( ParamColor("BgTop", colorLightBlue),ParamColor("BgBottom", colorLightBlue),Titlebkcolor=colorBlack);

BuyText=WriteIf(Buy,"Buy Taken At "+C[BarCount-1],"");
SellText=WriteIf(Sell,"Sell Taken At "+C[BarCount-1],"");

if( Status("action") == actionIndicator )
(
Title =EncodeColor(colorYellow)+"One_title = "+"Date- "+Date()+
" Open-Open"+"\n"+
"Open- "+WriteVal(O,1.2)+" | "+"High- "+WriteVal(H,1.2)+" | "+"Low- "+WriteVal(L,1.2)+" | "+"Close- "+WriteVal(C,1.2)+" | "+"Volume"+WriteVal(V)+"\n"+
//"StopLoss 1 : "+dtsl+" StopLoss 2 : "+wtsl+" StopLoss 3 : "+mtsl+"\n"+"\n"+
"Entry : "+BuyText+" Exit : "+SellText
//"Profit/Loss: "+ProfitLoss+"\n"+
//"StopLoss : "+StopLoss
);



_SECTION_END();
 

Similar threads