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
terminal time - must be real, corresponding to the bloody meridian of Paris.
Thank the gods it's a demo - otherwise everyone would have noticed and claimed it a long time ago
terminal time - must be real, corresponding to the bloody meridian of Paris.
Fellow developers !
I don't know who's right and who's wrong, but mql doesn't match C++ in a place like this:
Alert: operator=
In C++ we get "copy constructor" in a similar situation
The question was raised quite a long time ago, maybe you've forgotten it.
Fellow developers !
I don't know who's right and who's wrong, but mql doesn't match C++ in a place like this:
Alert: operator=
In C++ we get "copy constructor" in a similar situation
The question has been raised quite a long time ago, maybe you've forgotten it.
Hello.
When installing the script on the chart, the window for assigning values to external variables does not appear, i.e. the extern command is not executed???
The log displays the variables that are prescribed in the script code or zeros, for example:
2012.08.29 17:12:05 OpenBuy1 EURUSD,H1: removed
2012.08.29 17:12:05 OpenBuy1 EURUSD,H1: uninit reason 0
2012.08.29 17:12:05 OpenBuy1 EURUSD,H1: Mn=0; StopLoss=350;
2012.08.29 17:12:05 OpenBuy1 EURUSD,H1: loaded successfully
I.e. MetaEditor is running with an error.
Could you please tell me what the problem may be and what I should do?
Best regards!
Vladislav.
Hello.
When installing the script on the chart, the window for assigning values to external variables does not appear, i.e. the extern command is not executed???
The log displays the variables that are prescribed in the script code or zeros, for example:
2012.08.29 17:12:05 OpenBuy1 EURUSD,H1: removed
2012.08.29 17:12:05 OpenBuy1 EURUSD,H1: uninit reason 0
2012.08.29 17:12:05 OpenBuy1 EURUSD,H1: Mn=0; StopLoss=350;
2012.08.29 17:12:05 OpenBuy1 EURUSD,H1: loaded successfully
I.e. MetaEditor is running with an error.
Could you please tell me what the problem is and what I should do?
Best regards!
Vladislav.
Add at the beginning of the script
#property script_show_inputs
When adding the suggested string, the script fails to pass through the compiler (gives 1 warning and 1 error):
Êîìïëåâèäëåíèÿ 'OpenBuy1.mq4'...
'script_show_inputs' - unknown property C:\Program Files\WFTS-DEMO\experts\scripts\OpenBuy1.mq4 (6, 1)
'script_show_inputs' - defined value expected C:\Program Files\WFTS-DEMO\experts\scripts\OpenBuy1.mq4 (6, 1)
1 error, 1 warning
The string is pasted via the clipboard.
Script code:
//+------------------------------------------------------------------+
//|OpenBuy1.mq4 |
//|Copyright 27.08.2012.|
//|Script opens BUY order with preset Mn and volume (lot).|
//+------------------------------------------------------------------+
#property script_show_inputs
#property copyright "Copyright 27.08.2012"
#property link ""
//+------------------------------------------------------------------+
//|Notes:|
//+------------------------------------------------------------------+
/*
- does not display the external variable setting window ?????
*/
//+------------------------------------------------------------------+
//|External variables (accessible from the program properties window) |
//+------------------------------------------------------------------+
extern int Mn; //Magic number.
extern double Lots =0.1;//Lot size.
extern double StopLoss =350;// SL for the order being opened.
extern double TakeProfit =35; // TP for the order being opened
Maybe something else is wrong? Could you please advise.
Respectfully.
Vladislav.
Add at the beginning of the script
#property script_show_inputs
"If all else fails, read the documentation" (cz)
I should add: read the four's documentation.
And your question is for the four forum
"If all else fails, read the documentation" (cz)
I should add: read the four's documentation.
And your question is for the four forum.
It worked, thank you.
Vladislav.