Pongsapak Thinsantisuk / Publications
Forum
mt5 bug when rounding
Print ( "0.3/0.1 : " , 0.3 / 0.1 ); //3 Print ( "(int)(0.3/0.1) : " ,( int )( 0.3 / 0.1 )); //2 Print ( "(int)(3.0) : " ,( int )( 3.0 )); //3 Print ( "0.4/0.1 : " , 0.4 / 0.1 ); // 4 Print ( "(int)(0.4/0.1) : " ,( int )( 0.4 / 0.1 )); // 4 Print ( "(int)(4.0) : " ,( int )( 4.0 )); // 4
PanelDialog in EA error after change Timeframe 2 times
//+------------------------------------------------------------------+ //| panel.mq4 | //| Copyright 2017, MetaQuotes Software Corp. | //| https://www.mql5.com |
How Can I Read Text From OBJ_EDIT MT4
int OnInit () { //--- indicator buffers mapping ObjectCreate ( "txtMaxTrades" , OBJ_EDIT , ChartWindowFind (), 0 , 0 ); ObjectSetText ( "txtMaxTrades" , "" + "0" , 13 , "System" , White); ObjectSet ( "txtMaxTrades" , OBJPROP_CORNER , 0 ); ObjectSet ( "txtMaxTrades" , OBJPROP_XSIZE , 25 ); ObjectSet