Forum

OnTimer

Hi coders, Can I ask, is all codes written inside OnTimer can be executed if the price got freezed (OnTick is not running cause no tick data coming) ? Thanks

Text Alignment in Button

Hey all, I would like to ask, how to align text inside a button. I created a button and want to populate it with text, but the text keeps aligned in center and it looks so messy. I am trying to put space in the text, and it ended up making some of the text disappear. Here is the code that I write to

MQL Calendar value

Hey all, I would like to ask how to get the exact values of mql calendar ? I already got the value and divided it with 1 million as suggested, but it is still rounding up . I tried typecasting as well but still the same. In this case, the exact value is 46.5, but it keeps producing 46 as the value

Enum as Input in string

Hey all, I would like to ask if anyone of you know how to get enum as an input variable in string. I tried this #define method and StringFind() function but it produce some error and warning as per this picture. Here I also attach the code I tried to write: #define Nonfarm_Payrolls "Nonfarm