Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

paulw517

Members
  • Content Count

    1
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • City
    Dexter
  • Country
    United States
  • Gender
    Male
  • Occupation
    Sales Engineer

Trading Information

  • Vendor
    No
  • Favorite Markets
    Futures
  • Trading Years
    5
  • Trading Platform
    TradeStation
  • Broker
    TradeStation
  1. pitrades, I have attached HMA.ELD, but I am not sure it has been attached to this post, so here is the EasyLanguage code for TS V9.0: {jtHMA - Hull Moving Average Indicator} {Author: Atavachron} {May 2005} { Inputs: ------- price: the time series being smoothed, usually Close, High, etc, but could be RSI(Close, 25) for example. length: the length of the MA, pretty meaningless in the normal sense of moving averages, as this quantity is heavily modified in the code. You need to experiment, do not just use a setting of 20 because that is what works for you with Simple Moving Averages. zeroLine: if you are using this in an indicator pane, you might want to display a centre line of some sort, ths allows one to set its value zeroVisible: boolean variable, determines whether the centre line (zeroLine) is plotted. upColour: If you wish to differentiate upward movements by colour coding. downColour: If you wish to differentiate downward movements by colour coding. colourDeltaBar: Set this to 1 if you wish the colour change to be effective on the actual bar where the direction change occurred. Set this to 0 for default behaviour. All other values are pretty meaningless. } [intrabarordergeneration=False] Inputs: price(Close), length(10), zeroLine(0), zeroVisible(false), upColour(Blue), downColour(Red), colourDeltaBar(1); vars: HMA(0); HMA = jtHMA(price, length); Plot1(HMA, "jtHMA"); If ZeroVisible = true then Plot2(zeroLine, "Zero"); { Color criteria } if (HMA > HMA[1]) then SetPlotColor[colourDeltaBar](1, upColour) else if (HMA < HMA[1]) then SetPlotColor[colourDeltaBar](1, downColour); HMA.ELD
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.