OrderOpenTime() in Partial Close

 

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


 
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.
 
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

 
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
 
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

 
Why don't you save original open time before you perform partial close?
 
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

 
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.
 
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....

 
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!
 
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!!!

Reason: