Trend Line Future Value
Results 1 to 4 of 4

Thread: Trend Line Future Value

  1. #1
    I can not seem to get a deal on this very simple task. I am writing an EA, and I have two price coordinates and 2 time coordinates, ( say Time [0 n] and Time[0 1] therefore I am looking at say Time[1] and say Time[11] where Time[11] is my first Trend line coordinate and Time[1] is my next) for a trend line I am drawing as an object. I am attempting to determine what the worth of the next point on the Trend line will probably probably be at Time[0].

    I have done this before years ago, and I am damned if I can remember how. LOL

    Apologies for asking such a basic question. Help Please

  2. #2
    Use bar numbers instead of time.

    Have you already tried ObjectGetValueByShift() with a negative change? Functions which also may be useful are iTime() and iBarShift() for converting times and changes into every other.

  3. #3
    Quote Originally Posted by ;
    Use bar numbers instead of time.

    Have you tried ObjectGetValueByShift() with a negative shift? Functions which also may be useful are iTime() and iBarShift() for converting times and changes into each other.
    I knew it was simple thanks. ObjectGetValueByShift() That is the purpose I forgot about. I could not remember it.

    BTW, thanks to that Fantastic Equity Record mqh. Very impressive

  4. #4
    I believe that the basic formula for slope (or some point on a line?) Is y=mx b, and from that values can be computed by you. Do an internet search distinct formulas, on incline. ...
    Or ..., in Case You really want to get to math: use trig ;=)

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.