Download MetaTrader 5
To add comments, please log in or register
Add our channel to friends and follow the news!
John
79
John 2014.03.07 18:20 

Hi all,

I'm submitting a BUY marker order with an EA, and need to measure the time it takes to Close this order.

Basically, I'm sending a Buy market order with a Fixed take profit:

BuyTicket = OrderSend(Symbol(), OP_BUY, LotSize, MarketInfo(Symbol(),MODE_ASK), Slippage, StopLoss, MarketInfo(Symbol(),MODE_ASK) + TakeProfitFixed,
"Buy Order with Fixed Profit", MagicNumber, 0, Green);

Any help is appreciated, thanks.

John.

Simon Gniadkowski
Moderator
17962
Simon Gniadkowski 2014.03.07 18:29  
jfortes:

Hi all,

I'm submitting a BUY marker order with an EA, and need to measure the time it takes to Close this order.

Basically, I'm sending a Buy market order with a Fixed take profit:

BuyTicket = OrderSend(Symbol(), OP_BUY, LotSize, MarketInfo(Symbol(),MODE_ASK), Slippage, StopLoss, MarketInfo(Symbol(),MODE_ASK) + TakeProfitFixed, 
"Buy Order with Fixed Profit", MagicNumber, 0, Green);

Any help is appreciated, thanks.

John.

When it has closed select it ( using OrderSelect() ) then compare it's OrderOpenTime() and OrderCloseTime() . . .
John
79
John 2014.03.11 17:49  
RaptorUK:
When it has closed select it ( using OrderSelect() ) then compare it's OrderOpenTime() and OrderCloseTime() . . .


Thanks RaptorUK.
/
To add comments, please log in or register