First check the error code after OrderSend(..)!
Second check what is written n the logs!!
Second check what is written n the logs!!
stoplimit is not correct => use price.
request.price = low5; ==> correct request.stoplimit = low5; ==> incorrect

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
Here is the code block that doesn't works. If the condition is true, I need to place a order for the price I specified.
I've checked the code block using comment(); and playsound();. the code block pass when the specified conditions are met.
The SellSignal() custom function is an example. inside the EA the original code block returns true when the conditions are met. (because when the block returns true, the comment(); and playsound(); was worked).
I did check all the parameters (lot size, SL etc.) using comment();. there is no issue with them,
but there is no order placed as I required. I appreciate your support regarding this code block. what kind a modification should I do?