[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 641
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
That's what MT does, if you get it right in the indicator
I see. What exactly does MT do? Initialization of an array?
I mean indicator arrays
Something like this: if there is not enough
I've thought about and even implemented such a variant, but it's "heavy", it loads MT quite a lot when it starts up. Especially if there are several arrays. As a result, I've just started setting the Bars dimensionality.
So far, the size of arrays has not exceeded its limits. But all the same, I have a feeling this is a CUSTOM approach to solving the problem. That's why I'm asking how to do it RIGHT.
This must be the design you're talking about?
If you need to analyse open orders, the code is more complicated thereI'm talking about indicator arrays
I've thought about and even implemented such a variant, but it's "heavy", it loads MT quite a lot when it starts up. Especially if there are several arrays. As a result, I've just started setting the Bars dimensionality.
So far, the size of arrays has not exceeded its limits. But all the same, I have a feeling this is a CUSTOM approach to solving the problem. That's why I'm asking how to do it RIGHT.
The right way is to understand what the problem is. If you transfer the indicator code to the Expert Advisor, it is well described by Kim.
Help me write an EA which opens one market order Buy c stoploss 20p, take profit 20p, and immediately opens a pending BuyLimit order at a distance from the open market order of 20 pips. with stop-loss 20 points, take profit 20 points, but with a lot twice larger, and one more order, a pending BuyLimit order at a distance of 40 points from the open market order with stop-loss 20 points, take profit 20 points, but with a lot three times larger. And when closing any order at Take Profit, all pending orders are closed and the scheme repeats all over again.
How to do it right, you need to understand what the problem is. If you transfer the indicator code to the Expert Advisor, it is well described by Kim.
If you don't mind, please give me the link :) I would like to see the differences from the way described by Nikolay Kositsin .