Jens89: is it possible to display the value somewhere so I can have a look at which amount the variable is showing.
| Perhaps you should read the manual. Of course it's possible. The following comes to mind:Comment |
Perhaps you should read the manual. Of course it's possible. The following comes to mind:Comment |
thanks for your reply.
I have read the manual but I'm still struggling. I'm new to MQL4.
what I tried for example was (I am creating a custom indicator):
void Comment(string test= "test");
When I put it out of the special functions it doesn't work.
I then tried to put it within int OnInit()
then I got:
'Comment' - function can be declared only in the global scope
Jens89:
void Comment(string = "test"); 'Comment' - function can be declared only in the global scope | You should read the manual. Starting with the basics and then functions.
|
x
Hi,
I would like to know how I can easily check a value of a function / variable in my program.
let's say I Have the following variable
double TODAY_OPEN = iOpen(NULL,1440,0);
is it possible to display the value somewhere so I can have a look at which amount the variable is showing.
thanks
I think this is what you want.
https://www.metatrader5.com/en/metaeditor/help/development/debug#watch
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I would like to know how I can easily check a value of a function / variable in my program.
let's say I Have the following variable
double TODAY_OPEN = iOpen(NULL,1440,0);
is it possible to display the value somewhere so I can have a look at which amount the variable is showing.
thanks