- Ctrade Error
- Errors, bugs, questions
- Strategy Tester Error
I KEEP GETTING ERROR 132 (REQOUTE) FOR THIS CODE WHEN TESTED ON STRATEGY TESTER.THE CODE IS ABOUT FINDING A DIVERGENCE BETWEEN PRICE AND MACD.HELP CHECK IF ANY ERROR .THANKS IN ADVANCE.I HAVE ATTACHED THE CODE TO THE POST.
The parameters you are passing in the OrderSend() function call are completely wrong.
Check out the documentation here:
https://docs.mql4.com/trading/OrderSend
You're initial problem is that you're trying to enter at 50 points away from your price. (The fact that your EA is called DIVERGENCE made me laugh at this point).
However, other problems are an absolute stoploss in pips rather than a relative stoploss expressed as a price.
And what look like stoploss/takeprofit parameters in the wrong place.
If you need further help after reading the docs, please ask. But the docs are very clear.
CB
The parameters you are passing in the OrderSend() function call are completely wrong.
Check out the documentation here:
https://docs.mql4.com/trading/OrderSend
You're initial problem is that you're trying to enter at 50 points away from your price. (The fact that your EA is called DIVERGENCE made me laugh at this point).
However, other problems are an absolute stoploss in pips rather than a relative stoploss expressed as a price.
And what look like stoploss/takeprofit parameters in the wrong place.
If you need further help after reading the docs, please ask. But the docs are very clear.
CB
there is know error in placing the stoploss and take profit may be can help me correct if any.I use fxpro platfom where a quote is 5 digits e.g eur/usd=1.00987.
there is know error in placing the stoploss and take profit may be can help me correct if any.I use fxpro platfom where a quote is 5 digits e.g eur/usd=1.00987.
DOn't really understand your response.
Does that mean you're not going to look up the documentation for the OrderSend() function here?
https://docs.mql4.com/trading/OrderSend
CB
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use