Announcement

Collapse
No announcement yet.

hull ma variation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • hull ma variation

    I would like to know if there is an existing efs that changes color
    like the hull moving average but based on a normal exponential
    formula and NOT the hull formula. In other words, price closes above the 20ema and ma turns Green, price close below 20ema
    price turns Red.

    Thanks for any help!!
    Last edited by davidjrjr1981; 02-08-2008, 10:57 PM.

  • #2
    Re: hull ma variation?

    David
    With a couple of simple edits the MAPriceBars efs that is in the PriceBars folder of Formulas (which is in your eSignal directory) can be modified to do that as it already contains the required logic.
    In line 22 replace sma(nInputLength, 0); with ema(nInputLength, 0);.
    Then in lines 28 and 30 replace setPriceBarColor(Color.red); and setPriceBarColor(Color.lime); with setBarFgColor(Color.red); and setBarFgColor(Color.lime); respectively.
    Once you made the changes save the script with a different name and it should do what you are looking for.
    Alex


    Originally posted by davidjrjr1981
    I would like to know if there is an existing efs that changes color
    like the hull moving average but based on a normal exponential
    formula and NOT the hull formula. In other words, price closes above the 20ema and ma turns Green, price close below 20ema
    price turns Red.

    Thanks for any help!!

    Comment


    • #3
      Thanks Alex,

      I did spot that efs however i am looking for the moving avergage
      to change color, not the price bars. Sorry i was not clear.

      Thanks Again

      Comment


      • #4
        David
        I am aware of that which is why in my reply I also included the instructions to replace the commands that paint the price bars (ie setPriceBarColor()) with those that paint the moving average (ie setBarFgColor())
        Alex


        Originally posted by davidjrjr1981
        Thanks Alex,

        I did spot that efs however i am looking for the moving avergage
        to change color, not the price bars. Sorry i was not clear.

        Thanks Again

        Comment


        • #5
          Got it. I'll give a try.
          Thanks Again

          Comment


          • #6
            David
            You are most welcome
            Alex


            Originally posted by davidjrjr1981
            Got it. I'll give a try.
            Thanks Again

            Comment

            Working...
            X