[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 57
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
Apparently you haven't phrased your question correctly.
What should I specify to fully clarify the situation? How about posting an advisor?
What should I specify to fully clarify the situation? How about posting an advisor?
What Roman suggested is fully relevant to the question you asked. You seem to need to know something else. But what is it?
What Roman suggested is perfectly in line with the question he asked. You seem to need to know something else. But what?
I just want to understand what can cause that at each iteration the global variable is not assigned a new value obtained as a result of calculations in the body of one of the operators.
The previous question seems to be sorted out somehow. Now I would like some hints: how can I perform operations with a variable of datetime type? For example, I want to set up a time filter that will allow my EA to trade only 2 hours after the current time when the order is opened. In other words, how to "add" the time correctly?
the time is set in seconds
two hours is 2*60*60
a chart timeframe is specified in minutes https://docs.mql4.com/ru/constants/timeframes
two hour timeframes are 2*PERIOD_H1*60
the time is set in seconds
two hours is 2*60*60
chart timeframe is set in minutes https://docs.mql4.com/ru/constants/timeframes
two hour timeframes are 2*PERIOD_H1*60
Thank you
People, with all these global and local variables, I'm about to start running around barefoot and blowing sparrows. Man, I don't understand why there's so much headache in the middle of nowhere!
As far as I know from MQL4 tutorial, now the new value of global variable Orders should equal 1. The next iteration should be 2, then 3. Then 4. And so on, until the Expert Advisor places pending orders. But I do not understand why the EA does not place pending orders! After placing another pending SELLSTOP order, every time I see only one message: Orders = 1! What is the reason? Can it be because of MetaEditor?the reason is in this line, as soon as you have one order the program quits the function and does not allow to increase the counter
How to change Stop Out level from % to absolute value?
I apologize to the moderators if this question is not worth opening a new thread! But I can not litter other threads with off-topic questions!
If it is the server, then I will dance from %, and the branch can be deleted. But still I hope to change this Mode to 1 (absolute value) with the help of experienced programmers. Thanks to those who responded to my request!
EA Features
Aren't you afraid of getting into frequent requests? After all, every 15-30 seconds you will have to either open new positions in addition to ones you already have, or delete ones you already have.
You can't change the volume of an open position. So you have to split it into several positions.