Is there any way to retrieve OHLC info of the bar of our latest Entry/Position ?

Created at 11 Oct 2023, 10:55
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
JXTA's avatar

JXTA

Joined 23.08.2023

Is there any way to retrieve OHLC info of the bar of our latest Entry/Position ?
11 Oct 2023, 10:55


Hi, just wonder is there any way to retrieve OHLC info of the bar of our latest Entry/Position ? 


@JXTA
Replies

PanagiotisChar
11 Oct 2023, 12:19

Do you mean the bar at which the position was entered?


@PanagiotisChar

JXTA
11 Oct 2023, 13:22

RE: Is there any way to retrieve OHLC info of the bar of our latest Entry/Position ?

PanagiotisChar said: 

Do you mean the bar at which the position was entered?

yes sir! Thats what I was trying to ask. How should I do it? that bar's LowPrices


@JXTA

JXTA
11 Oct 2023, 15:54

RE: Is there any way to retrieve OHLC info of the bar of our latest Entry/Position ?

PanagiotisChar said: 

Do you mean the bar at which the position was entered?

yes sir! Thats what I was trying to ask. How should I do it? that bar's LowPrices


@JXTA

PanagiotisChar
12 Oct 2023, 05:43

Hi there,

You need to write a look and check the bars opening time. The first bar that has an opening time older than your position's entry price, it's the bar at which the position was opened.


@PanagiotisChar