Re: MT4 Indicator requests and ideas

17496
chickensword wrote: Thu Jan 19, 2023 4:13 am I posted wrong thread last time sorry,

May Mrtools please try making an Volatility Quality of Relative Strength Index please? Or maybe even rsioma ?I feel like there is something else that vq would be good hybrid of, with gratitude!
Tried it but not getting it to work, not sure if it's possible or if I am doing something wrong.
These users thanked the author mrtools for the post (total 2):
Chickenspicy, RodrigoRT7

Re: MT4 Indicator requests and ideas

17498
Respected Sir,

Kindly have a look at this. It will be useful to add mtf.

Request you to Please Add : mtf --- Option to : M-MATH v3 BT Indicator.


Reason for request :
This indicator is different from other murrey / mmath indicators : in options / functions.


Thanks for your Support, Generosity, Time, Efforts.
Thanks.
These users thanked the author thomdel for the post (total 3):
Chickenspicy, Ricstar_8, RodrigoRT7

Re: MT4 Indicator requests and ideas

17499
mrtools wrote: Thu Jan 19, 2023 5:19 am Tried it but not getting it to work, not sure if it's possible or if I am doing something wrong.
I think of it as the high low range from average gain loss
Not sure if that helped


I think scratching the high and low
And replace that + positive as a high and -negative as a low
Every 4 / choice # candles the( +gain (subtract) the -loss moves

#of candle,, Range of average gain / loss
0 + 0 = 0
Infinite / Infinite = 1
1 way to Heaven & it matters
people only serve God or money coincidence?

Re: MT4 Indicator requests and ideas

17500
Good morning everyone, I only ask if you can help me with your experience, not to manufacture it, just to tell me please where this code repaints, I checked it myself and made modifications but I can't leave it without repainting. May I get your kind help? Best Regards


SergioV7 wrote: Mon Jan 16, 2023 10:56 am 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);
}
//+------------------------------------------------------------------+