Hello,
I'm facing some weird issue in Amibroker backtest and need expert advise.
While backtesting my AFL I'm getting some difference in Trigger (Signal) price in Scan and Backtest.
Scan menu shows (mentioned in above image) closing price of candle while for same signal Backtest menu (mentioned in above image) showing Low price (for both long and short call).
I've also tried to use below code in AFL but still it is showing Low price in backtest.
BuyPrice = ValueWhen(Buy, Close);
ShortPrice = ValueWhen(Short, Close);
CoverPrice = ValueWhen(Cover, Close);
SellPrice = ValueWhen(Sell, Close);
Can you please help me showing Closing price of Trigger candle both places ? I'll appreciate your help here.
I'm facing some weird issue in Amibroker backtest and need expert advise.
While backtesting my AFL I'm getting some difference in Trigger (Signal) price in Scan and Backtest.
Scan menu shows (mentioned in above image) closing price of candle while for same signal Backtest menu (mentioned in above image) showing Low price (for both long and short call).
I've also tried to use below code in AFL but still it is showing Low price in backtest.
BuyPrice = ValueWhen(Buy, Close);
ShortPrice = ValueWhen(Short, Close);
CoverPrice = ValueWhen(Cover, Close);
SellPrice = ValueWhen(Sell, Close);
Can you please help me showing Closing price of Trigger candle both places ? I'll appreciate your help here.