Questions from Beginners MQL5 MT5 MetaTrader 5 - page 439
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
...
In order to retrieve something from an array, you must first write this "something" to the array.
...
For which conditions: should the array be saved when switching the timeframe of the chart or after reloading the terminal?If I want to take something from an array, I first have to write it into the array.
not during the work of the EA
If I set returnee in the function, when there is an order in the market, it gives me null arrays (I set returnee before nulling arrays),
If an order is on the market it gives me zero arrays (I set the returnee before the arrays are zeroed),
The function parameters must be reverted back to the original version, otherwise they simply won't be called:
Here is the code of the standard SignalAC file
//+------------------------------------------------------------------+
//| "Voting" that price will grow. |
//+------------------------------------------------------------------+
int CSignalAC::LongCondition(void)
I understand it this way: the code sends a signal and the parametersdouble& price,double& sl,double& tp,datetime& expiration are needed to place an order,
this is handled by another EA block?
corrected the code to a variant:
int CSampleSignal::ShortCondition(void)
The expert started to do something, thanks for the tip!
corrected the code to a variant:
int CSampleSignal::ShortCondition(void)
The expert started to do something, thanks for the tip!
Such a question does this code serve to limit the calculation - counting only once on a new bar?
static datetime TimeN=0;
datetime TimeC=iTime(NULL,TF,0);
if(TimeN==0)TimeN=TimeC;
if(TimeN==TimeC) return(0);
Such a question is this code used to limit the calculation - only count once on a new bar?
static datetime TimeN=0;
datetime TimeC=iTime(NULL,TF,0);
if(TimeN==0)TimeN=TimeC;
if(TimeN==TimeC) return(0);
If the new bar is on an M1 timeframe, then we print a message:
If the new bar is on the M1 timeframe, print a message:
So I'm right, it's a new bar check?