Indicator conversion from MQL4 to MQL5 and EA build on it (in MQL5)

MQL5 Göstergeler

İş tamamlandı

Tamamlanma süresi: 3 gün

İş Gereklilikleri

The job is very simple. An indicator that has less than 90 lines I want to be converted from MQL4 to MQL5. Than in MQL5 build an EA that will open BUY when the 2 arrows of the indicator are both BLUE  at the same time and close it when the 2 arrows are different. In the same way open an SELL order when the 2 arrows  are both RED at the same time and close it when the 2 arrows are different. You can use the MQL4 code (that is functionally) to better understand what I mean.

#property indicator_separate_window
#property indicator_minimum 1.0
#property indicator_maximum 3.0
#property indicator_buffers 6
#property indicator_color1 Blue
#property indicator_color2 Red
#property indicator_color3 Yellow
#property indicator_color4 Blue
#property indicator_color5 Red
#property indicator_color6 Yellow

int g_period_76 = 14;
int g_period_80 = 14;
int g_period_84 = 14;
double g_ibuf_88[];
double g_ibuf_92[];
double g_ibuf_96[];
double g_ibuf_100[];
double g_ibuf_104[];
double g_ibuf_108[];
double g_imomentum_112;
double g_idemarker_120;
double g_iforce_128;
int g_color_136 = Blue;
int g_color_140 = Red;
int g_color_144 = Yellow;
int gi_148 = 225;
int gi_152 = 226;
int gi_156 = SYMBOL_STOPSIGN;
int gi_160 = 1;
int gi_164 = 2;
int gi_168 = 1;
double gd_172 = 0.6;

int init() {
   SetIndexStyle(0, DRAW_ARROW, STYLE_SOLID, gi_160, g_color_136);
   SetIndexArrow(0, gi_148);
   SetIndexBuffer(0, g_ibuf_88);
   SetIndexStyle(1, DRAW_ARROW, STYLE_SOLID, gi_160, g_color_140);
   SetIndexArrow(1, gi_152);
   SetIndexBuffer(1, g_ibuf_92);
   SetIndexStyle(2, DRAW_ARROW, STYLE_SOLID, gi_160, g_color_144);
   SetIndexArrow(2, gi_156);
   SetIndexBuffer(2, g_ibuf_96);
   SetIndexStyle(3, DRAW_ARROW, STYLE_SOLID, gi_160, g_color_136);
   SetIndexArrow(3, gi_148);
   SetIndexBuffer(3, g_ibuf_100);
   SetIndexStyle(4, DRAW_ARROW, STYLE_SOLID, gi_160, g_color_140);
   SetIndexArrow(4, gi_152);
   SetIndexBuffer(4, g_ibuf_104);
   SetIndexStyle(5, DRAW_ARROW, STYLE_SOLID, gi_160, g_color_144);
   SetIndexArrow(5, gi_156);
   SetIndexBuffer(5, g_ibuf_108);
   IndicatorShortName("Oracle Direction");
   return (0);
}

int deinit() {
   return (0);
}

int start() {
   int li_0 = IndicatorCounted();
   if (li_0 < 0) return (-1);
   if (li_0 > 0) li_0--;
   int li_4 = Bars - li_0;
   for (int li_8 = li_4 - 1; li_8 >= 0; li_8--) {
      g_idemarker_120 = iDeMarker(NULL, 0, g_period_80, li_8);
      g_imomentum_112 = iMomentum(NULL, 0, g_period_76, PRICE_CLOSE, li_8);
      g_iforce_128 = iForce(NULL, 0, g_period_84, MODE_EMA, PRICE_CLOSE, li_8);
      g_ibuf_88[li_8] = EMPTY_VALUE;
      g_ibuf_92[li_8] = EMPTY_VALUE;
      g_ibuf_96[li_8] = EMPTY_VALUE;
      g_ibuf_100[li_8] = EMPTY_VALUE;
      g_ibuf_104[li_8] = EMPTY_VALUE;
      g_ibuf_108[li_8] = EMPTY_VALUE;
      if (g_imomentum_112 > 100.0) g_ibuf_88[li_8] = gd_172 * gi_164 + 1.0;
      if (g_imomentum_112 <= 100.0) g_ibuf_92[li_8] = gd_172 * gi_164 + 1.0;
      if (g_idemarker_120 > 0.5 && g_iforce_128 > 0.0) g_ibuf_100[li_8] = gd_172 * gi_168 + 1.0;
      else {
         if (g_idemarker_120 < 0.5 < 50 && g_iforce_128 < 0.0) g_ibuf_104[li_8] = gd_172 * gi_168 + 1.0;
         else g_ibuf_108[li_8] = gd_172 * gi_168 + 1.0;
      }
   }
   return (0);
}

 

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(549)
Projeler
826
73%
Arabuluculuk
15
53% / 13%
Süresi dolmuş
193
23%
Çalışıyor
2
Geliştirici 2
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
3
Geliştirici 3
Derecelendirme
(47)
Projeler
140
49%
Arabuluculuk
9
56% / 0%
Süresi dolmuş
27
19%
Serbest
4
Geliştirici 4
Derecelendirme
(15)
Projeler
65
58%
Arabuluculuk
6
17% / 33%
Süresi dolmuş
39
60%
Serbest
5
Geliştirici 5
Derecelendirme
(187)
Projeler
367
56%
Arabuluculuk
45
22% / 56%
Süresi dolmuş
188
51%
Serbest
Benzer siparişler
I need to make an indicator, redraw the zigzag line but do not use the original source code but use iCustom to redraw the zigzag line. Then Calculate and label Elliot on each segment of the zigzag corresponding to the order 12345abc of both the uptrend and the downtrend. Demo is required
Hello - Looking for the developer who is the developer of below indicator. Please get connect. Below image was shared by developer and I am interested in buying this product. Can you please connect back
I need an experience developer that can developer a Rsi based indicator and later convert it to an E.A using this indicator and my support and resistance indicator for trade setup
I need a Professional who can take my think or swim script and convert it to an equivalent ninja script indicator. i want it to function exactly in ninja as it does for TOS. end product should be an indicator with all the code visible that I can load onto my chart and I should see it performing live exactly the same way it does on TOS
I kindly need help that can you convert a indicator that is on Tradestation to the ninja trader platform? I use to trade on Tradestation, now I also use NT8, I have a indicator called Hawkeye Heat Map in Tradestation. I need it converted to NT8. I currently do now have Tradestation, but I do have all my indicators saved
Hello, I have an EA already created and what I require is a modification to the code so that when a backtest is executed, it generates a CSV file with custom data that I want to extract to perform an analysis of the backtest operations
Convert Trading View Indicator to MT5 indicator 1. must have the same results and as trading view in buy and sell areas 2. the functions must be the same as trading view no exceptions
Hello, I am in need of a Professional who can help me to convert my Tradingview to Mt4. Please let me know if this is something you can handle perfectly and your price for the conversion. Looking forward to hear from you. Thanks
Hi, I need a professional in this field. I have a cbot using two free indicators available on ctrader platform. The specification is attached. Please can you provide your quote for completing this cbot? Thanks
I'm looking for a quote from a developer who can compile this source code as DLL file so that it works on Forex Tester 5 They are all open source trading view indicators. Forextester 5 have advised that custom indicators in C++ or Delphi programme language are compatible with them

Proje bilgisi

Bütçe
10 USD
KDV (19%): 1.9 - 1.9 USD
Toplam: 11.9 - 11.9 USD
Geliştirici için
9 - 9 USD