Hull Moving Avg Code Needed for MT4
Results 1 to 3 of 3

Thread: Hull Moving Avg Code Needed for MT4

  1. #1
    Could someone please take this Hull Moving Avg code that is out of TradeStation and rewrite it so that it functions for MT4?

    ----------------

    inputs:
    double Price( Close ), price chain to use in the calculation of this HMA
    int Length( 9 ), variety of pubs to use in calculation of the HMA
    int Displace( 0 ), variety of pubs to reestablish the plot of this HMA; adverse
    worth of the input displace the plot to the correct, positive values displace
    the plot to the left
    int BackgroundColorAlertCell( DarkGray ); if awake standards are met, this can be
    the colour used for the mobile background in RadarScreen; when it Isn't desired
    for the mobile background color to change when the alert criteria are met, set
    this input into the default mobile background color

    variables:
    dual HullAvg( 0 );

    HullAvg = HMA( Price, Length );
    Plot1[Displace]( HullAvg, HMA );
    alert standards
    should Displace = 0 then
    begin
    if Price crosses over HullAvg then
    begin
    Alert( Price crossing over Hull moderate );
    SetPlotBGColor( 1, BackgroundColorAlertCell );
    finish
    else should Price crosses under HullAvg then
    begin
    Alert( Price crossing under Hull average );
    SetPlotBGColor( 1, BackgroundColorAlertCell );
    end;
    end;

  2. #2
    Cyber1,

    Thank you for your input. I am just trying to help out trading friend of mine that uses this specific HMA. He has consistently used TradeStation but is presently being forced (so to speak) to utilize MT4.

  3. #3
    Quote Originally Posted by ;
    Could someone please take this Hull Moving Avg code that's out of TradeStation and rewrite it so that it functions for MT4? ---------------- inputs: double Price( Close ), price chain to use in the calculation of this HMA int Length( 9 ), variety of bars to use in calculation of the HMA int Displace( 0 ), variety of bars to displace the plot of this HMA; negative values of this input signals the plot to the correct, positive values displace the plot to the left int BackgroundColorAlertCell( DarkGray ); { if awake standards are met, this can be the...
    Robin Hood --
    With the absolute variety of Hull Moving Averages accessible here onnigeriaforextradingand other places I seriously doubt any anybody will spend some time creating another one.
    https://www.nigeriaforextrading.com/...w-methods.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.