[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 150

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
1.MQL4 Reference (MetaEditor)-->Language Basics-->Operations and Expressions-->Arithmetic Operations
2.Tutorial -->https://book.mql4.com/ru/basics/expressions
I do it like this, but I get an error:
int highx = NormalizeDouble((10000 * High[i]) % 10,0);
The '%'-remainder operator is to be applied to integer values only
help....
I do it like this, but I get an error:
int highx = NormalizeDouble((10000 * High[i]) % 10,0);
The '%'-remainder operator is to be applied to integer values only
help....
Try it:
Gentlemen professionals, help please!
Gentlemen professionals, help please!
The expert can open either a buy trade or a sell trade. He can also put stop losses for buys and sells. How do I make it so that it understands which trade is being made now? Is it buying or selling? I.e. so that it calculates stop loss for sales trades only when there is a sale trade, and for purchases in the same way. I.e. how to set an individual order parameter, which may contain information about the order (whether to sell or buy, and other signs of this order) ?
It's not clear what OrderType() returns? A number? Or text? And which number or text? Where can I get a proper explanation of the function? What is written here - https://docs.mql4.com/ru/trading/OrderType doesn't make it clear...
And another question, why when using the "Print" function in the strategy tester's log the parameters monitored are not displayed every tick, but selectively? This makes it terribly difficult to analyse the program... How can I get out of this situation?It's not clear what OrderType() returns? A number? Or text? And which number or text? Where can I get a proper explanation of the function? What's written here - https://docs.mql4.com/ru/trading/OrderType doesn't make it clear...
It already says that it returns int
int OrderType( )
and there is an example given there as well.
;
And another question, why when using the "Print" function in the strategy tester's log the controlled parameters are not displayed every tick, but selectively? This makes analysis of the program very difficult... How can I get out of this situation?Another easy way to avoid this nuisance:
Try it:
Thank you so much!!! Everything works.
Now the programme just terminates after making only one order