Page 1749 of 2170

Re: MT4 Indicator requests and ideas

Posted: Mon Jan 16, 2023 6:19 am
by VanMar23
VanMar23 wrote: Sat Jan 14, 2023 5:14 pm @Mrtools can you take a look at this post, please

Re: MT4 Indicator requests and ideas

Posted: Mon Jan 16, 2023 6:50 am
by legat12
Hello forex station family,

I would like to know if anyone had a zig zag type indicator that shows every low and high of the previous candle?(that stays "straight" when there is no high or low broken as on the screenshot)

Thanks Legat

Re: MT4 Indicator requests and ideas

Posted: Mon Jan 16, 2023 8:13 am
by Tisonic
Dear @mrtools,

I was wondering if it would be possible for you to convert the zigzag oscillator indicator into an MTF (multi-timeframe) version? I understand that this indicator repaints and recalculates, but I believe that it would still be useful for me.

Thank you for your time and efforts.

Re: MT4 Indicator requests and ideas

Posted: Mon Jan 16, 2023 9:44 am
by mrtools
VanMar23 wrote: Mon Jan 16, 2023 6:19 am
IMO we already have a bunch of fib indicators here in the forum.

Re: MT4 Indicator requests and ideas

Posted: Mon Jan 16, 2023 10:56 am
by SergioV7
Colleagues, thank you for your great work, this indicator repaints in the current candle, could you please help me not to repaint?

Code: Select all

#property indicator_chart_window
#property indicator_buffers 1

#property indicator_color1 Red
//---- input parameters
extern double       LongPeriod=25.0;  // note that for an EMA you can have floating point numbers. 
extern double       ShortPeriod=8.0;
extern double       ExtraTimeForward=1.0; // how much to further extrapolate location. 

//---- buffers
//---- indicator buffers
double ExtBuffer[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {

   SetIndexBuffer(0,ExtBuffer);
 //---- drawing settings
   SetIndexStyle(0,DRAW_LINE);
//---- initialization done
   return(0);
  }


int start()
  {
   int limit;
   int counted_bars=IndicatorCounted();
   double ma1,ma3;
   double p1,p3; 
   double t1,t3,t;

//---- check for possible errors
   if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
   if(counted_bars>0) counted_bars--;
    limit=MathMin(Bars-counted_bars,Bars-1);
   
//---- main loop
   p1 = 2.0/(LongPeriod+1.0);
   p3 = 2.0/(ShortPeriod+1.0); 
   
   t1 = (LongPeriod-1.0)/2.0;
   t3 = (ShortPeriod-1.0)/2.0;
   t = ShortPeriod + ExtraTimeForward;
   
   ma1 = Close[limit-1];
   ma3 = ma1;
   for(int i=limit-1; i>= 0; i--) {
      //---- ma_shift set to 0 because SetIndexShift called abowe
      double val = Close[i];
      double slope1, predict;

         
      ma1 = p1*val + (1.0-p1)*ma1;
      ma3 = p3*val + (1.0-p3)*ma3;
      
      slope1 = (ma3-ma1)/(t1-t3);
   
      predict = ma3 + slope1*t;
   
      ExtBuffer[i]=predict; 
  }
//---- done
   return(0);
}
//+------------------------------------------------------------------+

Re: MT4 Indicator requests and ideas

Posted: Mon Jan 16, 2023 1:06 pm
by VanMar23
mrtools wrote: Mon Jan 16, 2023 9:44 am IMO we already have a bunch of fib indicators here in the forum.
Yes, i checked all fibo thread, but there is no one that is fully customisable 😔

Re: MT4 Indicator requests and ideas

Posted: Mon Jan 16, 2023 4:02 pm
by mrtools
VanMar23 wrote: Mon Jan 16, 2023 1:06 pm Yes, i checked all fibo thread, but there is no one that is fully customisable 😔
I'm not very good at object oriented programming, but will see what I can do.

Re: MT4 Indicator requests and ideas

Posted: Mon Jan 16, 2023 5:05 pm
by sal
Tisonic wrote: Mon Jan 16, 2023 8:13 am Dear @mrtools,

I was wondering if it would be possible for you to convert the zigzag oscillator indicator into an MTF (multi-timeframe) version? I understand that this indicator repaints and recalculates, but I believe that it would still be useful for me.

Thank you for your time and efforts.
it is better to update histogram the zig zag above and below zero shall be at when stoch line reach at on OB/OS level

Re: MT4 Indicator requests and ideas

Posted: Tue Jan 17, 2023 9:00 pm
by VanMar23
mrtools wrote: Mon Jan 16, 2023 4:02 pm I'm not very good at object oriented programming, but will see what I can do.
Thanks in advance for Your time and efforts!!!

Re: MT4 Indicator requests and ideas

Posted: Wed Jan 18, 2023 3:36 am
by mrtools
Tisonic wrote: Mon Jan 16, 2023 8:13 am Dear @mrtools,

I was wondering if it would be possible for you to convert the zigzag oscillator indicator into an MTF (multi-timeframe) version? I understand that this indicator repaints and recalculates, but I believe that it would still be useful for me.

Thank you for your time and efforts.
Check here ZigZag indicators