Hello everyone!I'm trying to read all the signals in the historic of my Buffer and I wrote this code:
Once taken the time of each buffer, how can I print the information in its Alert?
Inserted Code
//+------------------------------------+
//| MyIndicator() |
//+------------------------------------+
datetime MyIndicator(int y,int j)
{
int k=0;
double MyIndicator0=0;
datetime time=0;
for(int i=y;i<y+50;i++) //It reviews the latest 500 candles...
{
MyIndicator0=iCustom(Symbol(),0,"MyIndicator",0,i); //I take the value of the MyIndicator...
if(MyIndicator0!=0.0&&k<j) {k++;continue;} //If the value of the MyIndicator is not what interests me the difference...
if(MyIndicator0!=0.0&&time==0) {time=Time[i];break;} //If the value of the MyIndicator what interests me, except the time with the index.
}
return(time);
} Once taken the time of each buffer, how can I print the information in its Alert?