Questions from Beginners MQL5 MT5 MetaTrader 5 - page 526

 
Nickolay72:
The flash drive is formatted, the terminal is set to automatic trading, the Expert Advisor is on - it does not trade.
The flash drive needs to be formatted as NTFS . In this case at copying there will be no question that not all data will be copied to the new location.
 
Karputov Vladimir:
The stick must be formatted as NTFS . In this case, when copying, there will be no question that not all data will be copied to the new location.
It is already formatted under NTFS.It was copied without a question.Through the database copied into the EA terminal.Rebooted the terminal.Threw on the chart.All included.EA smiles,trade does not go.I have on the seven trades without problems,on the eight only smiles.
 
Nickolay72:
It is already formatted under NTFS.copied without a question.Through the database copied into the EA terminal.Reloaded the terminal.Threw on the chart.All included.EA smiles,trade does not go.I have on the seven trades without problems,on the eight only smiles.
I have no doubts, I have no doubts. Give me your code - maybe you are using include files or worse - dll.
 
How much does it cost to write an EA on terms of reference?
 
How much does it costto write an EA in MT4?
 
sedoi2711:
How much does it costto write an EA in MT4 according to the terms of reference?
Go to the Freelance section and read.
 
Karputov Vladimir:
This is not a fortune-telling club. Give us your code - maybe you are using include files or worse, a dll.
Files:
Zmey-v.03.mq4  8 kb
 
Nickolay72:

In your case debugging on the history would be very helpful - but debugging on the history is only available to those who use the modern MetaTrader 5 terminal. You only have to debug online. There are just so many conditions in your code that have to come together in one moment:

else
     {
      MACDCurrent=iMACD(NULL,0,InpFastEMA,InpSlowEMA,InpSignalSMA,Macd_Applied_Price,MODE_MAIN,0);
      SignalMACDCurrent=iMACD(NULL,0,InpFastEMA,InpSlowEMA,InpSignalSMA,Macd_Applied_Price,MODE_SIGNAL,0);
      SignalMAPrevious=iMA(NULL,0,InpMAPeriod,InpMAShift,InpMAMethod,MA_Applied_Price,1);
      SignalMAThis=iMA(NULL,0,InpMAPeriod,InpMAShift,InpMAMethod,MA_Applied_Price,0);
      SignalParabolic=iSAR(NULL,0,InpSARStep,InpSARMaximum,0);
      SignalStochastic_15=iStochastic(NULL,15,InpKPeriod,InpDPeriod,InpSlowing,MODE_SMA,0,1,0);
      MainStochastic_15=iStochastic(NULL,15,InpKPeriod,InpDPeriod,InpSlowing,MODE_SMA,0,0,0);
      SignalStochastic=iStochastic(NULL,0,InpKPeriod,InpDPeriod,InpSlowing,MODE_SMA,0,1,0);
      MainStochastic=iStochastic(NULL,0,InpKPeriod,InpDPeriod,InpSlowing,MODE_SMA,0,0,0);
      SignalCCIPrevious=iCCI(NULL,0,InpCCIPeriod,0,1);
      SignalCCIThis=iCCI(NULL,0,InpCCIPeriod,0,0);
      SignalCCIPrevious_15=iCCI(NULL,15,InpCCIPeriod,0,1);
      SignalCCIThis_15=iCCI(NULL,15,InpCCIPeriod,0,0);
      if(CountTrades()==0)
         CheckForOpen();
     }

and then:

void CheckForOpen()
  {
   if(ModLots())
     {
      //-----Ставим ордер на покупку.
      if(SignalMACDCurrent<MACDCurrent && SignalMAPrevious<SignalMAThis && 
         Ask>SignalParabolic && SignalStochastic_15<MainStochastic_15 && SignalStochastic<MainStochastic && 
         SignalCCIPrevious<SignalCCIThis && SignalCCIPrevious_15<SignalCCIThis_15)
        {
         ticket=OrderSend(NULL,OP_BUY,lot,Ask,slippage,0,0,exptime,magic,0,Blue);
         if(ticket>0)
            return;
        }
      //-----Ставим ордер на продажу.
      if(SignalMACDCurrent>MACDCurrent && SignalMAPrevious>SignalMAThis && 
         Bid<SignalParabolic && SignalStochastic_15>MainStochastic_15 && SignalStochastic>MainStochastic && 
         SignalCCIPrevious>SignalCCIThis && SignalCCIPrevious_15>SignalCCIThis_15)
        {
         ticket=OrderSend(NULL,OP_SELL,lot,Bid,slippage,0,0,exptime,magic,0,Red);
         if(ticket>0)
            return;
        }
     }
  }

that it's hard to imagine if it will ever happen.

 
Karputov Vladimir:

that it's hard to imagine if that ever happens?

The seven is trading on the seven.
 
Nickolay72:
It's trading on seven.
So it will trade on other operating systems too.
Reason: