Kodyisking: 1. Current Price: $2022
OrderSend("XAUUSD", 5, 0.1, 2035, 3, 0, 0 , "Trade", 0, 0, 3937500);
- Don't hard code constants (5), use the proper enumeration (OP_SELLSTOP).
- You can't put a sell stop above the market.
Example of a buy limit and a buy stop? - General - MQL5 programming forum #1 (2020)
William Roeder #:
- Don't hard code constants (5), use the proper enumeration (OP_SELLSTOP).
- You can't put a sell stop above the market.
Example of a buy limit and a buy stop? - General - MQL5 programming forum #1 (2020)
Check out the full code section in the thread, I only showed the constant as an example.
AMI289 #:
You chose to concentrate on his (correctly) criticism of your code snippet,
And totally ignored the fact that he solved your problem, and didn't even thanked him.
Don't be ungrateful.
That isn't the problem lol.
The OrderSend is 100% an example that doesn't exist or anything. The full code snippet is the problem.
You left out relevant code that could be the source of the problem.
For example- where and when do you set the 'order.entry' variable? What value does it holds at the time of the OrderSend function?
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
I don't know what's going on here.
I'm trying to do an OrderSend for a pending order here is all the details.
1. Current Price: $2022
Full code here for ordersend:
Not setting a SL or TP just trying to do an entry.
A google search mentioned StopLevel so I checked stoplevel
StopLevel = 200
I did a check before the OrderSend
It returned back the following in Journal