amibroker tooltip

gunavadhi

Well-Known Member
#1
when i place the cursor on a candle tooltip shows open,high ,low,close of that candle.i want to add middle point of that candle too in this.please help sir.
 
#2
when i place the cursor on a candle tooltip shows open,high ,low,close of that candle.i want to add middle point of that candle too in this.please help sir.
save the following code as my_price and use it. it has 2 middle points -(1) one is H-L mid point (2) open-close mid point.

Code:
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 

ToolTip="Open="+Open+"\nHigh="+High+"\nLow="+Low+"\nClose="+Close+"\nmid point1="+((High+Low)/2)+"\n mid point2="+((Open+Close)/2);
 

Similar threads