How capture market price in Strategy Tester visual chart?

 

Hi all,

I have no problem in capture market price during live chart with (Market_Price = Bid;). However, when I tried this code in the strategy tester, this code only capture the last market price in live chart instead of capture the price in visual chart from strategy tester.

Any idea regarding this problem? Appreciate for any help from your all.

Thanks.

 
What is you code in ? is it an EA, Indicator or Script ?
Reason: