" What is wrong here, that tp2 isn't with 5 digits? "
.
Nothing tp2 is not 5 digit so price 1.26993234 is correct
0.00001 * 0.001 = 0.00000001 (5 digits * 3 digits ==> 8 digit answer)
" What is wrong here, that tp2 isn't with 5 digits? "
.
Nothing tp2 is not 5 digit so price 1.26993234 is correct
0.00001 * 0.001 = 0.00000001 (5 digits * 3 digits ==> 8 digit answer)
Thanks, I added this, and now works fine.
tp2=NormalizeDouble(tp2,5);
- Do NOT use NormalizeDouble, EVER. For ANY Reason. It's a cludge, don't use it.Bid/Ask: (No Need) to use NormalizeDouble in OrderSend - MQL4 forum
Can price != price ? - MQL4 forum - On Currencies, Point=TickSize, so you will get the same answer. It won't work on Metals.
- I suspect that either the market was to close (MarketInfo(analyze.pair, MODE_STOPLEVEL)*Point) or more likely, his price was above the market and he's using a BUY_LIMIT
- Also not adjusting slippage for 4/5 digit brokers.
Thanks, I added this, and now works fine.
tp2=NormalizeDouble(tp2,5);
Not always.....
See comment above from WHRoeder think it fails on point 3
And if you think I have to use normalizeDouble then don't use it this way but as
tp2=NormalizeDouble(tp2,Digits);
Well I found one case were using NormalizeDouble helped. My history data had decimal places on its Bid and Ask values that were considered illegal when sending orders. Downloading new history values did not seem to help.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I want to send pending order with entry price value from Fibonacci.
I got this error: fibo1 EURUSD,H1: invalid price 1.26993234 for OrderSend function
What is wrong here, that tp2 isn't with 5 digits?
Thank you.