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

SeriesIntegerInfo and Rates Bar Information Utility, displays how many bars there are in all timeframes for any user selected symbol, and shows the 'CopyRates' information availablity for any bar - MetaTrader 5용 지표

조회수:
12374
평가:
(29)
게시됨:
2019.08.11 19:52
업데이트됨:
2019.08.11 23:42
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

This utility is not a trading information utility.  It will only have value for those getting information on the Number of Bars that have terminal data.  This utility uses the functions SeriesIntegerInfo and CopyRates to obtain and display information about the availability of bar information from the terminal.

The utility allows the user to use the current chart symbol (default) or input any symbol in their market watch, and creates a column with three items of information returned by the SeriesIntegerInfo function in each timeframe for the symbol.

  1. SERIES_SYNCHRONIZED, if the data in the terminal is synchronized (the indicator display's SYNC or UN_SYNC for the functions true or false).
  2. SERIES_BARS_COUNT, the Bars available in that time frame (including bar zero).
  3. SERIES_FIRSTDATE, the date of the oldest bar in that time frame.

The utility also makes a 2nd column showing CopyRates information for any valid bar in each time frame (valid bars are based on the information returned from SeriesIntegerInfo).  The utility defaults to displaying the CopyRates information for the oldest bar in each timeframe (as indicated by SERIES_BARS_COUNT), but the user may input any valid bar number they desire.

This is a twin indicator to https://www.mql5.com/en/code/26316, which gets its information about valid bars using the 'Bars' function.  The SeriesInfoInteger function appears to be a 'better' way to get the bars information, but both report bars are available that CopyRates cannot get information for, at least as of the current version of the terminal.

The indicator display stabilizes as the terminal initializes data  for a few seconds, to a typical chart as shown below, as list with several 4401 'Terminal Data not Available" errors.  Scroll below to see a description of what the numbered controls do:

Series Info and CopyRates Indicator Display Panel.

The Controls:

1)  "Rates and Bar" - Select and drag to move the display to a different location on the chart.

2) This is the Bar Number input Box.  Enter a bar number to see if CopyRates information is available for that bar.

3) "Symbol" - Click to toggle the Bar Number to the 'Oldest' default, or the last entered bar number.

4) This is the Symbol input Box.  Input any symbol in your Market Watch to display for that symbol.

5) Click the MN1 CopyRates information to toggle writing logs on and off.  When on, errors returned from Bars and CopyRates will be written to the logs.

  • I recommend obtaining and  un-commenting // #include <errordescription.mqh>  // errordescription.mqh is found at: https://www.mql5.com/en/code/79
    and adding the ErrorDescription text back into the indicator.  I cannot submit the code with this include in the code.

During my testing, SeriesIntegerInfo would report bar values greater than 100,000, but CopyRates never appears to get data for bar numbers greater than 99,999. The below picture shows the CopyRates 4401 error for bar 100,0000, and the success for bar 99,9999:

CopyRates Oldest Usable Bar is 99,999

Versions: M1 thru MN1 row identifiers left off in V1.00, fixed in V1.02.

Reversing Martingale EA Reversing Martingale EA

Very popular but dangerous strategy which doubles the stakes after each loosing trade. Finally, if there is enough margin it will reverse into the direction of the current price move and will eventually close in profit. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951

RSI Levels Expert Advisor RSI Levels Expert Advisor

Classic trading strategy based on RSI levels. Buys when RSI is oversold and sells when RSI is overbought. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951

Parabolic SAR Expert Parabolic SAR Expert

Classic strategy based on Parabolic SAR indicator. With Auto Lot options and Trailing Stop. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951

Adaptive deviation Adaptive deviation

Adaptive (ema) deviation