I Need Help - page 2

 
Michael Charles Schefe #:

This is a technical forum mostly used for help with coding and reporting of bugs with mt4/5. Not for a free lunch.

There are many free eas on codebase or marketplace. Just use the search feature at top of every page on this site. or buy a paid for product on marketplace or pay a price to a freelance coder to make you one to your description.

Michael , has you can see it says I need HELP!  if your not here trying to help others , why are you replying , no need to rude or cheeky here I also mentioned I have been trying for few months , you sending to codebase there somany codebase websites, which will bring me back here again, I have just checked the market place , even if I get a ea there I don't know if it actually works or has defaults! send the correct link, and the right EA

 
Shanmugi #:
Share the code publicly in forum. So peoples here can check and help. 

I can share the code but how do I know who's going help ? 

 
William Roeder #:
Please, don't request help for ChatGPT (or other A.I.) generated code. It generates horrible code, mixing MQL4 and MQL5. Please use the Freelance section for such requests//www.mql5.com/en/job

Stop using ChatGPT/Copilot.
          Help needed to debug and fix an AI EA - Trading Systems - MQL5 programming forum #2 (2023)

OK BUT THATS THE ONLY CODES I HAVE , PLUS HOW DO YOU GET THE CODES FROM HERE OR THE SOURCE CODE ? HELP IS HELP! WHO WANTS TO HELP OTHERS HELPS THE LINK YOU SENT ME IS A OPEN LINK TO UNLIMITED , SOURCE I NEED THE RIGHT PERSON OR EA! 
 
Ryan L Johnson #:

I happen to wholeheartedly agree, and the risks of using AI assisted code are scattered throughout many Forum threads, e.g., https://www.mql5.com/en/forum/444173/page9#comment_58718393

There is also however, a thread of "AI assisted coders" at Fixing AI-generated code - Forex Investments - General - MQL5 programming forum.

These are my "observations" referenced in Post #3, herein.

you know how many things there are in codebase , you want me to go through the entire library since before 2015, I send you a direct message you didn't reply! you can easily send me the right link or ea right here 
 
jeremiah adams #:

I can share the code but how do I know who's going help ? 

Post your code if you need coding help. That seems simple.
 
Alain Verleyen #:
Post your code if you need coding help. That seems simple.
 //+------------------------------------------------------------------+
//| RT MT5 Trend Pullback Portfolio EA - FINAL CLEAN BUILD          |
//+------------------------------------------------------------------+
#property strict
#include <Trade/Trade.mqh>

CTrade trade;

//================ INPUTS =========================
input string SymbolsToTrade     = "EURUSD,GBPUSD,USDJPY,XAUUSD";
input double FixedLot           = 0.01;
input int    MaxTradesPerSymbol = 5;
input int    MaxSpreadPoints    = 100;
input double DailyLossLimitPct  = 4.0;

input int EMA_Fast = 50;
input int EMA_Slow = 200;

input double SL_ATR_Mult = 2.0;
input double TP_ATR_Mult = 4.0;

//================ GLOBALS ========================
string Symbols[];
double dayStartEquity;
datetime lastBar=0;

// Indicator handles per symbol
int emaFastHandle[];
int emaSlowHandle[];
int atrHandle[];

//+------------------------------------------------------------------+
int OnInit()
{
   int count = StringSplit(SymbolsToTrade, ',', Symbols);

   ArrayResize(emaFastHandle, count);
   ArrayResize(emaSlowHandle, count);
   ArrayResize(atrHandle, count);

   for(int i=0;i<count;i++)
   {
      emaFastHandle[i] = iMA(Symbols[i], _Period, EMA_Fast, 0, MODE_EMA, PRICE_CLOSE);
      emaSlowHandle[i] = iMA(Symbols[i], _Period, EMA_Slow, 0, MODE_EMA, PRICE_CLOSE);
      atrHandle[i]     = iATR(Symbols[i], _Period, 14);
   }

   dayStartEquity = AccountInfoDouble(ACCOUNT_EQUITY);
   return INIT_SUCCEEDED;
}

//+------------------------------------------------------------------+
bool NewBar()
{
   datetime t=iTime(_Symbol,_Period,0);
   if(t!=lastBar){ lastBar=t; return true; }
   return false;
}

//+------------------------------------------------------------------+
bool DailyLossExceeded()
{
   double lossPct=(dayStartEquity-AccountInfoDouble(ACCOUNT_EQUITY))
                  /dayStartEquity*100.0;
   return lossPct>=DailyLossLimitPct;
}

//+------------------------------------------------------------------+
int CountPositions(string sym)
{
   int total=0;
   for(int i=0;i<PositionsTotal();i++)
      if(PositionGetSymbol(i)==sym) total++;
   return total;
}

//+------------------------------------------------------------------+
void TradeSymbol(int i)
{
   string sym=Symbols[i];

   if(SymbolInfoInteger(sym,SYMBOL_SPREAD)>MaxSpreadPoints) return;
   if(CountPositions(sym)>=MaxTradesPerSymbol) return;

   double emaFast[1], emaSlow[1], atr[1];

   if(CopyBuffer(emaFastHandle[i],0,1,1,emaFast)<=0) return;
   if(CopyBuffer(emaSlowHandle[i],0,1,1,emaSlow)<=0) return;
   if(CopyBuffer(atrHandle[i],0,1,1,atr)<=0) return;

   double open1=iOpen(sym,_Period,1);
   double close1=iClose(sym,_Period,1);

   bool bullish=close1>open1;
   bool bearish=close1<open1;

   double ask=SymbolInfoDouble(sym,SYMBOL_ASK);
   double bid=SymbolInfoDouble(sym,SYMBOL_BID);

   // BUY: trend up + bullish candle
   if(emaFast[0]>emaSlow[0] && bullish)
   {
      trade.Buy(
         FixedLot,
         sym,
         ask,
         ask-atr[0]*SL_ATR_Mult,
         ask+atr[0]*TP_ATR_Mult
      );
   }

   // SELL: trend down + bearish candle
   if(emaFast[0]<emaSlow[0] && bearish)
   {
      trade.Sell(
         FixedLot,
         sym,
         bid,
         bid+atr[0]*SL_ATR_Mult,
         bid-atr[0]*TP_ATR_Mult
      );
   }
}

//+------------------------------------------------------------------+
void OnTick()
{
   if(!NewBar()) return;
   if(DailyLossExceeded()) return;

   for(int i=0;i<ArraySize(Symbols);i++)
      TradeSymbol(i);
}
 
jeremiah adams #:
Good and so, what is the problem with this code ?
 
Alain Verleyen #:
Good and so, what is the problem with this code ?
CAN YOU UNBLOCK MY INBOX MESSAGES ITS BLOCKED , I WAS HAVING GENUINE CONVERSATIONS WITH PEOPLE 
 
Alain Verleyen #:
Good and so, what is the problem with this code ?
YOU HAVE BLOCKED MY IP ADDRESS !! CAN YOU UNBLOCK IT PLEASE, EVERY TIME I TRY TO OPEN MY INBOX IM GETTING THIS MESSAGES:  Timed out in 10 sec. Error 58
 
jeremiah adams #:
YOU HAVE BLOCKED MY IP ADDRESS !! CAN YOU UNBLOCK IT PLEASE, EVERY TIME I TRY TO OPEN MY INBOX IM GETTING THIS MESSAGES:  Timed out in 10 sec. Error 58
I CANNOT OPEN MY INBOX MESSAGES , I AM HERE TO MAKE NEW FRIENDS AND NETWORK, I WAS ONLY ASKING FOR HELP