need advice from a trawl pro that controls two positions independently of each other, how can it be implemented? - page 5
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
if I understand correctly, you need to replace
to
the same for sell.No, you got it wrong.
No, you don't.
and I thought I didn't understand, maybe you're not explaining it right? )
how do you explain it right?
I haven't read all pages, but I think I got the gist of it.
https://www.mql5.com/ru/articles/1390 here, create an array with orders, when you create an order you have to get magic from somewhere, you can write Magic = 1 in the input parameters of the EA, for example, and with each subsequent open order you can increase the value by 1,
If the terminal crashes, you will be able to restore the array.
I wrote the trall that Magic takes as a parameter on the previous page.
My trawl takes a magik as a parameter, when you open an order you can take Time[0] or something else, date, time or whatever)
takes:
level_ts - trailing stop in points
level_step - Trawl step
mn - Magik, if -1, it will trawl all orders.
Now I will try to use the following in the Magik array
Mas_Ord_New[Qnt][7]=OrderMagicNumber();
MN=TimeCurrent(); always another
I'll try it now.
And of course for each order a different trailing stop will have to be passed.
How do I do that?
Another example
1sell na 1000--------------------------------- price went down
1sell on 950-----------------------------------------calls 1sell on the plus side, price is down
2sell na 900-----------------------------------------
899--------------------------------------- went down here and bounced back to 960
both positions close 1sell on the upside,2sell on the downside
I don't need it that way, so I'm asking if in manual trading
I could put a 50 pips trawl on both positions,
but they won't close at the same time
both positions will close in 50 pips.
I got it, while you want to stop when position is in red, but only for orders that are winning - right?
My trawl that I posted does so while the position is in deficit it does not trawl, it starts trawling when the position is in the + by the specified amount of Trailing + step
I got it, you just need to make stop when position is in deficit, and only moves for orders that are in plus, right?
My traill that I set does so while the position is in deficit it does not move, it starts trailling when the position is in + by a specified amount of trailing + step
That's how it works.
only i am not interested in criteria of trawl activation
i need trawl to handle each open position separately from others