[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 112
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
Good evening!
I have a simple question.
For what reason, the EA, after initialisation, cannot go to start(); ?
Maybe someone has faced such a problem?
From init(); I exit return(0); .
Thanks in advance for the answer!
Good evening!
I have a simple question.
For what reason, the EA, after initialisation, cannot go to start(); ?
Maybe someone has faced such a problem?
From init(); I exit return(0); .
Thanks in advance for the answer!
Hi all and profits!
I have such a problem.
On my home computer I'm doing a graphic layout. How to transfer it to another computer - which file should be overwritten?
I cannot use the output like copying the whole MT4 folder and then copying it with a new name to another computer because it is too complicated. The interesting thing is that if I leave the folder on another computer with the old name there is nothing new on the charts...
Who knows, help!
BBSL ,I used to write "start();" - is that how you wrote it? You don't need a colon there. maybe there are no curly brackets
kiimar, did you close it? If so, you need to see the code
Good evening!
I have a simple question.
For what reason, the EA, after initialisation, cannot go to start(); ?
Maybe someone has faced such a problem?
From init(); I exit return(0); .
Thanks in advance for the answer!
How do I check if an order is triggered by TakeProfit or StopLoss? Thank you for your reply!
For what reason, the EA, after initialisation, cannot go to start(); ?
Maybe someone has faced this problem?
Sometimes there are complex calculations or loading history in init(), or the terminal has a lot of indicators and EAs suspending the terminal or...
but if during the code initialization the terminal terminals interrupts the code, the following error will appear in the log: ".... timeout in expert ...."
If the log shows no error, it means that initialization was successful. The start() function itself is easy to check - write start() : Print("new tick") in the first line;
How do I check if an order is triggered by TakeProfit or StopLoss? Thanks for the reply!
Check order history, if close price equals SL or TP - then ... but I think it would be easier to check the profit of a closed order - if > 0 then take otherwise ...
here is a similar meaningful piece of code: