Attachments forums

List of attachments posted on this forum.


All files on forums: 163214

Re: Something interesting please post here (Metatrader)

thiru, Sun Dec 22, 2019 8:33 am

mladen wrote: Sun Dec 22, 2019 4:35 am Replace the code of OnCalculate() with this :

Code: Select all

   int limit = rates_total-prev_calculated; if (limit>=rates_total-1) limit = rates_total-1;
      for(int i=limit; i>=0; i--) Temporary[i]=tick_volume[i]*(close[i]-open[i]);
      for(int i=limit; i>=0; i--) LinearMomentumBuffer[i]=iMAOnArray(Temporary,0,SmoothingPeriod,0,SmoothingMethod,i);
   return(rates_total);
The code used in that indicator is unnecessarily complicated
Thanks mladen :)

with that simplification, we lost the vertical scale. could you please fix that? also input configurable level alert would be very nice
//
// .. looks like its in the Trend direction & force index category of indicator.
All files in topic