To upgrade and inprove on a simple Hull / Standard 13 day crossover

Trabalho concluído

Tempo de execução 1 hora
Comentário do desenvolvedor
Thanks a lot!
Comentário do cliente
Excellent very happy with result great Communicator excellent knowledge of subject

Termos de Referência

Hi 

I have tried over the last few days to build a simple crossover indicator with alerts using various chat bots . But I have come to the simple resolution that none of us [me & bots ] have skills to make it work . So what do I require 

I want a custom 13 day moving average to crossover either an Adaptive ma /Hull ma { my attempts involved using a Hull but either is fine } and to send me an push notification via txt on crossover  simple as that .

Below are my attempts the txt me version uses a Twillo number i,m thinking that may not be necessary i,ll let you tell me what you think 

1 st crossover 



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

//|                                                    Zoot Suit.mq4 |

//|                                  Copyright 2024, MetaQuotes Ltd. |

//|                                             https://www.mql5.com |

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

#property copyright "Copyright 2024, MetaQuotes Ltd."

#property link      "https://www.mql5.com"

#property version   "1.00"

#property strict

#property indicator_chart_window

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

//| Custom indicator initialization function                         |

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

int OnInit()

  {

//--- indicator buffers mapping

   

//---

   return(INIT_SUCCEEDED);

  }

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

//| Custom indicator iteration function                              |

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

int OnCalculate(const int rates_total,

                const int prev_calculated,

                const datetime &time[],

                const double &open[],

                const double &high[],

                const double &low[],

                const double &close[],

                const long &tick_volume[],

                const long &volume[],

                const int &spread[])

  {

//---

   

//--- return value of prev_calculated for next call

   return(rates_total);

  }

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

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

//|                                                     ZootSuit.mq4 |

//|                                                                  |

//|                                             https://www.mql5.com |

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


#property indicator_separate_window

#property indicator_buffers 2

#property indicator_color1 Blue

#property indicator_color2 Red


// Define period as a global variable

input int Period = 13; // Or whatever value you intend to use


// Define buffers

double hullBuffer[];

double emaBuffer[];


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

//| Custom indicator initialization function                         |

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

int OnInit()

{

    // Indicator buffers mapping

    SetIndexBuffer(0, hullBuffer);

    SetIndexBuffer(1, emaBuffer);


    return(INIT_SUCCEEDED);

}


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

//| Custom indicator iteration function                              |

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

int OnCalculate(const int rates_total,

                const int prev_calculated,

                const datetime &time[],

                const double &open[],

                const double &high[],

                const double &low[],

                const double &close[],

                const long &tick_volume[],

                const long &volume[],

                const int &spread[])

{

    // Calculate the Hull moving average

    for (int i = prev_calculated; i < rates_total; i++)

    {

        hullBuffer[i] = HullMovingAverage(close, Period, i);

    }


    // Calculate the custom simple moving average

    for (int i = prev_calculated; i < rates_total; i++)

    {

        double sum = 0.0;

        for (int j = i - Period + 1; j <= i; ++j) {

            sum += close[j];

        }

        emaBuffer[i] = sum / Period;

    }


    // Check for crossover and send push notification

    if (rates_total >= 2 && hullBuffer[rates_total - 2] > emaBuffer[rates_total - 2] && hullBuffer[rates_total - 1] < emaBuffer[rates_total - 1])

    {

        SendNotification("HMA crossed below custom EMA");

    }


    // Return value of prev_calculated for next call

    return(rates_total);

}


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

//| Hull Moving Average Calculation                                  |

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

double HullMovingAverage(const double &price[],

                         const int period,

                         const int shift)

