|
input int n=10;
int init()
{
return(0);
}
int deinit()
{
int limit;
limit=500;
for(int i=limit+n; i>=n; i--)
{
ObjectDelete(""+i);
}
return(0);
}
int start()
{
int limitt;
int counted_bars=IndicatorCounted();
if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars--;
limitt=30;
for(int i=n; i<limitt+n; i++)
{
ObjectCreate(""+i*5, OBJ_TEXT, 0, Time[i*5],Low[i*5]);
ObjectSetText(""+i*5, ""+DoubleToStr(i*5,0), 9, "Arial", Red);
}
return(0);
} |
|