거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

Exponential moving average - MetaTrader 5용 지표

조회수:
33095
평가:
(40)
게시됨:
2019.03.22 16:40
ema.mq5 (7.46 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

In the "back to basic" again :

Even though EMA is fairly simple and the code execution time should not vary a lot from one version to another (EMA does not have loops within the loops), it seems that we are still lacking some easy to reuse code that is fast in execution also. This version fills that a bit

PS: using the alternative mode of OnCalculate() - this mode :

int  OnCalculate( 
   const int        rates_total,       // price[] array size 
   const int        prev_calculated,   // number of handled bars at the previous call 
   const int        begin,             // index number in the price[] array meaningful data starts from 
   const double&    price[]            // array of values for calculation 
   );

would make the execution time even shorter and faster (getting the chose price through a function does take it share of time - not too much but compared to a version that does not have to do that, it can be noticed) but, for the sake of flexibility, using the "standard" mode. Also making it a single color version would make it even faster, but then what would be the fun :)



Linear Weighted Moving Average Linear Weighted Moving Average

Linear Weighted Moving Average

Explosion5 Explosion5

Advisor scalper. Trading algorithm: Candle[0]> Candle[1] * 2. Taimeframe - 4H && Day.

MQL_Easy MQL_Easy

A cross platform library/framework

Pan PrizMA Sin leverage 72 Pan PrizMA Sin leverage 72

Builds a sliding line with a polynomial of 4 degrees. Extrapolates as a section of a given function with a sinusoid and its axial one. One value is taken from the constructed lines on each bar and a line of extrapolated values is plotted, which does not redraw.