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
等级
(1071)
项目
1414
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
等级
(2399)
项目
3013
65%
仲裁
76
47% / 14%
逾期
340
11%
工作中
6
开发者 6
等级
(41)
项目
87
13%
仲裁
29
31% / 48%
逾期
35
40%
繁忙
7
开发者 7
等级
(19)
项目
23
48%
仲裁
4
0% / 100%
逾期
2
9%
工作中
8
开发者 8
等级
(431)
项目
488
33%
仲裁
25
40% / 48%
逾期
7
1%
已载入
9
开发者 9
等级
(561)
项目
928
48%
仲裁
301
59% / 25%
逾期
123
13%
已载入
相似订单
i want devloper to create indicator i have the script from https://usethinkscript.com/ i want to be create in mt4 # DESCRIPTION # This study plots H1, H2, etc. and L1, L2, etc. labels above or below # those signal bars based on Al Brooks' description of the setups. # DECLARATIONS declare upper ; # USER INPUTS input resetCountOnDTorDB = yes ; input barsBack = 10 ; # DEFINITIONS AND CALCULATIONS ## Variable List def
I want a fully automate and high risk management expert advisor that guarantee me double of any amount in my account monthly please. Please good programmers should apply and let’s get started
Would like to build an EA base on this Indicator Indicator : 1. EMA 5 2. EMA 8 3. EMA 13 BUY RULE EMA 5 and EMA 8 crossover EMA 13 from below SELL RULE EMA 5 and EMA 8 crossover EMA 13 from above Additional : ADDITIONAL : TP : adjustable SL : adjustable TF : adjustable Symbol : All Any advise to enhance my rule is really appreciated
I need an indicator for my secand chart tf i need experinced developer to built stochastulic indicator for my secand tf indicator. So bet for it have a great day
Ctrader bot 30 - 45 USD
Hello! I need a cTrader bot that can receive trading signals from tradingview via webhook URL, read the syntax from the tradingview message and place the trades on cTrader. Is that something you can do? Under which of your gigs would this fall under? Thank you! This is how we expect the trade syntax to work: https://www.loom.com/share/089e783466a64d3d99214e1dbb548b4c?sid=39125f96-3b47-4446-8d75-3706dceda3c4 -
Hello! I need a cTrader bot that can receive trading signals from tradingview via webhook URL, read the syntax from the tradingview message and place the trades on cTrader. Is that something you can do? Under which of your gigs would this fall under? Thank you! This is how we expect the trade syntax to work: https://www.loom.com/share/089e783466a64d3d99214e1dbb548b4c?sid=39125f96-3b47-4446-8d75-3706dceda3c4 - Please
My sample pack 30+ USD
Try good luck have fun enjoy 👍 I hope I'm doing it right after losing so much. If anyone can help out, it would be much appreciated. I really need this to work this time 🙏 👍
Please make a new pending order software and add it to the each of the Ea's that I would send the source codes. If any of the settings of the usual pattern of the Ea's have there in the EA's are not clear to you, then I will explain that part
I am looking for an expert NinjaTrader developer to help me backtest a custom trading strategy I've developed. The ideal candidate will have extensive experience in trading, particularly with backtesting and strategy evaluation on the NinjaTrader platform. Your expertise will be crucial to the success of this project. Key Requirements: Custom Strategy Backtesting: Develop and backtest a unique trading strategy based
Just have a look make it better enjoy and have fun 😊 this is the first time I am trying this, I got ripped off 3 times before. I hope this time works with all your help. Thank you kindly

项目信息

预算
30 - 150 USD
开发人员
27 - 135 USD
截止日期
 10 天