average down

  1. D

    Average Down / Rebalancing

    Hi, im a noob to Amibroker. Looking for an example of code that Averages Down a trade using AFL. For instance, during a backtest, if the Current Bar Close Price is 30% less than the Last Open Position, then trigger a "sigScaleIn" signal. The problem Im having is getting the Price of the last...