Re: Coding Help

506
Cladi39 wrote: Fri Sep 01, 2017 2:55 pm Dear mladen im trying to call the arrows of this indicator with iCustom function but not luck. What im doing wrong?

Thanks a lot.

double HA(int i)
{
double up = iCustom(NULL,0,"Heiken Ashi Ma T3 new 2",4,i)!=0;
double dn = iCustom(NULL,0,"Heiken Ashi Ma T3 new 2",5,i)!=0;

if(up)
{
return(1);
}
if(dn)
{
return(-1);
}

return(0);
}
Aren't you calling a wrong indicator?

Re: Coding Help

510
elgaza wrote: Sun Sep 03, 2017 11:28 pm Can anyone tell me what code to use for zooming?
I use mtqgui and have the button already but need it to zoom in an out
how can this be done?

thank you for that
Try like this

Code: Select all

   ChartSetInteger(0,CHART_SCALE,MathMin(ChartGetInteger(0,CHART_SCALE),5)); // To increase the zoom
   ChartSetInteger(0,CHART_SCALE,MathMax(ChartGetInteger(0,CHART_SCALE),0)); // To decrease the zoom


Who is online

Users browsing this forum: No registered users and 23 guests