오실레이터에 코드를 넣는 방법 - 페이지 7

 
Vladimir Karputov :

포럼에 코드를 잘못 붙여넣고 있습니다. 코드를 올바르게 붙여넣으십시오.

코드를 올바르게 붙여넣으십시오. 게시물을 편집하는 동안 버튼을 클릭하십시오.   , 표시되는 창에 코드를 붙여넣습니다 . 또는 버튼을 사용하여 코드를 첨부할 수 있습니다.  

***

Открой новые возможности в MetaTrader 5 с сообществом и сервисами MQL5
Открой новые возможности в MetaTrader 5 с сообществом и сервисами MQL5
  • 2021.04.21
  • www.mql5.com
MQL5: язык торговых стратегий для MetaTrader 5, позволяет писать собственные торговые роботы, технические индикаторы, скрипты и библиотеки функций
 
financion.comission :

블라디미르, zip 777 폴더에서 다운받으면 새전문가 자체에 정보가 채워져요... 그전에 예전 전문가 777을 말대로 지우고 컴파일 버튼을 누르면 되는데... 아무거나 넣어야지... 미안하지만 이건 내 잘못이 아니야..

다시 시도 - 폴더와 전문가의 이름을 변경했습니다.

여기에 복사

Signal_Stoch_W

오류 없음

파일:
 
Vladimir Karputov :

포럼에 코드를 잘못 붙여넣고 있습니다. 코드를 올바르게 붙여넣으십시오.

코드를 올바르게 붙여넣으십시오. 게시물을 편집하는 동안 버튼을 클릭하십시오.   , 표시되는 창에 코드를 붙여넣 습니다. 또는 버튼을 사용하여 코드를 첨부할 수 있습니다.  

나는 당신이 말한대로했습니다 ...이 버튼을 통해 ... vladimir 본질은 컴파일러가 많은 오류를 제공한다는 것입니다 ... 이것이 문제입니다 ...

 
financion.comission :

나는 당신이 말한대로했습니다 ...이 버튼을 통해 ... vladimir 본질은 컴파일러가 많은 오류를 제공한다는 것입니다 ... 이것이 문제입니다 ...

그리고 여기 컴파일러, 대화가 거의 10 페이지에 대해 STRONGLY INSERT THE CODE WRONGLY라는 것입니다.

코드를 올바르게 붙여넣으십시오. 게시물을 편집하는 동안 버튼을 클릭하십시오. 암호 , 표시되는 창에 코드를 붙여넣 습니다. 또는 버튼을 사용하여 코드를 첨부할 수 있습니다. 파일을 첨부

 
SanAlex :

다시 시도 - 폴더와 전문가의 이름을 변경했습니다.

여기에 복사


san alex - 보내주신 데이터를 기반으로 새 전문가를 자동으로 채우고 있습니다 ... 어떤 식 으로든 간섭하지 않습니다 .. 그리고 내 컴퓨터는 새 10 windows 64 비트 ... 죄송합니다. 16개의 오류가 있고 1개의 경고가 추가되었습니다.. 직접 눈으로 확인하려면 어떻게 해야 하나요?

 
financion.comission :

san alex - 보내주신 데이터를 기반으로 새 전문가를 자동으로 채우고 있습니다 ... 거기에 어떤 식 으로든 간섭하지 않습니다 .. 그리고 내 컴퓨터는 새 10 windows 64 비트 ... 죄송합니다. 16개의 오류가 있고 1개의 경고가 추가되었습니다.. 직접 눈으로 볼 수 있도록 하려면

Skype에는 바탕 화면을 표시하는 옵션이 있습니다...

 
SanAlex :

다시 시도 - 폴더와 전문가의 이름을 변경했습니다.

여기에 복사


 //+------------------------------------------------------------------+
//|                                               Signal_Stoch_W.mq5 |
//|                                  Copyright 2021, MetaQuotes Ltd. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2021, MetaQuotes Ltd."
#property link        "https://www.mql5.com"
#property version    "1.00"
//+------------------------------------------------------------------+
//| Include                                                          |
//+------------------------------------------------------------------+
#include <Expert\Expert.mqh>
//--- available signals
#include "CCP_Stoch_M.mqh"
//--- available trailing
#include <Expert\Trailing\TrailingNone.mqh>
//--- available money management
#include <Expert\Money\MoneyFixedLot.mqh>
//+------------------------------------------------------------------+
//| Inputs                                                           |
//+------------------------------------------------------------------+
//--- inputs for expert
input string          Expert_Title           = "Signal_Stoch_W" ; // Document name
ulong                 Expert_MagicNumber     = 21346 ;             //
bool                  Expert_EveryTick       = false ;             //
//--- inputs for main signal
input int             Signal_ThresholdOpen   = 10 ;           // Signal threshold value to open [0...100]
input int             Signal_ThresholdClose  = 10 ;           // Signal threshold value to close [0...100]
input double          Signal_PriceLevel      = 0.0 ;         // Price level to execute a deal
input double          Signal_StopLevel       = 90.0 ;         // Stop Loss level (in points)
input double          Signal_TakeLevel       = 36.0 ;         // Take Profit level (in points)
input int             Signal_Expiration      = 4 ;           // Expiration of pending orders (in bars)
input int             Signal_Stoch_PeriodK   = 5 ;           // Stochastic(5,3,3,...) K-period
input int             Signal_Stoch_PeriodD   = 3 ;           // Stochastic(5,3,3,...) D-period
input int             Signal_Stoch_PeriodSlow= 3 ;           // Stochastic(5,3,3,...) Period of slowing
input ENUM_STO_PRICE Signal_Stoch_Applied   = STO_LOWHIGH ; // Stochastic(5,3,3,...) Prices to apply to
input double          Signal_Stoch_Weight    = 1.0 ;         // Stochastic(5,3,3,...) Weight [0...1.0]
//--- inputs for money
input double          Money_FixLot_Percent   = 10.0 ;         // Percent
input double          Money_FixLot_Lots      = 0.1 ;         // Fixed volume
//+------------------------------------------------------------------+
//| Global expert object                                             |
//+------------------------------------------------------------------+
CExpert ExtExpert;
//+------------------------------------------------------------------+
//| Initialization function of the expert                            |
//+------------------------------------------------------------------+
int OnInit ()
  {
//--- Initializing expert
   if (!ExtExpert.Init( Symbol (), Period (),Expert_EveryTick,Expert_MagicNumber))
     {
       //--- failed
       printf ( __FUNCTION__ + ": error initializing expert" );
      ExtExpert.Deinit();
       return ( INIT_FAILED );
     }
//--- Creating signal
   CExpertSignal *signal= new CExpertSignal;
   if (signal== NULL )
     {
       //--- failed
       printf ( __FUNCTION__ + ": error creating signal" );
      ExtExpert.Deinit();
       return ( INIT_FAILED );
     }
//---
   ExtExpert.InitSignal(signal);
   signal.ThresholdOpen(Signal_ThresholdOpen);
   signal.ThresholdClose(Signal_ThresholdClose);
   signal.PriceLevel(Signal_PriceLevel);
   signal.StopLevel(Signal_StopLevel);
   signal.TakeLevel(Signal_TakeLevel);
   signal.Expiration(Signal_Expiration);
//--- Creating filter CSignalStoch
   CCP_Stoch *filter0= new CCP_Stoch;
   if (filter0== NULL )
     {
       //--- failed
       printf ( __FUNCTION__ + ": error creating filter0" );
      ExtExpert.Deinit();
       return ( INIT_FAILED );
     }
   signal.AddFilter(filter0);
//--- Set filter parameters
   filter0.StochPeriodK(Signal_Stoch_PeriodK);
   filter0.StochPeriodD(Signal_Stoch_PeriodD);
   filter0.StochPeriodSlow(Signal_Stoch_PeriodSlow);
   filter0.StochApplied(Signal_Stoch_Applied);
   filter0.Weight(Signal_Stoch_Weight);
//--- Creation of trailing object
   CTrailingNone *trailing= new CTrailingNone;
   if (trailing== NULL )
     {
       //--- failed
       printf ( __FUNCTION__ + ": error creating trailing" );
      ExtExpert.Deinit();
       return ( INIT_FAILED );
     }
//--- Add trailing to expert (will be deleted automatically))
   if (!ExtExpert.InitTrailing(trailing))
     {
       //--- failed
       printf ( __FUNCTION__ + ": error initializing trailing" );
      ExtExpert.Deinit();
       return ( INIT_FAILED );
     }
//--- Set trailing parameters
//--- Creation of money object
   CMoneyFixedLot *money= new CMoneyFixedLot;
   if (money== NULL )
     {
       //--- failed
       printf ( __FUNCTION__ + ": error creating money" );
      ExtExpert.Deinit();
       return ( INIT_FAILED );
     }
//--- Add money to expert (will be deleted automatically))
   if (!ExtExpert.InitMoney(money))
     {
       //--- failed
       printf ( __FUNCTION__ + ": error initializing money" );
      ExtExpert.Deinit();
       return ( INIT_FAILED );
     }
//--- Set money parameters
   money.Percent(Money_FixLot_Percent);
   money.Lots(Money_FixLot_Lots);
//--- Check all trading objects parameters
   if (!ExtExpert.ValidationSettings())
     {
       //--- failed
      ExtExpert.Deinit();
       return ( INIT_FAILED );
     }
//--- Tuning of all necessary indicators
   if (!ExtExpert.InitIndicators())
     {
       //--- failed
       printf ( __FUNCTION__ + ": error initializing indicators" );
      ExtExpert.Deinit();
       return ( INIT_FAILED );
     }
//--- ok
   return ( INIT_SUCCEEDED );
  }
//+------------------------------------------------------------------+
//| Deinitialization function of the expert                          |
//+------------------------------------------------------------------+
void OnDeinit ( const int reason)
  {
   ExtExpert.Deinit();
  }
//+------------------------------------------------------------------+
//| "Tick" event handler function                                    |
//+------------------------------------------------------------------+
void OnTick ()
  {
   ExtExpert. OnTick ();
  }
//+------------------------------------------------------------------+
//| "Trade" event handler function                                   |
//+------------------------------------------------------------------+
void OnTrade ()
  {
   ExtExpert. OnTrade ();
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void OnTimer ()
  {
   ExtExpert. OnTimer ();
  }
//+------------------------------------------------------------------+
 
Vladimir Karputov :

Skype에는 바탕 화면을 표시하는 옵션이 있습니다...

나는 여기서 아무것도 바꾸지 않았다!

 
financion.comission :

이 설정으로 파운드 \ 달러 - 올해 - 30분

파운드 달러

 
Vladimir Karputov :

Skype에는 바탕 화면을 표시하는 옵션이 있습니다...

말씀하신대로 제대로 보낸 코드들에 대한 얘기입니다..