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

SMA(no loop) - MetaTrader 5용 지표

조회수:
4257
평가:
(29)
게시됨:
2022.02.13 16:00
업데이트됨:
2022.02.13 16:03
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Simple moving average is calculated by adding prices for last n periods and then dividing that sum by the period. This addition is often done with help of a loop. This loop within a loop implementation is okay for single instances but as the algorithms grow and multiple calculations need to be made, it can cost time and cause latency. Even the finest examples I have seen on code base use loop initially.

In this version, I am proposing a loop less method for calculating the Simple moving average.

SMA(no loop)


RatesCompressor RatesCompressor

Rates Version of a script https://www.mql5.com/en/code/30791

High Low Lines High Low Lines

Add High and Low lines based on number of previous bars defined in input field

Trailing Star Trailing Star

Set Trailing Stop only when profit

Price Line 2 Price Line 2

Shows Last Price, Daily % Change, Symbol name, Countdown or Time left on closing and Time on chat