Download MetaTrader 5

OrderOpenTime() in Partial Close

To add comments, please log in or register
We have launched Spanish and Portuguese versions of the website. Try them!
Ahmet Metin YILMAZ
1638
Ahmet Metin YILMAZ 2015.08.06 07:59 

Hi all,

I am preparing an EA which uses Partial Close in its logic inside

I can save remaining order after partial close with magic number control

But now, I have different problem in OrderOpenTime, remaining orders ( generating after partial close ) have different OrderOpenTime() than original order.

I need to keep original orderopen time with .

is there a way to keep these time ?


Thanks


ssn_
110
ssn_ 2015.08.06 10:20  
assassin:

Hi all,

I am preparing an EA which uses Partial Close in its logic inside

I can save remaining order after partial close with magic number control

But now, I have different problem in OrderOpenTime, remaining orders ( generating after partial close ) have different OrderOpenTime() than original order.

I need to keep original orderopen time with .

is there a way to keep these time ?


Thanks



You could track the original open time with the order comment.
Ahmet Metin YILMAZ
1638
Ahmet Metin YILMAZ 2015.08.06 10:29  
ssn:

You could track the original open time with the order comment.

I think you meant from OrderHistory?

But I konow the OrderComment is not reliable

ssn_
110
ssn_ 2015.08.06 10:57  
assassin:

I think you meant from OrderHistory?

But I konow the OrderComment is not reliable


No I actually meant from positions. If it is not reliable then that's too bad
Ahmet Metin YILMAZ
1638
Ahmet Metin YILMAZ 2015.08.06 11:46  
ssn:

No I actually meant from positions. If it is not reliable then that's too bad

- If you mean active orders, I need original orderopen time after it closed , how it will be possible ?

Should I use datetime?

could u please give me an example ?


- some brokers can change order comment .


thanks

Amir Yacoby
1192
Amir Yacoby 2015.08.06 15:00  
Why don't you save original open time before you perform partial close?
Ahmet Metin YILMAZ
1638
Ahmet Metin YILMAZ 2015.08.06 15:37  
amir_avatar:
Why don't you save original open time before you perform partial close?

I think I did not understand you correctly,

can you show me in codes as example?

thanks

whroeder1
14480
whroeder1 2015.08.06 16:11  
assassin:

I think I did not understand you correctly,

can you show me in codes as example?

  1. What part of "Save the original open time" was unclear?
  2. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
Ahmet Metin YILMAZ
1638
Ahmet Metin YILMAZ 2015.08.06 16:57  
WHRoeder:
assassin:

I think I did not understand you correctly,

can you show me in codes as example?

  1. What part of "Save the original open time" was unclear?
  2. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.

I do not remember to write to you :)

you are writing like as I was asked to your help

could u please be polite....

Olumide Samson
91
Olumide Samson 2015.08.06 22:57  
assassin:

I do not remember to write to you :)

you are writing like as I was asked to your help

could u please be polite....


That's how he does all around. Don't mind him...
He always say "we" like he's the Speaker of a Parliament.

Even when no one mention WHRoeder, he will always jump into threads with his unpolite template.
Mmstcheew!
Ahmet Metin YILMAZ
1638
Ahmet Metin YILMAZ 2015.08.07 17:55  
noobshow:
That's how he does all around. Don't mind him...
He always say "we" like he's the Speaker of a Parliament.

Even when no one mention WHRoeder, he will always jump into threads with his unpolite template.
Mmstcheew!

I really dont know he has a problem with him

Sorry WHRoader!!!

12
To add comments, please log in or register