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
評価
(1066)
プロジェクト
1408
45%
仲裁
47
72% / 13%
期限切れ
35
2%
2
開発者 2
評価
(506)
プロジェクト
760
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
評価
(2393)
プロジェクト
3006
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
評価
(429)
プロジェクト
486
33%
仲裁
25
40% / 44%
期限切れ
6
1%
取り込み中
9
開発者 9
評価
(558)
プロジェクト
926
48%
仲裁
301
59% / 25%
期限切れ
124
13%
取り込み中
類似した注文
Hi, I'm looking for developer can modify entry logic for my existing EAs with source code.There is some minor fixes need to be done on the hedge strategy and trailing stop.All the details about the changes explained in attached document.Please take your time to read thru.Thanks
Hello there! the logic is simple, open XAUUSD M5 chart and measure recent high low (Swings) and place buy and sell stop that's it. I will help you with some materials
I'm in need of an experienced Meta 4 expert who can solve two specific problems and improve the current Martingale and Pyramid strategies within my EA. - Bug Fix: The EA is currently facing an issue where orders are not being executed correctly. This is causing a signal matching error and leading to potential losses. The primary task is to resolve this bug and ensure the EA executes trades accurately and as intended
ultra simple to use and 100% automated EA, you just need to drag it onto the chart XAUUSD M10 and indicate the percentage of risk you wish to take per trade. The EA uses a stop loss on each trade to secure all trades for maximum account security. EA does not use risky strategies, grids or martingales. Very profitable to use, and also have capability for copy trading. i am open to an exsiting Bot as long as it meets
I need an experienced developer who can turn my simply strategy to an EA on MT5 and MT4, will be using two EMAs and MACD and a risk management setting, please message me on time so we start work on it, waiting for you
I am looking for an EA that allows you to make profits every month. For this, before buying, I would like to have a history over more than one year to see how the EA behaves. I don't know if you're selling EAs that are already ready for use
I need someone who can help me optimise my trading strategy using two indicators which are swing arm atr indicator and ut bot alerts indicator. low budget job. Need to be able to pass ftmo challenge and keep trading after passing it. Also would like to have a day trading strategy not holding the trades for too long
I need to resolve some bugs that my indicator presents and pass it to mql5 The task will be done alone and only through anydesk, it is my way of working, if you do not have a problem with it, write to me privately to start working
I need a developer that can turn my strategy to an EA, We will be using Fib, some indicators and a risk management settings, please message me on time so we start work on it, waiting for you
I want a simple mt4 EA that monitors existing positions for TP and SL changes. If a new position is placed, it should automatically set the SL and TP based on the already open orders. Additionally, if I change the SL or TP of one order, it should also change the SL or TP of all the other orders accordingly. I will only be using this EA on one pair, of course

プロジェクト情報

予算
30 - 150 USD
開発者用
27 - 135 USD
締め切り
最高 10 日