Download MetaTrader 5

user inputs + comment, disappears on the tester

To add comments, please log in or register
Launch your trading signal. Make profit from paid subscription!
stargazer
152
stargazer 2011.11.05 20:03 

I have this input and the following comments next to it:

input int      RunMode=1,   // This is to set testing/trading mode

then, when I look at the strategy tester, the parameter

 RunMode

disappears, only the comments are there.

Any help?

Andrei Moraru
1157
Andrei Moraru 2011.11.06 03:07  
stargazer:

I have this input and the following comments next to it:

then, when I look at the strategy tester, the parameter

disappears, only the comments are there.

Any help?

Place comment on the line above the input parameter declaration.
stargazer
152
stargazer 2011.11.06 09:26  
enivid:
Place comment on the line above the input parameter declaration.
Doesnt work. Thx.
Andrei Moraru
1157
Andrei Moraru 2011.11.06 14:22  
stargazer:
Doesnt work. Thx.
OK. Change comment to
// RunMode (This is to set testing/trading mode)
stargazer
152
stargazer 2011.11.06 14:51  
enivid:
OK. Change comment to

Thx.

I read the documents and discovered the comments will actually do this, although i dont think thats a good thing.  The workaround is as you have given, I guess.


Andrei Moraru
1157
Andrei Moraru 2011.11.06 22:08  

Yeah, MetaQuotes should have added a special code for comments to be taken into input parameters field. For example:

//$ This will be displayed as input name
Not all comments are made to substitute the parameter's name.
Rashid Umarov
Admin
11812
Rashid Umarov 2011.11.07 12:36  
stargazer:

I have this input and the following comments next to it:

then, when I look at the strategy tester, the parameter

disappears, only the comments are there.

Any help?

Thy this

input int      RunMode=1,   /* This is to set testing/trading mode */
stargazer
152
stargazer 2011.11.08 18:13  
Rosh:

Thy this

Didnt work. Thx for helping. Appreciated.

Rashid Umarov
Admin
11812
Rashid Umarov 2011.11.09 11:07  
stargazer:

Didnt work. Thx for helping. Appreciated.

Sorry, try so:

input int      RunMode=1,   /* To set testing/trading mode */   // This is my comment not for showing


stargazer
152
stargazer 2011.11.09 19:39  
Rosh:

Sorry, try so:


No, didnt work. 

So, I am moving on to try a trailing stop. Stop helping here, and if you can help me on trailing stop:https://www.mql5.com/en/forum/5206/unread#unread, and God bless to all who help, good men you all are.


Trailing Stop code (using the Metaquote class)
  • www.mql5.com
Buy(Lot,ins,Ask(),stloss,tprofit); Once it buy I want to have a trailing stop loss?
Rashid Umarov
Admin
11812
Rashid Umarov 2011.11.09 21:38  
stargazer:

No, didnt work. 

You didn't try. I had checked before I wrote. It works.
12
To add comments, please log in or register