Download MetaTrader 5

OrderOpenTime() in Partial Close

To add comments, please log in or register
Ahmet Metin Yilmaz
2120
Ahmet Metin Yilmaz  

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_  
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
2120
Ahmet Metin Yilmaz  
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_  
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
2120
Ahmet Metin Yilmaz  
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
1354
Amir Yacoby  
Why don't you save original open time before you perform partial close?
Ahmet Metin Yilmaz
2120
Ahmet Metin Yilmaz  
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
17092
whroeder1  
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
2120
Ahmet Metin Yilmaz  
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  
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
2120
Ahmet Metin Yilmaz  
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