can't figure what happen

 

i had my EA runing and a buy deal on, when my take profit was triggerd i've lost the ticket who was in a param after ordersend()

no restart or disconct during that period between buying and that trigger

what could have cost the param to lose it's value?

 
Varaible was not global scope or static.
 
RaptorUK:
Varaible was not global scope or static.

ticket is global and not static
 
redharel:

ticket is global and not static
You have reset it then . . . I'm guessing as I have no code to look at.
 
RaptorUK:
You have reset it then . . . I'm guessing as I have no code to look at.


no i didn't do any reset(also looked at the expert log to verify that)
 

Variable on Global Scope can lose it's value when Terminal Restarts.

We cannot tell you whats wrong with-in your code because we cannot see your code.

Using the Variable in more_than 1_Place or sending more than 1_Order could also be the problem.

 
redharel:

no i didn't do any reset(also looked at the expert log to verify that)

variable = 0; would not appear in the log . . .

 
RaptorUK:

variable = 0; would not appear in the log . . .


i never said i saw the veriable value in the log file...

it was print...

sending more than 1_Order could also be the problem

that might be the problem but i still haven't found it

 
There are no mind readers here. Post your code
Reason: