AmiBroker backtest with fixed number of quantity

By default AmiBroker backtesting engine, sets some Initial capital and displays ending capital in backtest result, but more often we need to backtest a strategy with a given number quantity instead of how much trading capital we have, as later criteria can pose problems with options where If one has fixed the trading capital, then…

AmiBroker custom bar colors buy sell AFL

Following piece of code is for drawing, coloured bars/candles that changes its colour with signal, it makes easy to understand working of strategy. color = IIf(Flip(Buy, Sell), colorLime, colorLightGrey); color = IIf(Flip(Short, Cover), colorRed, IIf(color != colorLightGrey, color, colorLightGrey)); Plot(C, “C”, color, styleCandle);   Note that all four variables buy, sell, short, cover must be…

Robo for AmiBroker and Nest – Auto trade bridge

Windicator trade bridge Windicator bridge is a trade automation solution for Indian financial markets, it takes the order instructions from charting software like AmiBroker and place order on a trade terminal ( Currently Nest Trader is supported). Windicator orders are executed 3x faster than other bridge, which is a big advantage for day traders who…

How to export chart historical data from Amibroker

In order to export historical bars as they appear in chart, one has to write an AFL program which can become unmanageable in future, so here at randomticks we are providing a DLL plugin, using which you can export csv files for each AmiBroker symbols in seconds. Steps Download the dll plugin from https://drive.google.com/file/d/122BLgMwi6M3XfSRszEoz6lyQtdVAu6eg/view?usp=sharing Copy DLL…