Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 514
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, encountered this problem: I can't get the EA to trade in only two time periods. How do I do that? Can you please tell me how to do it? The code looks like this, but it only accepts 1 period, it ignores the second one
Hello, encountered this problem: I can't get the EA to trade in only two time periods. How do I do that? Can you please tell me how to do it? The code looks like this, but it only accepts 1 period, it ignores the second one
It would be better to convert hours and minutes to full time and compare with current time
Добрый день!
Прошу помочь со следующей проблемой:
1) После выполнения некоторых условий, открывается отложенный ордер:
Подскажите пожалуйста, что нужно дописать и куда, чтобы неоткрывшийся отложенный ордер был удален в том случае, если цена уже прошла стоп лосс(этого неоткрывшегося оредра).
Извините за глупый вопрос, заблудился в форумах пока искал ответ.
Заранее благодарю!
Identifier
Description
ORDER_TIME_GTC
The order will remain in the queue until it is removed
ORDER_TIME_DAY
Order will be valid for the current trading day only
ORDER_TIME_SPECIFIED
Order will be valid until the expiry date
ORDER_TIME_SPECIFIED_DAY
The order will be in effect until 23:59:59 of the current trading day. If that time is not within a trading session, the expiration will be at the nearest trading time.
These are just the parameters for removing a pending order !
To delete the order you need to monitor the price and when it reaches the stop price to delete the order - all this has to be written in a separate code !
Dear Sirs,
please help me find the error:
(Errors)
')' - unexpected end of program
" - comma expected
" -semicolon expected
'Trade_BY' - function not defined
'Trade_SELL' - function not defined
Please advise me!
How can I use the script to change the settings (a specific variable) of the indicator on the chart!
If this is possible a piece of code would be desirable !!!
Hello. There are objects - triangles with names: 321fa34, 321fa53, 321fa41. How do I know the minimum price of the freshest triangle? The price that is in the properties in the middle.
1.
OBJPROP_CREATETIME
Object creation time
datetime r/o
2.
OBJPROP_PRICE
Price coordinate
modifier=number of anchor point
Hello, encountered this problem: I can't get the EA to trade in only two time periods. How do I do that? Can you please tell me how to do it? The code looks like this, but it only accepts 1 period, and ignores the second one
With this approach, both timeframes will be ignored. For example, the current time is 01:15. Will the condition hold?
No, it won't. After all, the current minutes are 15, which is less than the starting 30. Similarly with the second interval. It is best to convert the time to minutes from the start of the day:
Good afternoon!
Please help with the following problem:
1) After some conditions are met, a pending order opens:
Please tell me what to add and where to delete a pending order if price has already passed stop loss (of this pending order).
Sorry for the stupid question, I got lost in the forums while searching for an answer.
I lost my way in the forums while searching for the answer. Thanks in advance!
First of all, we do not know if the order has opened, because there is no check on this. Therefore it is meaningless to check if the Stop Loss or Take Profit of an order that was not opened.
Please advise me!
How can I use the script to change the settings (a specific variable) of the indicator on the chart!
If this is possible a piece of code would be desirable !!!
Very strange question. It's the same as asking: "How do you turn on a stool with a file?