Im just a beginner in mql4 programming and I´m having a lot of trouble with the following:
I am sending two pending orders the first one just 10 points from the entry and the other one 50 points from entry( the small distance betwen is do to quicker testing results in demo)
the 1st one does not have a stoploss but the second one has a stop loss 30 points away, what i´m trying to do is to let the first order inherit the stoploss from the second order the moment the
second becomes a open order. to my inexperinced opinion I have tried allmost everything exept let the ea physically call the broker and nothing seems to work.
my coding text is mostly copied from varius ea,s i have been looking at for simular effects but so far I have not found anything with exsacly this function.
It is much like a trailing stop but still differs because it does not trail behind at every pip.
here enclosed I send you the most resent approach. If any one has a ansver to my problem or differant approach to the solution i would be very greatfull.
pardon my spelling for english is my second language.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Im just a beginner in mql4 programming and I´m having a lot of trouble with the following:
I am sending two pending orders the first one just 10 points from the entry and the other one 50 points from entry( the small distance betwen is do to quicker testing results in demo)
the 1st one does not have a stoploss but the second one has a stop loss 30 points away, what i´m trying to do is to let the first order inherit the stoploss from the second order the moment the
second becomes a open order. to my inexperinced opinion I have tried allmost everything exept let the ea physically call the broker and nothing seems to work.
my coding text is mostly copied from varius ea,s i have been looking at for simular effects but so far I have not found anything with exsacly this function.
It is much like a trailing stop but still differs because it does not trail behind at every pip.
here enclosed I send you the most resent approach. If any one has a ansver to my problem or differant approach to the solution i would be very greatfull.
pardon my spelling for english is my second language.
best regards