Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 452
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
Help -- I bought a new laptop with vin.8 installed -- I downloaded the terminal from alpari last updated -- I load indicators that I worked with before, in the folder MQL4-indicators, they appear there -- but in the terminal itself in the users do not see them, customer service does not say anything straight - what to do?
I must have misunderstood what to do - program files - I have Alpari - open ---- there are folders ---- MQL4- indikators - I put them in - they appear - I close - I open the terminal - they are not in the user files
Thank you it helped.
Below the last extern:
extern int slippage = 2; // price slippage when closing market positions
insert another one:
extern bool total_symb = true; // on all pairs
and every line:
if ((OrderSymbol() == Symbol()))
and
if(OrderSymbol() == Symbol())
replace this:
if(OrderSymbol() == Symbol() || total_symb)
in theory should work, check.
It closes only a couple of charts where the position is activated. on others an error 4107 will close. I have tried to change in extern bool Buy = false; //delete/close direction of buy orders
Question has arisen, is it possible to write an Expert Advisor or script, which would be to achieve for example a 2% loss on the day would close all transactions?
So, Ticket is still used somewhere in the old version. We have to clean up the code...
Made as follows:
The positions are closed completely. It is true that error zero comes out, but the docks says that it means no errors. And I cannot find"All orders closed" message in the log.
I bolded the lines that I have changed. It seems to work, I have not checked thoroughly yet.
I do not quite understand how loops work. Suppose I have code above and below and in the middle of the loop. If the loop's conditions coincide, the code is executed only inside the loop and does not let the code lines below the loop get executed? Considering this example,does thebreak operatorinterrupt the loop? Is it allowing lines below the loop to be executed, or does the program start calculating from the beginning?
Correct me if I'm wrong: break interrupts the loop it is in, whilecontinue performs the evaluation of the operator above it, so it's not clear if there is a second operator - will its evaluation be interrupted or doescontinue interrupt all the code and sends the program to execute it first?