Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1352
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
CopyBuffer not found in mt4, only in mt5 No in mt4?
no
in MT4 it is iCustom()https://docs.mql4.com/ru/indicators/icustom
I checked it last year, iCustom() call from EA is cacheable, i.e. if you calliCustom() several times from EAfor different buffers or indexes on the same tick, the indicator itself will be recalculated once for this tick, i.e. there is nothing wrong with performance
ZS: why MT4 - if MT5 has already been "figured out", the productivity is more, the tester is more accurate... all in all a good thing for research, imho
no
in MT4 it is iCustom()https://docs.mql4.com/ru/indicators/icustom
I checked it last year, iCustom() call from EA is cacheable, i.e. if you calliCustom() several times from EAfor different buffers or indexes on the same tick, the indicator itself will be recalculated once for this tick, i.e. there is nothing wrong with performance
ZS: why MT4 - if MT5 has already been "figured out", the productivity is more, the tester is more accurate... all in all, it's a good thing for research, imho
It is easier to work with ideas on MT4. The shell is easier))) No so no. Let's write)))) in a loop in the array the old-fashioned way I have not reached these stages yet)))) In MT5 it makes sense to scale when MT4 stops working))) and this is either too slow or too much data.
added. And when the idea is worked out to an acceptable error.Good afternoon all. The grail machine is almost finished, but when I compile it I get about 50-60 warnings about return value of'OrderSend' should be checked TREND+ _V_1,1.mq4 1626 11
As far as I understand it because I write the opening of orders without any check, like this
Good afternoon all. The grail machine is almost finished, but when I compile it I get about 50-60 warnings about return value of 'OrderSend' should be checked TREND+ _V_1,1.mq4 1626 11
As far as I understand it because I write the opening of orders without any check - like this
write it like this
write this
this line of code does not work:( 2 errors like this pop up at once:
'Buy' - undeclared identifier TREND+_1,1.mq4 860 98
'Open' - some operator expected TREND+_V_1,1.mq4 860 102
And the code itself is like this
I wrote everything as advised, the only difference is that I changed the variable name for the comment to separate the comment for market and pending orders. What am I doing wrong?Print("Buy Open");
This line of code doesn't work:( 2 errors like this appear at once:
'Buy' - undeclared identifier TREND+_1,1.mq4 860 98
'Open' - some operator expected TREND+_V_1,1.mq4 860 102
and the code itself is like this
I wrote everything as advised, the only difference is that I changed the variable name for the comment to separate the comment for market and pending orders. What am I doing wrong?I missed ""
Vladislav Andruschenko:
Print("Buy Open");
Ticks come it's visible on prints but it doesn't copy, as if there is no indicator in the terminal, only change of period with indicator helps, then after first start indicator works fine.
With the first start of the indicator in the OnCalculate method CopyRates does not work
Ticks come it is visible on prints but does not copy, as if there is no indicator in the terminal, only change of period with indicator helps, then after first start indicator works normally.
Help:CopyRates
Note