What is an order of PendingOrders.Filled and Positions.Opened ?

Created at 24 Jul 2020, 08:04
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!
KO

koktos632

Joined 18.01.2020

What is an order of PendingOrders.Filled and Positions.Opened ?
24 Jul 2020, 08:04


Hi!

I want to check the position when some order triggers. Is an updated position available when the event PendingOrders.Filled fires?


Assume the script places the order when the position is flat.
...

ExecuteMarketOrder(....);

.....

what is an order of events PendingOrders.Filled and Positions.Opened?
Is PendingOrders.Filled fired before Positions.Opened?
or
Is Positions.Opened fired before PendingOrders.Filled?
or
Is order of these events not defined?

 


Thanks.


@koktos632
Replies

PanagiotisCharalampous
24 Jul 2020, 08:19

Hi koktos632,

First an order is filled and then a position is opened.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous