EA 및 지표를 생성하기 위한 템플릿 - 페이지 4

 

존재하는지 모릅니다. 다음은 일회성 솔루션입니다. 메모장으로 템플릿을 연 다음 스크롤하여 종이의 표시를 확인합니다.

 

아니요

이건 휴먼 파서 인데 제가 좀 게으르네요....

 

제안된 것보다 더 나은 방법은 전문가/지표 목록을 메모장에 복사하여 붙여넣은 다음 새 차트를 열고 템플릿을 한 번에 하나씩 게시하고 템플릿에서 사용 중인 템플릿에 체크 표시를 하는 것입니다. 전문가/지표 폴더로 돌아가 사용하지 않는 사용자 지정 항목을 삭제합니다.

18년 동안 이 일을 해왔고 이것이 내가 하던 방식입니다. 완료하는 데 10분 미만이 소요됩니다. 그것은 또한 많은 공간을 절약합니다.

요즘에는 테스트하는 각 시스템에 대해 하나의 별도 MT4 플랫폼을 사용합니다. 현재 거래하는 거래 시스템을 실행하려면 80개 이상의 템플릿과 대략 25개의 사용자 지정 지표 가 필요합니다(예, 하나의 시스템).

 

파서

마지막으로 pspad를 사용하여 모든 템플릿에서 표시기(이름=)가 있는 줄을 추출한 다음 vim으로 편집하여 사용되지 않은 패턴(:g/pattern_toremove/d)을 제거한 다음 pspad로 다시 편집하여 robocopy 명령을 삽입합니다(vim에서 수행 가능)

내 mt4 디렉터리에서 모든 지표를 삭제한 다음 백업에서 박쥐와 함께 사용된 지표만 복사합니다.

그리고 모든 것이 좋습니다.

 

EA 및 지표 생성을 위한 템플릿 - MT4

포럼

  1. 몇 가지 좋은 템플릿 - 스레드
  2. "mql4 코드"의 기능 - 스레드

기사

  1. MetaEditor: 서 있을 자리로서의 템플릿
  2. 게으름은 발전의 자극제입니다. 템플릿의 반자동 마킹
  3. Universal Expert Advisor 템플릿

코드베이스

  1. Trailing Stop v2가 있는 Expert Advisor 템플릿 - MetaTrader 4용 전문가
  2. 기본 ATR 기반 테이크 앤 스톱 전문가 고문 - MetaTrader 4 전문가
  3. 후행 정지 기능이 있는 기본 전문가 고문 - MetaTrader 4용 전문가
  4. 기본 이동 평균 템플릿 - MetaTrader 4 전문가
  5. 기본 이동 평균 템플릿 - MetaTrader 4 전문가
  6. 그리드 템플릿 EA - MetaTrader 4 전문가
  7. 기본 Rsi 템플릿 EA - MetaTrader 4 전문가
  8. 템플릿 이름 - MetaTrader 4에 대한 표시
  9. DLL이 없는 뉴스 EA 템플릿 - MetaTrader 4용 전문가
  10. 뉴스 2개 소스의 DLL이 없는 EA 템플릿 - MetaTrader 4용 전문가
  11. EA 템플릿 - MetaTrader 4 전문가
  12. 강력한 EA 템플릿 - MetaTrader 4용 전문가

=============

Basic Moving Average template
Basic Moving Average template
  • www.mql5.com
PricerEA PricerEA is a utility to help any trader to place pending orders (stop or limit) at a specific price. SpreadWatch This indicator watches and displays the biggest spread the pair generated. It is recommended to run at least 5 days, from Monday to Friday, to get a big picture of the broker's spread. My Trailing Simple Trailing...
 

기본 이동 평균 템플릿 - MetaTrader 4 전문가

기본 이동 평균 템플릿 - MetaTrader 4 전문가

기본 이동 평균 템플릿 EA - 이동 평균 지표의 신호 및 그에 따라 거래됩니다. 추가 연구에 사용하거나 원하는 대로 개발할 수 있는 템플릿입니다. 이 템플릿에는 거래 작업에서 완벽하게 작동하기 위해 자금 관리를 포함한 모든 기본 사항이 있습니다.

Basic Moving Average template
Basic Moving Average template
  • www.mql5.com
PricerEA PricerEA is a utility to help any trader to place pending orders (stop or limit) at a specific price. SpreadWatch This indicator watches and displays the biggest spread the pair generated. It is recommended to run at least 5 days, from Monday to Friday, to get a big picture of the broker's spread. My Trailing Simple Trailing...
 

