Code that is able to Work More Efficiently with Multi Symbol

İş tamamlandı

Tamamlanma süresi: 1 gün
Müşteri tarafından geri bildirim
Delivered quickly and provided prompt responses. Definitely recommend to anyone
Geliştirici tarafından geri bildirim
Good employer! Thank you :)

İş Gereklilikleri

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



Yanıtlandı

1
Geliştirici 1
Derecelendirme
(21)
Projeler
24
38%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
2
8%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(5)
Projeler
8
0%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
1
13%
Serbest
3
Geliştirici 3
Derecelendirme
(137)
Projeler
160
23%
Arabuluculuk
7
0% / 43%
Süresi dolmuş
4
3%
Yüklendi
4
Geliştirici 4
Derecelendirme
(140)
Projeler
203
80%
Arabuluculuk
17
29% / 47%
Süresi dolmuş
10
5%
Çalışıyor
5
Geliştirici 5
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
6
Geliştirici 6
Derecelendirme
(15)
Projeler
23
9%
Arabuluculuk
7
29% / 57%
Süresi dolmuş
2
9%
Serbest
7
Geliştirici 7
Derecelendirme
(45)
Projeler
76
20%
Arabuluculuk
7
0% / 86%
Süresi dolmuş
14
18%
Serbest
Benzer siparişler
Hello, i am searching for an experienced, professional software engineer, who can convert three Indicators from MQL4 to MQL5. This may sound like an easy job, but one indicator is like a trading system and therefore a bit complex. So you need to have a very good understanding of both languages. You should also be able to code MQL5 classes ( https://www.mql5.com/en/docs/basis/oop ). The intention is to code MQL5
I came across an indicator that's perfectly good in catching spikes in boom amd crash but i would want it to be modified and to improve accuracy As a professional you will have to go through the indicator and explain to me the strategy with which the indicator was buid and tell me the possibility of improving it better
Delete the minutes field the days dirctaly =1440 ( hide for the customer ) . The indicator setting appears with the indicator on the screen in the same color chosen The possibility of more than one indicator appearing on the screen. Good arrangement
An EA that executes when the 21 and 55 SMA Cross on certain time frame also the EA will understand supply and demand levels and executes when price reacts on this levels specified and target/stoploss levels will be predetermined...also the robot will also comprise stochastic oscillator
Indicator MT5 from Pine Script 5 (TradingView) indicators Request: Develop 1 Indicator mql5 from 2 TV (Pine script 5) indicators Get only basic features, I just need to get values in Copybuffer() for mql5 expert. Total MT5 indicator: 4 levels in the chart + 1 oscillator (line/histogram) =================================== TV Indicator 1: Smart Money Concepts Just get High/low levels from internal/externals (smaller /
I have a full code ,, There are some errors in this.It does not add to the chart, does not show arrow marks, does not alert ,, fix this problem and work properly,, Contact on telegram @Gw_rakib1
Starting from scratch, I need a solution to develop my own crypto trading and exchange platform. This platform should compare prices across various exchanges like Coinbase, Binance, KuCoin, and Unocoin, as well as different cryptocurrencies. The solution must identify opportunities to buy on one platform and sell on another for a profit, transferring funds to my personal wallet instantly for security. The bot should
I am looking for a programmer to do EA trader. If you can understand what I want from the video i do and you can do it, contact me because you will be able to do what I want. https://drive.google.com/file/d/1wbHxbUQQqCkdpr0-pHfIh2b288LzYTV2/view?usp=sharing
I have an indicator i will like to view in form of dashboard across various timeframes, i also will like a push notifications alert feature that will appear on my mt4 mobile to keep track of my trading pairs
Need a dashboard, which can monitor up to 30 selected pairs in selected time frames. It monitors AO, MACD and stochastic. In the cells of dashboard, if AO is positive in the relevant symbol/tf, it writes "UP". When one of AO is above 0 level AND Stochastic is in OS zone it writes "UPUP". When AO is above 0 and when stochastics is oversold minimum of two times,it will alert UPU2 if AO is negative below 0 in the

Proje bilgisi

Bütçe
40+ USD
Geliştirici için
36 USD
Son teslim tarihi
to 1 gün