I have been using NinjaTrader for many years and am evaluating whether to switch to AmiBroker. To make the switch viable, I will have to reprogram some indicators in AmiBroker.
Rather than spend weeks getting used to AmiBroker's programming language, I hope someone will be able to answer a coding quesiton directly.
For the sake of simplicity let's say that I wanted to create an indicator that would draw a line between the High values on a given chart. In NinjaTrader, the following code is used.
DrawLine(CurrentBar.ToString()+”Line”, false, 1, High[1], 0, High[0], Color.Blue, DashStyle.Solid, 3);
This draws a line from the current day's high (High[0]) to the previous day's high (High[1]) and from the previous day's high to the day before's high etc. Please see attached jpg.
The same result can also be achieved by using a plot instead of a drawn line:
Plot.Set(High[0]);
To quickly evaluate AmiBroker I need to know how to achieve the same result (a line or plot connecting the High values) using AFL language.
Rather than spend weeks getting used to AmiBroker's programming language, I hope someone will be able to answer a coding quesiton directly.
For the sake of simplicity let's say that I wanted to create an indicator that would draw a line between the High values on a given chart. In NinjaTrader, the following code is used.
DrawLine(CurrentBar.ToString()+”Line”, false, 1, High[1], 0, High[0], Color.Blue, DashStyle.Solid, 3);
This draws a line from the current day's high (High[0]) to the previous day's high (High[1]) and from the previous day's high to the day before's high etc. Please see attached jpg.
The same result can also be achieved by using a plot instead of a drawn line:
Plot.Set(High[0]);
To quickly evaluate AmiBroker I need to know how to achieve the same result (a line or plot connecting the High values) using AFL language.