Attachments forums

List of attachments posted on this forum.

All files on forums: 80228

Re: Something interesting please post here (Metatrader)

mrtools, Mon Dec 23, 2019 3:46 am

thiru wrote:
Sun Dec 22, 2019 8:34 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);
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

2019-12-22 05_31_17-Settings.png

looks like its in the Trend direction & force index category of indicator.
Added zero cross alerts and custom ma's, also THANKS Mladen for the simplication. :thumbup:
(8.21 KiB) Downloaded 554 times
All files in topic