Beginners Question.

To add comments, please log in or register
Beekster
9
Beekster  

Hi Guys,


I'm trying to learn the basics in MQL5 coding, i'm trying to display the text "Hello" on the left side of my screen.

This is the code i used:

void OnTick()

  {   

     // Say hello

     Comment ("Hello ");   

  }

 When i load te EA, it doesn't display Hello on my screen. It only says hello when i start the strategy tester and select the EA.

What im i doing wrong here?

Thx in advance!


Regards Beekster

nicholi shen
2386
nicholi shen  
The market is closed and there are no ticks. If you want your code to work you can put it in the OnInit
Beekster
9
Beekster  
Thx! It works. 
To add comments, please log in or register