Modify Indicator to MTF

MQL4 Indicateurs

Tâche terminée

Temps d'exécution 14 heures
Commentaires du client
This developer took less than half an hour to deliver the resulting changed indicator. Also the most reasonable priced quote.

Spécifications

I want to modify the trend-magic indicator for MQL4 to a MTF indicator where one can select the timeframe  from an input ENUM_TIMEFRAMES timeFrame = PERIOD_H1; variable.

Here is the code for the indicator:

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_width1 2
#property indicator_color2 Red
#property indicator_width2 2

//+------------------------------------------------------------------+

extern int CCI = 50;
extern int ATR = 5;
(extern ENUM_TIMEFRAMES TF = PERIOD_H1;)


//+------------------------------------------------------------------+

double bufferUp[];
double bufferDn[];

//+------------------------------------------------------------------+

int init()
{
   SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 2);
   SetIndexBuffer(0, bufferUp);
   SetIndexStyle(1, DRAW_LINE, STYLE_SOLID, 2);
   SetIndexBuffer(1, bufferDn);
   return (0);
}

//+------------------------------------------------------------------+

int deinit()
{
   return (0);
}

//+------------------------------------------------------------------+

int start()
{
   double thisCCI;
   double lastCCI;

   int counted_bars = IndicatorCounted();
   if (counted_bars < 0) return (-1);
   if (counted_bars > 0) counted_bars--;
   int limit = Bars - counted_bars;

   for (int shift = limit; shift >= 0; shift--)
   {
      thisCCI = iCCI(NULL, TF, CCI, PRICE_TYPICAL, shift);
      lastCCI = iCCI(NULL, TF, CCI, PRICE_TYPICAL, shift + 1);

      if (thisCCI >= 0 && lastCCI < 0) bufferUp[shift + 1] = bufferDn[shift + 1];
      if (thisCCI <= 0 && lastCCI > 0) bufferDn[shift + 1] = bufferUp[shift + 1];

      if (thisCCI >= 0)
      {
         bufferUp[shift] = Low[shift] - iATR(NULL, TF, ATR, shift);
         if (bufferUp[shift] < bufferUp[shift + 1])
            bufferUp[shift] = bufferUp[shift + 1];
      }
      else
      {
         if (thisCCI <= 0)
         {
            bufferDn[shift] = High[shift] + iATR(NULL, TF, ATR, shift);
            if (bufferDn[shift] > bufferDn[shift + 1])
               bufferDn[shift] = bufferDn[shift + 1];
         }
      }
   }
   

   return (0);
}


Répondu

1
Développeur 1
Évaluation
(736)
Projets
1056
40%
Arbitrage
47
49% / 23%
En retard
84
8%
Gratuit
2
Développeur 2
Évaluation
(1135)
Projets
1438
62%
Arbitrage
21
57% / 10%
En retard
43
3%
Gratuit
3
Développeur 3
Évaluation
(363)
Projets
506
40%
Arbitrage
147
18% / 72%
En retard
99
20%
Chargé
4
Développeur 4
Évaluation
(14)
Projets
16
31%
Arbitrage
0
En retard
1
6%
Gratuit
5
Développeur 5
Évaluation
(64)
Projets
198
72%
Arbitrage
4
100% / 0%
En retard
1
1%
Gratuit
6
Développeur 6
Évaluation
(29)
Projets
33
0%
Arbitrage
1
100% / 0%
En retard
0
Gratuit
7
Développeur 7
Évaluation
(5)
Projets
8
0%
Arbitrage
1
100% / 0%
En retard
1
13%
Gratuit
Commandes similaires
Hey greetings am in need of a developer that can convert my simple tradingview indicator to MT4 I have the source code of the indicator and is also a public indicator on Tradingview site Kindly bid and let started
I want to buy the functional source code of the manager for mt5/mt4, make your proposal, send me a demonstration, the system asks for a text of 30 words plus the summary and that I want to buy a library
Hey MQL COMMUNITY, I have some ideas trading that needed to come to life based on my expected trading target, I have the details strategy ready so I wanted to be programmed as PineScript Indicators based on my trading specifications for TradingView platform, please reach out if you are well skilled in programming algo trading system for tradingview using PineScript coding solutions and can run without any problem
Hello i am seeking a skilled MetaTrader 5 (MQL5) developer to modify an existing Telegram signal copier. The goal is to enhance the copier's functionality, reliability, and user experience. kindly bid this job to get started immediately
Hello, I’m looking for assistance with creating or customizing a TradingView indicator to suit my trading needs. If you have experience in this area, please reach out. Your help would be greatly appreciated. Thanks
Where are my developers colleagues . i want you to support me on existing work i just need a little addon on it. Am still a student kindly support me. You will be get paid at the end of the work. If you want more details maybe the worth of the project or any other thing let me know. THNAKS FOR THE SUPPORT
** Entry Condition **: - ** For Long**: The trade is entered **after BB + ** is confirmed. - ** For Short *: The trade is entered **after BB -* is confirmed. ### 2nd **Stop Loss **: - ** For long Entries *: stop loss is triggered on a ** candle close above the high* of the breaker block shown by the indicator. - ** For Short Entries **: stop loss is triggered on a ** candle close below the low ** of the breaker block
Hello, am in need of a developer that can help in developing a trading bot that can effectively navigate the foreign exchange (Forex) market or other financial markets to generate passive income. My objective is to create a sophisticated algorithmic trading system that can consistently produce profitable trades with minimal manual intervention. I am seeking a reliable and efficient solution that can be tailored to my
am looking for who help me convert tradingview indicator to mt5 car trading strategy and make sure you are an expert before u apply to this and also my budget for this is 30$ so the name of the indicator is Breaker Blocks with Signals (LuxAlgo) ### 1. ** Entry Condition **: - ** For Long**: The trade is entered **after BB + ** is confirmed. - ** For Short *: The trade is entered **after BB -* is confirmed. ### 2nd
I have a custom MT4 indicator that I need converted to MT5. I'll share the source code with the applicants. Please only apply if you have vast experience in converting complex indicators successfully to MT5, and making sure that the MT5 version functions exactly the same as the MT4 version

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD
Délais
de 1 à 3 jour(s)