{

    double wma1 = iMA(Symbol(), 0, period / 2, 0, MODE_WMA, PRICE_CLOSE, shift);

    double wma2 = iMA(Symbol(), 0, period, 0, MODE_WMA, PRICE_CLOSE, shift);

    double hull = 2 * wma1 - wma2;

    return hull;

2 nd send txt message 

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

//|                                            SendTextMessage().mq4 |

//|                                                            puggy |

//|                                             https://www.mql5.com |

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

#property copyright "puggy"

#property link      "https://www.mql5.com"

#property version   "1.00"

#property strict

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

//| Script program start function                                    |

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

void OnStart()

  {

//---

   

  }

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

void SendTextMessage(string recipient, string message)

{

    string url = "https://api.twilio.com/2010-04-01/Accounts/Your_Account_SID/Messages.json";

    string username = "Your_Account_SID";

    string password = "Your_Auth_Token";

    string headers = "Authorization: Basic " + Base64Encode(username + ":" + password);


    string postData = "To=" + recipient + "&From=Your_Twilio_Phone_Number&Body=" + message;


    int request = WebRequest("POST", url, headers, postData, 5000);

    if (request > 0)

    {

        string response = WebRequestGetResult(request);

        Print("Twilio response: ", response);

    }

    else

    {

        Print("Failed to send HTTP request to Twilio");

    }


Respondido

1
Desenvolvedor 1
Classificação
(1066)
Projetos
1408
45%
Arbitragem
47
72% / 13%
Expirado
35
2%
Livre
2
Desenvolvedor 2
Classificação
(506)
Projetos
760
63%
Arbitragem
33
27% / 45%
Expirado
23
3%
Livre
3
Desenvolvedor 3
Classificação
(34)
Projetos
62
23%
Arbitragem
10
0% / 60%
Expirado
18
29%
Livre
4
Desenvolvedor 4
Classificação
(119)
Projetos
127
41%
Arbitragem
3
33% / 67%
Expirado
0
Livre
5
Desenvolvedor 5
Classificação
(2396)
Projetos
3010
65%
Arbitragem
76
47% / 14%
Expirado
340
11%
Trabalhando
6
Desenvolvedor 6
Classificação
(41)
Projetos
87
13%
Arbitragem
30
30% / 47%
Expirado
35
40%
Carregado
7
Desenvolvedor 7
Classificação
(19)
Projetos
23
48%
Arbitragem
4
0% / 100%
Expirado
2
9%
Trabalhando
8
Desenvolvedor 8
Classificação
(430)
Projetos
488
33%
Arbitragem
25
40% / 44%
Expirado
7
1%
Carregado
9
Desenvolvedor 9
Classificação
(559)
Projetos
927
48%
Arbitragem
301
59% / 25%
Expirado
124
13%
Carregado
Pedidos semelhantes
I am Ph.D. in Finance and I just bought 4 EA: EA Reaper, EA Golden Emperador, EA Golden Elephant and, EA Quantum Lab. I need a person that can help me to improve and test my strategy in this EA. I have some Ideas, but I do know how I can improve. Best, Federico Bocca. email: fbocca@summagrupo.com
هل يمكنك مساعدتي؟ أريد تنفيذ إشارة تداول آلية على MT4/MT5 لنظام Android Can you help me I want to implement an automated trading signal on MT4/MT5 for Android Can you help me I want to implement an automated trading signal on MT4/MT5 for Android
Convert Pine Script Trading view To MT4 Convert Attach Script to mt4 with buy and sell signals on Chart and Data Window. The buy and sell signal must be the SAME signals, on the same candles. No deviation
Hell . I need an expirience developer who can create ea based on my conditions. If the job has done i will pay after testing robot and confirmed. I will send code when i am satisfied with developer
Olá Preciso de um código aberto para robô expert, com as seguintes informações com base no Indicador VWAP - volume pondered average price, não precisa todos os períodos, SOMENTE DIÁRIO. aberturas de COMPRA e VENDA no cruzamento de media móvel sobre a VWAP, deixar disposição alteração do modelo da media e o período da media. OBS: 'Reverter mão' conforma o cruzamento da mídia com a VWAP(exemplo se estava vendido e
Hello, I need to correct two small problems in my mql4 code: '>' - unexpected end of program smp77.mq4 109 18 and '{' - unbalanced parentheses.smp77.mq4 (44, 1) let me know if i can get help. thanks
Creating a customized Forex/Index Rob Bot based on price actions and candlestick formations requires advanced programming and algorithmic trading knowledge. Here is a high-level outline of the steps involved in developing such a bot: 1. Define Trading Strategy: Specify the specific price action and candlestick formations you want the bot to trade upon. This could include setups like engulfing patterns, doji
Hello developers, I need a trading robot that works on martingale and antimartingale (functions that can be activated or deactivated, so the robot can work both as a martingale and as an antimartingale together). Initially the robot will work as an entry strategy on RSI, but it must be an open project as new entry strategies will be implemented in the future
HEDGING EA 70+ USD
LET ME KNOW IF YOU CAN DO THE JOB SERIOUS PROGRAMMER TO DO EA WITH STRICT DETAILS I HAVE A PICTURE OF THE STRATEGY I DO NOT WANT TO POST IT HERE
Requiero un EA basado en un indicador con las siguientes caracteristicas 1. Abra operacion con una señal que da el indicador, despues que la vela toque el indicador y cierre por encima del indicador 2. Que cierre operacion con SL y TP en % de perdida y ganancia 3, Que en cada señal abra un maximo de X operaciones y si pierde en la siguiente señal haga el doble operaciones y todas seran con el mismo lotaje Todos los

Informações sobre o projeto

Orçamento
30 - 150 USD
Desenvolvedor
27 - 135 USD
Prazo
para 10 dias