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

Self Optimized SMA - MetaTrader 5용 지표

조회수:
1577
평가:
(3)
게시됨:
2025.02.21 09:07
AMA.mq5 (6.23 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The algorithm

At every bar the indicator checks all SMA periods ranging from MIN_PERIOD to MAX_PERIOD to find which one caused the most recent bounce(either up or down). If nothing found it leaves that bar empty. 

What is the purpose?

The indicator is meant to detect market momentum. Wherever you find both upper and lower line to be non-empty you expect range bound behaviour. 

Too much processing needed

The indicator requires heavy processing. So choosing too wide ranges of MA period to be scanned for larger lookback bars or changing SMA to more sophisticated MA methods will cause the indicator to load too late. Anyway when loaded you will have to update latest bar only.


SMA with optimized period

Collect Data (Date, Time and Close Price) Collect Data (Date, Time and Close Price)

A simple starting-point script to collect data and send to a CSV in oldest-newest ordering. In this example only the close price data is collected.

Print massive information (PrintXYZ) from the terminal Print massive information (PrintXYZ) from the terminal

PrintXYZ() library to print massive information from the terminal.

Useful #define statements Useful #define statements

These are some #define statements that are useful to perform operations in your EA. You only need to assign the name of your variables at the beginning of the file, and then let the other #define statements do the work. In order to use this file, add #include <DEFINE_statements.mqh> to the first line in your EA file.

Download all ticks of a symbol's history Download all ticks of a symbol's history

Download all the ticks from your broker for all the symbols in the market watch. Download all history or until a specific date in the past if available.