Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 102
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hello! Is it possible to add a calculated level to the technical indicator opened in the sub-window of a chart? If so, what function? Or will I have to useOBJ_HLINE?
Hey Artem, why don't you put it in CodeBase? At least one more correct code will be there.
Well, it's just a template - it needs a proper modification function.
Then it would already be an advisor. I was talking about placing it as a function. That is, as it is now.
Good afternoon. I'm not writing a big EA. Just learning so far. I have a question. I have to wait for closing of a position by TP or SL and then continue code execution.
But in my case, this command is executed and then the next operators are executed. I tried while(order > 0) to delay the execution of the program but this is a stupid idea and it slows down the strategy tester.
.......;
.......;
order = OrderSend(Symbol(),OP_BUY.............) ;
.....Next operator....;
I am also interested in replacing the missing GOTO operator. Or how to implement a program that would jump to the top lines, for example.
Good afternoon. I'm not writing a big EA. Just learning so far. I have a question. I have to wait for closing of a position by TP or SL and then continue code execution.
I want to wait for the close of a deal and then continue code execution. I have also tried while(order>0) and while(order>0). I tried while(order > 0) to delay the execution of the program but this is a stupid idea and it slows down the strategy tester.
.......;
.......;
order = OrderSend(Symbol(),OP_BUY.............) ;
.....Next operator....;
I am also interested in replacing the missing GOTO operator. Or how to implement a program that would jump to the top lines, for example.
2. The substitution for the GOTO operator is much more efficient. Read the documentation about the functions.
Hello, in the Strategy Tester the maximum history of arrays like Low, Close etc. 1000 bars, are there arrays with more history in the tester?