How to calculate Entry price for my strategy in AFL Amibroker

Job ID: 31562941

Budget: $10 – $30 USD

Hi, just looking to get some help into calculate Entry price for my Strategy.

I have been trying with valuewhen(Buy,Buyprice) and after Exrem(buy,sell), but valuewhen() always uses the last buy signal and dont the first of the trade. All based on BacktestmodeRegular.

I need the Entry price in order to use it into sell condition.


Simple request.
Related categories: Amibroker Formula Language