Topics
Replies
pankuolung0804
27 Jul 2020, 11:29
( Updated at: 21 Dec 2023, 09:22 )
RE:
PanagiotisCharalampous said:
Hi pankuolung0804,
If you mean the current bar then use Last(0).
Best Regards,
Panagiotis
Please see the image. if I use the last(0), it always shows the open price? is the backtest setting problem(open price data)?
@pankuolung0804
pankuolung0804
27 Jul 2020, 11:13
RE:
PanagiotisCharalampous said:
Hi pankuolung0804,
Try the below
Print("closeprice: " + Bars.ClosePrices.Last(1));
Best Regards,
Panagiotis
Thanks your info.
It looks work, does the cTrader can't handle the last bar close? it can handle the previous bar close?
Thank you!
@pankuolung0804
pankuolung0804
06 Oct 2020, 12:26
RE:
Thanks your reply.
I googled but not sue which one is bug free, any recommendation?
Thank you!
PanagiotisCharalampous said:
@pankuolung0804