ChartHeight variable is an int, not a long. It needs to be a long, even though the function name has the word "Integer" in it. See the return value in the definition.
long ChartGetInteger( long chart_id, // Chart ID int prop_id, // Property ID int sub_window=0 // subwindow number, if necessary );
Ahhh... thanx Anthony, I missed that completely...
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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 guys
Could someone tell me why I get a "Possible Loss of Data due to Type Conversion" Error when getting the Chart Height in Pixels... It's not the end of the world, but it is driving me crazy as I have tried everything to get rid of this "Warning"...
Thanx...