Fotikhbek Khusanov:
That is the natural behaviour of a script. Unlike an EA it is only executed once.
Fotikhbek Khusanov #: But What should I do if I want to Get user input? Its useless without input
You can add inputs to be customised before your single run.
Example of a script that modifies the TP/SL:
input double InpStoploss = 0.0; //StopLoss Pips input double InpTakeProfit = 0.0; //TakeProfit Pips
Simply put "input" to be displayed in the window before it is executed.
Fotikhbek Khusanov:
I created a working script, but when I load it to the chart I don't get Input Window like I get loading an EA, It loads automatically with its defaults.
What should I do with it? I remember, I started learning mql5, and back then it always asked for submission with an input window.
you can add this on top
#property script_show_inputs
in case you want the confirmation window add this :
#property script_show_confirm
Documentation on MQL5: Language Basics / Preprocessor / Program Properties (#property)
- www.mql5.com
Program Properties (#property) - Preprocessor - Language Basics - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I created a working script, but when I load it to the chart I don't get Input Window like I get loading an EA, It loads automatically with its defaults.
What should I do with it? I remember, I started learning mql5, and back then it always asked for submission with an input window.