Code that is able to Work More Efficiently with Multi Symbol

MQL5 Indicadores Asesores Expertos

Trabajo finalizado

Plazo de ejecución 1 día
Comentario del Cliente
Delivered quickly and provided prompt responses. Definitely recommend to anyone
Comentario del Ejecutor
Good employer! Thank you :)

Tarea técnica

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;
}



Han respondido

1
Desarrollador 1
Evaluación
(21)
Proyectos
24
38%
Arbitraje
1
100% / 0%
Caducado
2
8%
Trabaja
2
Desarrollador 2
Evaluación
(5)
Proyectos
8
0%
Arbitraje
1
100% / 0%
Caducado
1
13%
Libre
3
Desarrollador 3
Evaluación
(144)
Proyectos
170
23%
Arbitraje
7
29% / 43%
Caducado
4
2%
Trabajando
4
Desarrollador 4
Evaluación
(140)
Proyectos
205
80%
Arbitraje
18
33% / 44%
Caducado
10
5%
Trabaja
5
Desarrollador 5
Evaluación
Proyectos
0
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(15)
Proyectos
23
9%
Arbitraje
7
29% / 57%
Caducado
2
9%
Libre
7
Desarrollador 7
Evaluación
(45)
Proyectos
76
20%
Arbitraje
7
0% / 86%
Caducado
14
18%
Libre
Solicitudes similares
I have the mq5 file, I need a buffer adding to the indicator, so it appears in the data window so I can reference it later in an EA. As the below screenshot shows, there is a median ray line from yesterday (the dashed horizontal line) - I want this value in the data window called Median Ray. I want this to be a single value per day, so todays Median Ray would be 17868, and so on each day. So I want all the Developing
I would like to develop my own indicator on metatrader 4 and tradingview. We would start with a basic version that we would improve later. It is an indicator based on several analyses and which would provide several indications. I am looking for someone who can develop on MT4 and Mt5, initially I would like to do it on mt4 and then on mt5. If you have expertise in pinescript it is a plus because I would like to
I urgently require swift assistance to convert a complex indicator into a fully functional scanner, capable of automatically sending real-time data, alerts, and notifications via email, ensuring seamless integration and prompt delivery of critical information to facilitate informed decision-making and timely action
I need to improve the code of an indicator that is too heavy and slow when running and when used with iCustom in an EA. No other changes to the indicator are requested: the original features of the indicator should remain as theay are. I'll provide the indicator after job acceptance. I request final source code mq5 file. Thank you Regards
I have a mt5 indicator that is working perfectly but I will like to make it an expert advisor to have an automated trade. I will be glad if I can get a well experienced developer to execute this project. Thanks
O TRABALHO CONSISTE NA MUDANÇA DO HISTOGRAMA DO INDICADOR TREDN DIRECTION AND FORCE DSEMA SMOOTHED PARA O HISTOGRAMA DA FOTO ANEXA, OBEDECENDO AS TRES CORES VERDE (UP, VERMELHOR(DOWN) E CINZA(TREND). O MESMO TEM QUE ODECER O MESMO CALCULO E COLORIR DA MESMA FORMA POREM COM HISTOGRAMA DDE FORMATO DIFERENTE
If you are knowledgeable in hedging strategy we can chat. I created my simple EA using Fxdreema , so you only need to modify it for me. There are two parts of the EA , 1. Is the execution strategy 2. Is the money management strategy (hedging). I already created number 1 which is the execution of trades , I only need someone who can implement hedging in every orders the EA create. Additional Parameters needed. Trade
We are interested in a TradingView indicator that reads candlestick pattern shapes and shows the location of entry and exit points on a candlestick chart. What services do you provide related to this
Hello Im looking for professional trading developer who htf ready made trading with best and working strategy with low risk level with average of 30 to 60 percent profit margin, broker is not problem, any broker is welcomed and any trading pairs are welcomed as well
the sl doesnt work i want the tp logic to remain i need the trend direction fucntion tow ork i the trend is up then only buys if down only sells i need the fibo nacci fucntion to work as well and the flat zone function to work as well and i need the code to trade 1% of the balance //+------------------------------------------------------------------+ //| US500_EA.mq4 | //|

Información sobre el proyecto

Presupuesto
40+ USD
Para el ejecutor
36 USD
Plazo límite de ejecución
a 1 día(s)