AmiBroker formula Language

milind

Active Member
I want to draw a vertical lines on chart to indicate some price ranges. LineArray/Plot can not draw it. Is there any other way of drawing it?

Thanks,

-- Milind
 

VJAY

Well-Known Member
Dear friends,
Please tell how to change info (when move mouse to any bar showing that bar's open,high,low,close and time).Now its only showing time and close price of the bar).
Regards
VJAY
 
Dear friends,
Please tell how to change info (when move mouse to any bar showing that bar's open,high,low,close and time).Now its only showing time and close price of the bar).
Regards
VJAY
right click on the chart
go to parameters
and then to tool tips where u can adjust tool tips settings hope this help
 

VJAY

Well-Known Member
right click on the chart
go to parameters
and then to tool tips where u can adjust tool tips settings hope this help
Thanks dnana,
But tooltips not showing in parameters.

Regards
VJAY
 

dhakkan

Active Member
Hi Vijay,

In your price Chart AFL you can add the following line to get whatever you want on the tooltip.


/////////
ToolTip = "This is my tooltip. " + "Close = " + C + ", High = " + H;
//////////

also to put the information on next line you can use "\n".
eg.
/////////
ToolTip = "This is my tooltip.\n" + "Close = " + C + ", High = " + H;
//////////

regards.
 
Last edited:

lvgandhi

Well-Known Member
Hi Vijay,

In your price Chart AFL you can add the following line to get whatever you want on the tooltip.


/////////
ToolTip = "This is my tooltip. " + "Close = " + C + ", High = " + H;
//////////

also to put the information on next line you can use "\n".
eg.
/////////
ToolTip = "This is my tooltip.\n" + "Close = " + C + ", High = " + H;
//////////

regards.
What to do I if I need other values defined in formula as given below in tool tip in addition to price section.
_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 200, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
 

rinku4142

Active Member
Hello sir
please create a afl for me for intraday chart
rules wait first 30 min then buy above high+1% or sell low-1% which is made during first half hours
instance acc made high of 600 and low 500 till 10.30 so buy would be taken place at 660 and sell at 450
thank you in advance
 
Hello sir
please create a afl for me for intraday chart
rules wait first 30 min then buy above high+1% or sell low-1% which is made during first half hours
instance acc made high of 600 and low 500 till 10.30 so buy would be taken place at 660 and sell at 450
thank you in advance
Hi, Rinku

600 + (1% 600) = 660
my math teacher told me it is 606

Joking, but u can expect the afl soon
regards
 
here's the afl

Code:
newDay = DateNum() > Ref(DateNum(),-1);
ORstartTime = 95500; ORendTime = 103000; 

ORhigh = ValueWhen(TimeNum() <= ORendTime , HighestSince(newDay,H));
ORlow = ValueWhen(TimeNum() <= ORendtime , LowestSince(newDay,L));

mf = Param("Percentage",1,0.1,5,0.1);
ORhigh = ORhigh*(1+mf/100);
ORlow = ORlow*(1-mf/100);
ORhigh = IIf(TimeNum()<ORendTime,Null,ORhigh);
ORlow = IIf(TimeNum()<ORendTime,Null,ORlow);

Plot(ORhigh,"OR Hi", ParamColor("Hi Color",colorRed));
Plot(ORlow,"OR Low", ParamColor("Low Color",colorBlue));
 

Similar threads