Code that is able to Work More Efficiently with Multi Symbol

MQL5 指标 专家

工作已完成

执行时间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%
空闲
相似订单
Gold Precision Pro 30 - 100 USD
I want the indicator to be built professionally and carefully because the strategy is strong, but it requires advanced and clean programming. The indicator should work mainly on XAUUSD M15 and should generate more than 2 high-quality signals per day, ideally around 2 to 4 signals maximum, without flooding the chart. The logic must not be random. Each signal must be based on: HTF Bias from H1/H4, Liquidity Sweep
Good day, I would like to have an expert advisor for my MT4 indicator (Major key alert) that can scan and provide push notification messages for entry opportunities across different time frames when a when a signal is identified
Modify an existing EA 30 - 50 USD
This is to modify my Semi Auto EA -Looking for developer modify my existing EA to Pending Order EA (BS/BL/SL/SS). Relevent with Heiken Ashi Smooth ,Moving Average , Acceleration. Concept MAster and Slave. Ready to give previous soucre code as guide. Work to do - 1)To modify this EA to Pending Order. 2) to add new feature - Risk Management/moneymanagement 3) To modify 4 slave to 7 slave will give the previous to
I have a indicator working good but have some bug for arrow placement . budget is fixed 30 used . only experience developer apply. i want to arrow get put on just above the candle high and candle low
I am looking to get this Indicator but i don't know which indicator is it , if anyone know about it let me know , images are attached , this is used for Binary Pairs
Pip Scalper Bot 60+ USD
i want a trading bot that is aleast 98% sure,and cam also do scalping 99% correct using smart money concept, ICT, ALL technical analysis on it and also put risk management on it
Greetings I need MT5 developer that has expertise in developing a custom indicator for mt5 boom and crash based on my exact details and requirements which would be discuss later. Kindly bid for this project if it is something you can handle for me
Hello, I have a Ctrader indicator with the source code, I was wondering if this possible to convert it to Quantower. Hello, I have a Ctrader indicator with the source code, I was wondering if tis possible to convert it to Quantower., i need an expert who can convert it perfectly
I’m looking for an experienced NinjaTrader developer to complete an existing custom indicator. The project is already partially built and is well organized, completely functional, and well documented. The former developer experienced some personal difficulties and unfortunately cannot continue. Key Requirement (Read Carefully): You MUST have direct, hands-on experience with NinjaTrader and NinjaScript (C#) . This is
I already have a fully developed MT5 Expert Advisor with all required prop firm features, including: Risk management Daily loss & max drawdown limits Spread & slippage filters News filter Trade management system The EA structure is complete. 👉 What I need is a professional developer to replace ONLY the entry logic with a high-quality, rule-based trading strategy. 🚨 STRICT REQUIREMENT (READ CAREFULLY): I am NOT

项目信息

预算
40+ USD
截止日期
 1 天