Re: MT4 Indicator requests and ideas

14552
mrtools wrote: Tue Dec 21, 2021 4:51 am First need to fix the code

this

Code: Select all

trend[i] =  0.0;

         if((High[i+1] < Low[i-1]) && (body[i] > body[i+1]) && (body[i] > body[i+2]) && (body[i] > body[i+3]) && (iVolume(NULL,0,i-LagBar)>1))
         {
         trend[i] = 1;
         }
         if((Low[i+1] > High[i-1]) && (body[i] > body[i+1]) && (body[i] > body[i+2]) && (body[i] > body[i+3]) && (iVolume(NULL,0,i-LagBar)>1))
         {
         trend[i] =- 1;
         }
needs to be

Code: Select all

trend[i] =  0.0;

         if((High[i+1] < Low[i+1]) && (body[i] > body[i+1]) && (body[i] > body[i+2]) && (body[i] > body[i+3]) && (iVolume(NULL,0,i-LagBar)>1))
         {
         trend[i] = 1;
         }
         if((Low[i+1] > High[i+1]) && (body[i] > body[i+1]) && (body[i] > body[i+2]) && (body[i] > body[i+3]) && (iVolume(NULL,0,i-LagBar)>1))
         {
         trend[i] =- 1;
         }
Hi Mr.Tools,

After I replaced the code now became no arrow on the chart.... :lmao:




Who is online

Users browsing this forum: bbookgenius, fibo7818, kvak, Mickey Abi, SijjiN and 95 guests