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,
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
...
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?