For closed STOP Orders, OrderOpenTime() returns the time the position was opened. Is it possible to find out from the code the time when the STOP-Order was set? Thank you!
chief2000: For closed stop orders, OrderOpenTime() returns the time when the position was opened. Is it possible to find out from the code the time when the STOP-Order was set? Thank you!
There's no such thing as a closed stop, there's a remote one...
Doesn't OrderOpenTime() - for set and not triggered stops - return its setting time?
There's no such thing as a closed stop, there's a remote one...
Doesn't OrderOpenTime() - for a set and not triggered stop return the time of its setting?
You are right, I was not accurate. I meant that we set a STOP-order which triggered and a position was opened on it. But the position may be opened on the same bar where the STOP-order was set, or it may be opened some time later.
The OrderOpenTime() shows the time when the position was opened, my question is, how do we know when the stop order was set? The MT4 report has this time, but is it possible to find it out from the code?
If your broker provides this information, then look for an order with a given type, price and magician closed at the time of triggering (going to market)
Dear Professionals, I found a useful Expert Advisor for setting virtual take and stop and trailing stops (attached). But virtual stop loss does not work correctly. Please help me to correct it. Or maybe someone has a good analogue?
Is it possible to find out from the code the time when the STOP-Order was set?
Thank you!
For closed stop orders, OrderOpenTime() returns the time when the position was opened.
Is it possible to find out from the code the time when the STOP-Order was set?
Thank you!
There's no such thing as a closed stop, there's a remote one...
Doesn't OrderOpenTime() - for set and not triggered stops - return its setting time?
There's no such thing as a closed stop, there's a remote one...
Doesn't OrderOpenTime() - for a set and not triggered stop return the time of its setting?
I meant that we set a STOP-order which triggered and a position was opened on it.
But the position may be opened on the same bar where the STOP-order was set, or it may be opened some time later.
The OrderOpenTime() shows the time when the position was opened, my question is, how do we know when the stop order was set?
The MT4 report has this time, but is it possible to find it out from the code?
I get the following error at compilation
'&&' - condition cannot be a string \00.mq4 (225, 27)
'&&' - condition can't be a string
how to fix it ?
Dear Professionals, I found a useful Expert Advisor for setting virtual take and stop and trailing stops (attached). But virtual stop loss does not work correctly. Please help me to correct it. Or maybe someone has a good analogue?
I would like to give my thanks.
Description in code.
was compiled by an advisor
Outputs 2 errors
'clOpenBuy' - variable not defined .mq4 (40, 49)
clOpenBuy - variable not defined
I rewrote the code again and again - these 2 errors can't be fixed.
Outputs 2 errors
'clOpenBuy' - variable not defined .mq4 (40, 49)
clOpenBuy - variable not defined
I rewrote the code again and again - these 2 errors can't be fixed.
You could do this for example