This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community
How to modify script parameters before running..Back to topics list |
|
hdb
2005.05.25 15:33
I have a script with some entry parameters ( ex 'extern string GridName = "Grid";') and would like to set these parameters before the script is run - like expert advisors - when u drag the expert advisor into a window, it pops up a dialogue allowing u to change settings.
Is this possible? Is this documented somewhere? Thanks, |
|
Slawa
2005.05.25 15:59
#property show_inputs
|
|
hdb
2005.05.25 18:10
Thank-you Slawa... that works..
Is this documented somewhere? Regards |
|
Slawa
2005.05.25 19:20
of course. in the MetaEditor dictionary
|
|
hdb
2005.05.26 01:59
Lol, thanks Slawa... The documentation is in a bit of an obtuce place and it was tough finding how to search for something in the doc.
Personally, I would put the documentation under the Help menu in MetaEditor and allow searching.. a la Windows... So I did finally find the properties by searching for 'show_inputs' but this does not tell me how to access the variables on the first page of the 'property sheet'... I assume the common functions like 'IsLibrariesAllowed()' and 'IsTradeAllowed()' are set in this property sheet, but how do I know whether the user selected longs only, shoers only or both longs and shorts? And the other property sheet variables? Thanks for your help! |
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets
