如何为振荡器输入代码 - 页 7

 
Vladimir Karputov:

你在论坛中没有正确插入代码。请正确插入代码。

正确 插入代码:当你在编辑一个帖子时,按下按钮 会被提示在出现的窗口插入你的代码或者你可以用以下方法粘贴 你的代码

 

***

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

弗拉基米尔当从拉链文件夹777下载的信息填写在新的EA本身......我只需要按要求删除旧的EA 777,然后按下编译按钮......不需要插入任何东西...对不起,但这不是我的错......

让我们再试一次 - 我重新命名了文件夹和专家顾问

复制到这里

信号_Stoch_W

虫子

附加的文件:
 
Vladimir Karputov:

你在论坛中没有正确插入代码。请正确插入代码。

正确 插入代码:当你在编辑一个帖子时,按下按钮 会被提示在出现的窗口插入你的代码或者你可以使用按钮粘贴 你的代码

我按你说的做了...通过这些按钮...弗拉基米尔的观点是,编译器给出了一堆错误 ...这就是问题所在...

 
financion.comission:

我按你说的做了...通过这些按钮...vladimir的问题是,编译器给出了很多的错误...这就是问题所在...

如果问题的关键在于,在将近10页的时间里,你一直在以错误的方式输入代码,那么编译器与此有什么关系呢?

正确插入代码:在编辑帖子的时候,点击编码 ,在出现的窗口中,插入你的代码。或者你可以使用 附上文件 按钮来附上代码。

 
SanAlex:

让我们再试一次 - 我重新命名了文件夹和专家

在此复制


San alex - 我正在根据你发给我的数据自动填写新的EA ...我不以任何方式干扰......我的电脑是新的10个Windows 64位......。对不起,但我有16个错误和一个警告......我怎样才能让你自己看到它......

 
financion.comission:

San alex - 我根据你发给我的数据在新的EA中自动填写...我没有以任何方式干扰......我的电脑是新的10 Windows 64位......。对不起,我有16个错误和一个警告......我怎样才能让你自己看到它......

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有一个选项可以显示桌面...

我的意思是你发送的代码像你说的那样正确...