[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 127
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
This question: the standard OA indicator uses 2 additional index buffers, which are not involved in rendering the indicator:
As you can see only calculations are made in these arrays. I don't understand why these arrays should be assigned index buffer status?
This question: the standard OA indicator uses 2 additional index buffers, which are not involved in rendering the indicator:
As you can see only calculations are made in these arrays. I don't understand, why do these arrays need to be assigned the status of index buffers?
to set the size of the array!
Hello forum users!
I am a total MQL programmer. But I would like to have a simple EA like this. Opens pose with some lot. I set immediately a fixed stop (20-30 pips). After reaching a certain profit (20-30 pips) we close part of the position (50%), and for the remaining positions the stop is moved to Breakeven. For the remaining position a profit order is placed or it is monitored manually. Here is an idea. I would be very grateful for answers.
to set the size of the array!
but what to do if you need to use a large number of arrays? >> (more than 8)
use regular arrays rather than buffer arrays
instead of
SetIndexBuffer(3,ExtBuffer3);SetIndexBuffer(4,ExtBuffer4);
use
ArrayResize(ExtBuffer3,Bars); ArrayResize(ExtBuffer4,Bars);
use regular arrays rather than buffer arrays
instead of
SetIndexBuffer(3,ExtBuffer3);SetIndexBuffer(4,ExtBuffer4);
use
ArrayResize(ExtBuffer3,Bars); ArrayResize(ExtBuffer4,Bars);
Thank you!!!
What if a large number of arrays need to be used? (more than 8)
arrays for drawing in the indicator cannot exceed the specified limit (I think it's 8)!
arrays for calculations also have limits, but the number is bigger!
to work around limits using arrays, you need to use libraries!