거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
조회수:
17
평가:
(6)
게시됨:
\MQL5\Indicators\fxsaber\
Spy.mq5 (0.83 KB) 조회
\MQL5\Include\fxsaber\OnTickMulti\
OnTickMulti.mqh (11.77 KB) 조회
\MQL5\Experts\
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

MT5에서 뉴틱 이벤트는 EA가 실행 중인 종목에서만 발생합니다. 따라서 다중 심볼 거래에는 다양한 트릭이 사용됩니다.

이 라이브러리는 지정된 모든 거래 심볼에 멀티 심볼 OnTick을 생성합니다. 이전 구현의 편리한 래퍼입니다.


예시:

지정된 각 심볼에 대해 들어오는 틱 수를 계산하는 다중 심볼 전문가 자문가의 예에서 라이브러리의 작업을 보여 드리겠습니다.

#include <fxsaber\OnTickMulti\OnTickMulti.mqh> // 멀티심볼 OnTick.

int TicksCounter[]; // 주어진 각 캐릭터의 수신 틱 카운터입니다.

void OnInit()
{
  // 들어오는 틱의 카운터를 초기화합니다.
  ArrayResize(TicksCounter, ArraySize(OnTickMultiObject.Symbols));
  ArrayInitialize(TicksCounter, 0);
}

double OnTester()
{
  // 지정된 각 문자에 대해 도착한 틱 수를 인쇄합니다.
  for (uint i = ArraySize(TicksCounter); (bool)i--;)
    Print(OnTickMultiObject.Symbols[i] + " - " + (string)TicksCounter[i] + " ticks.");

  ArrayPrint(OnTickMultiObject.Symbols); // 온틱멀티 심볼 목록.

  return(0);
}

// 멀티심볼 OnTick.
void OnTickMulti( const string &Symb, const uint &Index )
{
  TicksCounter[Index]++; // 주어진 기호만큼 들어오는 틱의 카운터가 증가했습니다.
}


결과:

Expert Advisor의 정확성을 확인하기 위해 MT5-tester에서 실행해 보겠습니다.

입력에 쉼표 뒤에 멀티심볼 OnTick이 반응할 심볼을 설정합니다.


테스터는 다음과 같은 결과를 생성했습니다(로그 참조).

2023.01.12 23:59:59   AUDJPY - 1618389 ticks.
2023.01.12 23:59:59   GBPUSD - 1116822 ticks.
2023.01.12 23:59:59   EURUSD - 906489 ticks.
2023.01.12 23:59:59   "EURUSD" "GBPUSD" "AUDJPY"
final balance 10000.00 pips
OnTester result 0
EURUSD,M1: 906489 ticks, 12897 bars generated. Environment synchronized in 0:00:00.020. Test passed in 0:00:01.723 (including ticks preprocessing 0:00:00.188).
EURUSD,M1: total time from login to stop testing 0:00:01.743 (including 0:00:00.248 for history data synchronization)
3641700 total ticks for all symbols
AUDJPY: generate 1618389 ticks in 0:00:00.078, passed to tester 1618389 ticks
EURUSD: generate 906489 ticks in 0:00:00.047, passed to tester 906489 ticks
GBPUSD: generate 1116822 ticks in 0:00:00.063, passed to tester 1116822 ticks

강조 표시된 부분은 지정된 심볼에 대해 테스터가 생성한 모든 틱이 멀티심볼 OnTick에 의해 처리되었음을 보여줍니다.


왜?

  • 이 라이브러리를 사용하면 테스터에서 전문가 자문가의 작업 결과는 선택한 기본 심볼과 무관할 수 있습니다.
  • 필수 기호에 대한 틱은 건너뛰지 않습니다.

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/47647

Price Density - Market Noise Index Price Density - Market Noise Index

시장 노이즈를 정확하게 측정하는 정교한 도구

InfoMarket InfoMarket

이 스크립트는 정보 제공으로 분류할 수 있습니다. 단순히 차트에 현재 거래 쌍에 대한 정보를 표시합니다.

RSA Library for asymmetric encryption in MQL5 RSA Library for asymmetric encryption in MQL5

Securing data transfer between client and Server could be a big challenge for you as MQL5 programmer. You may have experience in using built in MQL5 encryption systems like AES.AES can securely encrypt your data but on the other hand is not secure when it comes to sending the AES key through insecure channels. You can only rely on asymmetric encryption systems Like RSA in such cases. you keep the private key at your server side and only share the public key with your clients. Even more you can use hybrid RSA_AES approach to archive more performance

BBMA Oma Ally OmniView BBMA Oma Ally OmniView

It's like a bird's-eye view for BBMA Oma Ally fans. ust drag it onto the chart and you'll get all the BBMA signals running on the chart.