기본 ATR 기반 테이크 앤 스톱 전문가 고문 - MetaTrader 4 전문가

기본 ATR 기반 테이크 앤 스톱 전문가 고문 - MetaTrader 4 전문가

With this template i'm demonstrating the use of Average True Range based take profit and stop loss levels. Take profit and stop loss levels are calculated using ATR factor multipliers.

----------------

다른 템플릿:

Basic ATR based take and stop expert adviser
Basic ATR based take and stop expert adviser
  • www.mql5.com
Trend flex x 2 Multi Currency Template This is Multi Currency Expert Advisor Template that can trade according to symbol list (default 6 symbols). For Example, Ichimoku Chinkou Span is used for entry logic. // Main input parameters input double Lots = 0.01; // Basic lot size input int StopLoss= 50; //Stoploss (in Pips) input int...
 
Sergey Golubev :

EA 및 지표 생성을 위한 템플릿 - MT4

포럼

  1. 몇 가지 좋은 템플릿 - 스레드
  2. "mql4 코드"의 기능 - 스레드

기사

  1. MetaEditor: 서 있을 자리로서의 템플릿
  2. 게으름은 발전의 자극제입니다. 템플릿의 반자동 마킹
  3. Universal Expert Advisor 템플릿

코드베이스

  1. Trailing Stop v2가 있는 Expert Advisor 템플릿 - MetaTrader 4용 전문가
  2. 기본 ATR 기반 테이크 앤 스톱 전문가 고문 - MetaTrader 4 전문가
  3. 후행 정지 기능이 있는 기본 전문가 고문 - MetaTrader 4용 전문가
  4. 기본 이동 평균 템플릿 - MetaTrader 4 전문가
  5. 기본 이동 평균 템플릿 - MetaTrader 4 전문가
  6. 그리드 템플릿 EA - MetaTrader 4 전문가
  7. 기본 Rsi 템플릿 EA - MetaTrader 4 전문가
  8. 템플릿 이름 - MetaTrader 4에 대한 표시
  9. DLL이 없는 뉴스 EA 템플릿 - MetaTrader 4용 전문가
  10. 뉴스 2개 소스의 DLL이 없는 EA 템플릿 - MetaTrader 4용 전문가
  11. EA 템플릿 - MetaTrader 4용 전문가
  12. 강력한 EA 템플릿 - MetaTrader 4용 전문가

=============

EA 및 지표 생성을 위한 템플릿 - MT5

포럼

해당 없음

기사

  1. C++ 템플릿의 대안으로 의사 템플릿 사용
  2. MetaTrader용 고급 EA 생성자 - botbrains.app - 기사(MT5)
  3. EA 생성자 개발 시도 - 기사(MT5)
  4. 맞춤형 지표를 기반으로 한 거래 신호 생성기
  5. MQL4에서 MQL5로 지표 전송
  6. UML 도구를 사용하여 전문가 고문을 개발하는 방법
  7. 초보자를 위한 MQL5에서 디지털 필터의 실제 구현
  8. 객체 지향 접근 방식을 사용하여 EA 모드 프로그래밍

코드베이스

  1. Expert Advisor 템플릿 - MetaTrader 5용 전문가
  2. 거래 엔진 4 - MetaTrader 5 전문가
  3. 지표 코드 - MetaTrader 5 전문가
  4. 템플릿 적용 - MetaTrader 5용 스크립트
  5. 시장 분석을 위한 스크립트 및 템플릿 - MetaTrader 5용 스크립트
An attempt at developing an EA constructor
An attempt at developing an EA constructor
  • www.mql5.com
In this article, I offer my set of trading functions in the form of a ready-made EA. This method allows getting multiple trading strategies by simply adding indicators and changing inputs.
 

거래, 자동 거래 시스템 및 거래 전략 테스트에 관한 포럼

MQL5로 시작하는 방법

블라디미르 카르푸토프 , 2020.09.07 18:10

iCustom 작업의 예 - EA [데이터 폴더]\MQL5\Indicators\Examples\MACD.mq5에서 지표 데이터를 얻습니다.

코드: chart.mq5의 iCustom iMACD 값

사용자 정의 MACD 표시기는 다음 폴더에 있습니다.

MQL5에서 표시기로 작업하는 규칙을 기억하십시오. 표시기 핸들은 OnInit에서 생성됩니다. 미래에는 CopyBuffer를 사용하여 표시기 핸들을 사용하여 표시기에서 데이터를 수신합니다.

 //+------------------------------------------------------------------+
