Announcement

Collapse
No announcement yet.

Actual value for MA crossovers

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

  • Actual value for MA crossovers

    Is there a formula to get the condition of vSMA5.getValue(MAStudy.MA) == vSMA15.getValue(MAStudy.MA) to return an actual value rather then a true/false?

    Or if their is something that I can read up on please let me know

    Thanks

    Min

  • #2
    Re: Actual value for MA crossovers

    Min
    The actual value is the one returned by either vSMA5.getValue(MAStudy.MA) or vSMA15.getValue(MAStudy.MA) since they are equal in your condition
    Alex


    Originally posted by Min
    Is there a formula to get the condition of vSMA5.getValue(MAStudy.MA) == vSMA15.getValue(MAStudy.MA) to return an actual value rather then a true/false?

    Or if their is something that I can read up on please let me know

    Thanks

    Min

    Comment


    • #3
      Thanks Alex , but I'm more than a little lost

      I'm trying to use that value at a latter time but it doesn't seem to be working. I have tried numerous formulas.

      I'm thinking that arrowValue is only calculated at MA crossover and therefore it will never be equal to the value of the MA.

      How do I get the value of the last time MA crossover?

      If I'm on the wrong track and should start over please let me know

      I have attached the file that I am working on. The ultimate goal is to get an arrow at the candle where the lower MA reaches 2.5 above (and below) the crossover point.

      Cheers
      Attached Files

      Comment


      • #4
        Search for "INTERSECTION" on yahoo or google.



        This should help.
        Brad Matheny
        eSignal Solution Provider since 2000

        Comment


        • #5
          I found some sample code you can reference.



          This code appears to be for VB6, but the logic is there for you to review.
          Brad Matheny
          eSignal Solution Provider since 2000

          Comment


          • #6
            Thanks heaps,

            I'll look these over and see what I can come up with

            Min

            Comment

            Working...
            X