Code that is able to Work More Efficiently with Multi Symbol

MQL5 지표 EA

작업 종료됨

실행 시간 1 일
고객의 피드백
Delivered quickly and provided prompt responses. Definitely recommend to anyone
피고용인의 피드백
Good employer! Thank you :)

명시

Attached below you will see the following:

  • ibbfill2(1) - indicator code that is the source indicator that I am using (use this to test if it is working)
  • Test_BB2 - indicator code converted into an Expert Advisor format so I do not need to use iCustom

As well as the code stated below - this code below shows my conversion of this code into a Multi Currency function using iCustom.

OUTCOME:

The outcome that I want is Test_BB2 to be converted into code that is as lean as possible. I still need to sustain the key functionality of he indicator, but I need to to work much better (I will use this code and put it into an expert advisor - currently it is too slow when backtesting with this implementation so I need this adjusted ASAP).

void prices(string symb)
{

static bool downTrend2[12] = {false};
static bool flatTrend2[12] = {false};
static bool upTrend2[12] = {false};

        int symbolIndex = -1;
//Removed Symbol 1 , 5, 12, 8, 9        
        
    string symbol_s[] = {symb1, symb2, symb3, symb4, symb5, symb6, symb7, symb8, symb9, symb10, symb11, symb12};

    for (int i = 0; i < 12; i++)
    {
        if (symb == symbol_s[i])
        {
            symbolIndex = i;
            break;
        }
    }

   ArraySetAsSeries(ibValue, true);
   ArraySetAsSeries(ibbLower, true);
   ArraySetAsSeries(ibbUpper, true);
   ArraySetAsSeries(ibbMain, true);

       if(symbolIndex >=0 && newBar(PERIOD_M15))
   {
   ibHandle =  iCustom(symb, PERIOD_M5, "ibbfill2", BBPeriod, BBDeviation, BBPrice);

   CopyBuffer(ibHandle, 9, 0, 3, ibValue);
   
   CopyBuffer(ibHandle, 8, 0, 3, ibbLower);
   CopyBuffer(ibHandle, 7, 0, 3, ibbUpper);
   CopyBuffer(ibHandle, 6, 0, 3, ibbMain);
   
   iBandsLower1  = ibbLower[1];
   iBandsUpper1  = ibbUpper[1];
   iBandsMain1   = ibbMain[1];
   
   upTrend2[symbolIndex] = ibValue[1]==1   ?  true  :  false;
   downTrend2[symbolIndex] = ibValue[1]==-1  ?  true  :  false;
   flatTrend2[symbolIndex] = ibValue[1]==0   ?  true  :  false;
   }
   downTrend = downTrend2[symbolIndex];
   flatTrend = flatTrend2[symbolIndex];
   upTrend = upTrend2[symbolIndex];
}


bool BBBuy(string symb)
{
    bool state;
    prices(symb);

    if (upTrend && !flatTrend && !downTrend)
    {
        state = true;
    }
    else state = false;

    return state;
}


bool BBSell(string symb)
{
    bool state;
    prices(symb);
    
    if (downTrend && !flatTrend && !upTrend)
    {
        state = true;
    }
    else state = false;

    return state;
}

bool BBFlat(string symb)
{
    bool state;
    prices(symb);
    
    if (!downTrend && flatTrend && !upTrend)
    {
        state = true;
    }
    else state = false;

    return state;
}

bool newBar(ENUM_TIMEFRAMES time)
{
   datetime          currentTime =  iTime(Symbol(), time, 0);
   static datetime   priorTime   =  currentTime;
   bool              results     =  (currentTime!=priorTime);
   priorTime                     =  currentTime;
   
   return results;
}



응답함

1
개발자 1
등급
(28)
프로젝트
36
31%
중재
3
33% / 0%
기한 초과
7
19%
로드됨
2
개발자 2
등급
(5)
프로젝트
8
0%
중재
1
100% / 0%
기한 초과
1
13%
무료
3
개발자 3
등급
(256)
프로젝트
319
29%
중재
34
26% / 65%
기한 초과
10
3%
무료
4
개발자 4
등급
(152)
프로젝트
228
80%
중재
22
27% / 50%
기한 초과
11
5%
무료
게재됨: 24 기고글, 1882 코드
5
개발자 5
등급
프로젝트
0
0%
중재
1
0% / 100%
기한 초과
0
무료
6
개발자 6
등급
(15)
프로젝트
23
9%
중재
7
29% / 57%
기한 초과
2
9%
무료
7
개발자 7
등급
(45)
프로젝트
76
20%
중재
7
0% / 86%
기한 초과
14
18%
무료
비슷한 주문
Auto trading system with hi probability win rate. Trades and auto trading system works well on gold and forex most important risk reward ratio. It must be 1:3 or more then that
Hello, i would like to have a ninjatrader indicator. I wanna to have a footprint indicator with delta, imbalances and big trades identifiable. Also I wanna sell it on whop. And it should be fully customisable in NT8
Intraday Trade Ninja EA Indicators used: Price Border(TMA) MA-X Arrows xSuperTrend Candles EMA 49 & 89- Per Candle Color Switching Lemansignal 200 SMA Major Criteria to consider before a trade setup or condition is taken · The price must have touched/tested the upper or
Panda101 500+ USD
//+------------------------------------------------------------------+ //| Simple Moving Average Crossover EA | //+------------------------------------------------------------------+ #property strict input int ShortMA = 10; input int LongMA = 50; input double LotSize = 0.01; int shortMAHandle; int longMAHandle; //+------------------------------------------------------------------+ int OnInit() { shortMAHandle =
I need an experienced MQL5 developer to build a custom MT5 Expert Advisor for XAUUSD. Strategy Overview: Trend-following using EMA 50/200 on H4 and H1 Pullback entries on M5 using RSI + candle confirmation No martingale, no averaging down Controlled scaling only when trades are already in profit Maximum 2–3 positions per direction Risk Management: Daily loss limit (%) Equity hard stop (%) Consecutive loss pause
I need a ready-made professional trading EA similar to my current scalping bot, but improved for consistent profit and better risk control. Requirements: - Works on XAUUSD (M5 timeframe) - Fixed lot option (start with 0.01) - Opens only one trade at a time (no multiple positions) - Small, fast entries (scalping style) - Better risk-reward (SL must NOT be bigger than TP) - Breakeven function - Trailing stop to secure
Hello, I am looking for an experienced MQL5 developer capable of analyzing and rebuilding the logic of an existing Expert Advisor. I currently use an EA for automated trading on MT5, but I only have the compiled EX5 file and do not have access to the source code. The objective is to: analyze the EA behavior and strategy logic, recreate a clean and optimized version, and customize/improve certain features according to
hi , i need to create an EA with 123 level indicator , and zigzag and also to get based on right and left elevetor bars not cadles on mt4 please contact me to collaborate
I have Renko EA, but is a bug, please fix it, thank you in advance, have a nice day, thay you for your patience and attention, Programmers with previous experience in RENKO I prefer
Gold Edge Pro 30 - 150 USD
Create a fully working Expert Advisor (EA) for MetaTrader 5, designed exclusively for GOLD (XAUUSD only). This is a high‑probability trend‑following breakout strategy built specifically for passing 2‑step prop firm challenges — it delivers a ~60–65% win rate, uses a strict 1:3 risk/reward ratio, and is optimised to pass both phases in roughly 1–2 weeks total. --- ⚙️ USER INPUTS — FULLY FLEXIBLE RISK --- All main

프로젝트 정보

예산
40+ USD
기한
 1 일