if (ticksize == 0.00001 || ticksize == 0.001)
-
Don't hard code numbers. That fails on Metals. Ticksize=0.25 point=0.01
- RTFM MODE_TICKSIZE returns a value in points (1 or 10,) not a double.
- You must adjust TP, SL, AND slippageProblems with a calculation - MQL4 forum
Ok,thanks for the reply,but i still cant find whats wrong..Please advice
Ok, so I will understand, from this article> http://daytrading.about.com/od/daytradingbasics/qt/PointsTicks.htm
Point is the number on the left side of the decimal point.. but you say in mql4 its not? And whats "Ticksize=0.25 suppoze to mean?
t0mbfunk:
Not every symbol has a tick size of either 0.00001 or 0.001 what would your code do when it encounters a symbol wwitha ticksize of 0.25 ?
Ok, so I will understand, from this article> http://daytrading.about.com/od/daytradingbasics/qt/PointsTicks.htm
Point is the number on the left side of the decimal point.. but you say in mql4 its not? And whats "Ticksize=0.25 suppoze to mean?
Ok,i got it now.
Thanks guys.
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
Hi!
I've been writing and testing my EA on 4 digit broker (insta),and everything worked perfectly,today I've opened pepperstone demo account and it places pending orders too far ...
Now, I am a little stuck because I have a function that "adjusts" my ea to any broker(any number of digits), but for some reason it doesnt work here.
Here are a few pieces of code that I suspect are responsible for causing this and I am almost sure its a logical error but please give me at least a hint what i did wrong if you please..