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
They've had server issues for the first time in aggggggges today actually. So the server has been down and out for 30 minutes. Quite frustrating as I missed a great short on cable.
Maybe that has messed it up?
For future reference, how can I build this issue into my algorithm if this happens again? I.e. if the MarketInfo gets scrambled temporarily and returns unusable or irrelevant numbers?
Try SymbolInfoDouble("USDCAD",SYMBOL_TRADE_TICK_SIZE) and ask your broker may be the server is not correct?
Ok so this still returns "0"....
Wow this has completely stopped my trading.
So none of the markets on FXCM platform are returning a tick size. Some are not even returning the tick value either (facepalm). Disaster.
How can I synthetically formulate these values?
1) Talk to your broker!
2) Try Print("Tick size in points=",MarketInfo(Symbol(),MODE_TICKSIZE)," ",_Point);
Wow this is chaos. FXCM is having MAJOR issues over the past hour+. They're offline again.
If I could talk to my broker that would be great! Impossible to get through. I'd imagine everyone is going mental right about now.
Is there not a way for me to produce these values rather than depend upon the brokers server information?
Account Balance * percent = RISK = (OrderOpenPrice - OrderStopLoss)*DIR * OrderLots * DeltaPerlot (Note OOP-OSL includes the SPREAD) Do NOT use TickValue by itself - DeltaPerlot
Therefor it must be
or the originalzero divide error on demo testing but not ST?
Zero divide was from brokers server side issue. It's since been resolved. It was because ticksize was "0" for a bit whilst a trade was being placed. Therefore the lots formula was dividing by a "0".
I've read your DeltaPerLot thread before but tbh don't really understand it. Just a little slow tbh.
a bit math: a / b / c = a*c/b (you don't even need brackets) :)
it saves a zero-devide-check!