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

Работа завершена

Время выполнения 1 час
Отзыв от исполнителя
Thanks a lot!
Отзыв от заказчика
Excellent very happy with result great Communicator excellent knowledge of subject

Техническое задание

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");

    }


Откликнулись

1
Разработчик 1
Оценка
(1067)
Проекты
1409
45%
Арбитраж
47
72% / 13%
Просрочено
35
2%
Работает
2
Разработчик 2
Оценка
(507)
Проекты
762
63%
Арбитраж
33
27% / 45%
Просрочено
23
3%
Свободен
3
Разработчик 3
Оценка
(34)
Проекты
62
23%
Арбитраж
10
0% / 60%
Просрочено
18
29%
Работает
4
Разработчик 4
Оценка
(119)
Проекты
127
41%
Арбитраж
3
33% / 67%
Просрочено
0
Свободен
5
Разработчик 5
Оценка
(2397)
Проекты
3010
65%
Арбитраж
76
47% / 14%
Просрочено
340
11%
Работает
6
Разработчик 6
Оценка
(41)
Проекты
87
13%
Арбитраж
30
30% / 47%
Просрочено
35
40%
Занят
7
Разработчик 7
Оценка
(19)
Проекты
23
48%
Арбитраж
4
0% / 100%
Просрочено
2
9%
Работает
8
Разработчик 8
Оценка
(430)
Проекты
488
33%
Арбитраж
25
40% / 48%
Просрочено
7
1%
Работает
9
Разработчик 9
Оценка
(560)
Проекты
927
48%
Арбитраж
301
59% / 25%
Просрочено
123
13%
Загружен
Похожие заказы
Shaunpilp 30+ USD
Manage my business handle my trade in a way you treat yourself trade marks must be perfect at all time help and get helped.dont be harsh at the business stay calm
### Explanation for Developing the Multi-Timeframe EA **Objective:** Create an Expert Advisor (EA) for MetaTrader 5 (MT5) that replicates the functionality of the Ultimate RSI indicator from TradingView. The EA will open and manage trades based on the crossover signals of the RSI and EMA within the same window, incorporating multi-timeframe analysis. **Specifications:** 1. **Indicators Used:** - Relative Strength
I am looking for an experienced developer to create an MT5 EA for any FX pair, that if is applied to a chat, will show the following buttons which perform the following actions: Buy now button: places a buy order[ or orders [more than one] explained later] with the lot, SL and TP defined in the EA configuration prompt Sell now button: places a sell o rder[ or orders [more than one] explained later] with the lot, SL
I am looking for an experienced developer to create an MT5 EA for any FX pair, that if is applied to a chat, will show the following buttons which perform the following actions: Buy now button: places a buy order[ or orders [more than one] explained later] with the lot, SL and TP defined in the EA configuration prompt Sell now button: places a sell o rder[ or orders [more than one] explained later] with the lot, SL
Hello! I am a trader and I have a strategies on Trading View on my Trading View Account. The bot you need to create should be a normal solana trading bot like bonkbot for example but it needs to buy and sell automatically after the strategy on trading view so the bot needs to be connected trough API with Trading View, if you know you are capable of handling this project, please kindly reach out with your
👋 Hey can you help me to convert mt4 to ctrader cbot? Options Required along with the conversion from given MQL4 source code to Ctrader Cbot just need one option on top of converting mt4 to cbot need an option to run cbot in selected direction with options as Buy/Sell/Buy-and-Sell
Hello I need an ea based on indicator from trading view name "Support and resistance leveles with breaks [lux algo]" Ee should draw support and resistance levels the same way as this incidator in trading view and tp,sl, trailing sl, breakeven, partial tp etc
I'm looking for someone who can create an expert advisor based on an indicator which will be provided by me. It will execute a trade based on signals generated by the indicator. A few money management parameter settings like breakeven, trailing stop are to be included. Thanks
I need opinions if it is possible to develop a panel for managing multiple orders for 28 Forex currency pairs for Metatrader 5. The main features should include: - Symbol selection for manual opening of multiple orders. - Stop-Loss/Take-Profit. - Option to close all open orders manually or automatically (by stop loss/take profit). The panel should allow you to select various currency pairs with different lot sizes to
GIOVA 30 - 50 USD
I need a skillful programmer that can Automate my trading indicator into an EA . System has 2 indicators. One of the Indicator is to know the Direction of Trend on H1 and the second indicator is to be use to enter trade on M5 in line with the H1 Trend The EA must have 1. TP and SL, 2. Trailing Stop Loss, 3. ability to add more trade when there is signal in line with H1

Информация о проекте

Бюджет
30 - 150 USD
Исполнителю
27 - 135 USD
Сроки выполнения
до 10 дн.