Tick value in MQL5 - page 2

 
Icham Aidibe #:

Earlier, I was wondering how would you check it ? 

Andrew Thompson #:
Yeah Piotr, I worked tht out a while back, and used it in MQL4 but have now tried to migrate to MQL5 and have got  

(riskQ either equalling a percentage or a specific amount depending on my risk management settings)

but getting a divide by zero error on that second line.

Debugging it gives this:

How can SYMBOL_TRADE_TICK_VALUE == 0.0

?????????????????????

So frustrated

The culprit is probably the 'sym' variable. Why not use _Symbol?
 
Roman Sharanov:
anyone
This is actually easy in python. Type. Eg for EURUSD
"import MetaTrader5 as mt5
symbol_data=mt5.symbol_info(EURUSD)
symbol_tick=symbol_data.trade_tick_value
 "
You have to install mt5 python dependency to do this."pip install MetaTrader5"

sadly its only useful if you are conversant with python programming