this message is
translated from french to english via the google translation service.
I'm sorry if
you find some errors.
I am a beginner
in programming, I just studied the language mql4.
I'm training on designing some basic functions.
I want metatraider
to execute a buy order, then if the price go up or down by 30 points, it opens
a second sale order.
points, it closes the 2 buy and sell orders.
by doing a
backtest, the buy order is executed also the sell order, but only for the first
time. then only buy ordrer is executed.
where is my
errors please ???
Thank you Mr whroeder1;
I defined the (trade) variable as (true) at the beginning of the code.
Frankly, I used this condition:
If (trade == True)
trade = False;
And I don't know its meaning logically. I used it to avoid the execution of multiples sell orders.
bool trade=true; // Global declaration
Now, I understand what you mean.
I can only put it beside to the comparison of (normalisedouble).
I tried but it did not work.
what do you think ??