//|                                 iCustom iMACD value on chart.mq5 |
//|                              Copyright © 2020, Vladimir Karputov |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2020, Vladimir Karputov"
#property version    "1.000"
#property tester_indicator "Examples\\MACD"
//--- input parameters
input int                   Inp_MACD_fast_ema_period= 8 ;           // MACD: period for Fast average calculation
input int                   Inp_MACD_slow_ema_period= 17 ;           // MACD: period for Slow average calculation
input int                   Inp_MACD_signal_period  = 9 ;           // MACD: period for their difference averaging
input ENUM_APPLIED_PRICE    Inp_MACD_applied_price  = PRICE_CLOSE ; // MACD: type of price
//---
int       handle_iCustom;                     // variable for storing the handle of the iCustom indicator
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit ()
  {
//--- create handle of the indicator iMACD ([data folder]\MQL5\Indicators\Examples\MACD.mq5)
   handle_iCustom= iCustom ( Symbol (), Period (), "Examples\\MACD" ,Inp_MACD_fast_ema_period,Inp_MACD_slow_ema_period,
                          Inp_MACD_signal_period,Inp_MACD_applied_price);
//--- if the handle is not created
   if (handle_iCustom== INVALID_HANDLE )
     {
       //--- tell about the failure and output the error code
       PrintFormat ( "Failed to create handle of the iMACD indicator for the symbol %s/%s, error code %d" ,
                   Symbol (),
                   EnumToString ( Period ()),
                   GetLastError ());
       //--- the indicator is stopped early
       return ( INIT_FAILED );
     }
//---
   return ( INIT_SUCCEEDED );
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit ( const int reason)
  {
//---
   if (handle_iCustom!= INVALID_HANDLE )
       IndicatorRelease (handle_iCustom);
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick ()
  {
//---
   double main[],signal[];
   ArraySetAsSeries (main, true );
   ArraySetAsSeries (signal, true );
   int start_pos= 0 ,count= 3 ;
   if (!iGetArray(handle_iCustom, MAIN_LINE ,start_pos,count,main) ||
      !iGetArray(handle_iCustom, SIGNAL_LINE ,start_pos,count,signal))
     {
       return ;
     }
//---
   string text_main= "Main |" ,text_signal= "Signal |" ;
   for ( int i=count- 1 ; i>= 0 ; i--)
     {
      text_main=text_main+ " #" + IntegerToString (i)+ " " + DoubleToString (main[i], Digits ()+ 1 )+ " | " ;
      text_signal=text_signal+ " #" + IntegerToString (i)+ " " + DoubleToString (signal[i], Digits ()+ 1 )+ " | " ;
     }
   Comment (text_main, "\n" ,text_signal);
  }
//+------------------------------------------------------------------+
//| Get value of buffers                                             |
//+------------------------------------------------------------------+
bool iGetArray( const int handle, const int buffer, const int start_pos,
               const int count, double &arr_buffer[])
  {
   bool result= true ;
   if (! ArrayIsDynamic (arr_buffer))
     {
       PrintFormat ( "ERROR! EA: %s, FUNCTION: %s, this a no dynamic array!" , __FILE__ , __FUNCTION__ );
       return ( false );
     }
   ArrayFree (arr_buffer);
//--- reset error code
   ResetLastError ();
//--- fill a part of the iBands array with values from the indicator buffer
   int copied= CopyBuffer (handle,buffer,start_pos,count,arr_buffer);
   if (copied!=count)
     {
       //--- if the copying fails, tell the error code
       PrintFormat ( "ERROR! EA: %s, FUNCTION: %s, amount to copy: %d, copied: %d, error code %d" ,
                   __FILE__ , __FUNCTION__ ,count,copied, GetLastError ());
       //--- quit with zero result - it means that the indicator is considered as not calculated
       return ( false );
     }
   return (result);
  }
//+------------------------------------------------------------------+
코드는 게시물 #106 에 첨부되어 있습니다.
How to start with MQL5
How to start with MQL5
  • 2020.09.06
  • www.mql5.com
This thread discusses MQL5 code examples. There will be examples of how to get data from indicators, how to program advisors...
 

지표 코드 - MetaTrader 5 전문가

EA 생성자 기사를 개발하려는 시도를 기반으로 합니다.

이 비 거래 EA는 지표 작업을 위해 미리 만들어진 코드 모음입니다. 표시기의 입력 매개변수(Expert Advisor의 "헤더" 로 작성), 핸들 선언(Expert Advisor의 "헤더"로 작성) 및 핸들 생성 (OnInit으로 작성)을 포함합니다.

사유: