Announcement

Collapse
No announcement yet.

SAR set to open prices only

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

  • #16
    RE: Reply to post 'SAR set to open prices only'

    David,

    This formula changes the outcome, once establish
    within given time interval. For exapmple, if you get
    the buy signal on One Hour chart, it could go back
    and change to sell again within one hour.

    var study = new ParabolicStudy(0.02, 0.02, 0.2);
    function preMain() {
    setPriceStudy(true);
    setPlotType(PLOTTYPE_SQUAREWAVE);
    setDefaultBarThickness(4);
    setDefaultBarFgColor(Color.red, 0);
    }

    function main(){
    if(getBarState==BARSTATE_NEWBAR);
    return study.getValue(ParabolicStudy.STOP);
    }

    Before I was using:
    setComputeOnClose(); instead of if(getBarState==BARSTATE_NEWBAR)
    and computeonclose didn't change, except it was drawn
    on the previous bar's close price. I am just looking for the calculations
    based on the screen - Line/Tick charts set to "Open" so the oscillators
    don't change (sort of what you see is what you get until next
    time interval's open). It looks like it still follows the very last tick,
    not the first tick of the interval.

    Would appreciate if you can help me.
    Peter
    [email protected]

    -----Original Message-----
    From: [email protected] [mailto:[email protected]]
    Sent: Sunday, August 17, 2003 2:07 PM
    To: [email protected]
    Subject: Reply to post 'SAR set to open prices only'


    Hello peterkl,

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Comment


    • #17
      RE: Reply to post 'SAR set to open prices only'

      Does anybody know how to setup
      Offset to Parabolic SAR formula???


      -----Original Message-----
      From: [email protected] [mailto:[email protected]]
      Sent: Sunday, August 17, 2003 2:07 PM
      To: [email protected]
      Subject: Reply to post 'SAR set to open prices only'


      Hello peterkl,

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      Comment


      • #18
        You can offset any built-in study by using the getValue function and by specifying an offset factor. For example,

        return study.getValue(ParabolicStudy.STOP,-10);

        Attached is an example based on Alex's new built-in study forumlas.
        Attached Files
        Regards,
        Jay F.
        Product Manager
        _____________________________________
        Have a suggestion to improve our products?
        Click Support --> Request a Feature in eSignal 11

        Comment


        • #19
          RE: Reply to post 'SAR set to open prices only'

          Thanks JayF,

          One question: is there a way to setup
          computing prices based on new open rather
          than last close prices?
          For example Instead of:
          setcomputeOnClose(); I would like to have a study
          that calculate only open prices, so the
          charts and signals don't change once
          established on the screen.
          Thank You
          Regards
          Peter




          -----Original Message-----
          From: [email protected] [mailto:[email protected]]
          Sent: Monday, August 25, 2003 1:06 PM
          To: [email protected]
          Subject: Reply to post 'SAR set to open prices only'


          Hello peterkl,

          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

          Comment


          • #20
            setComputeOnClose as defined in the Help Center is "... callable from preMain() only and, when used, will force the current EFS study to only update when a new bar arrives (as opposed to updating as each new tick comes in)."

            This is different then computing a study from the closing prices (but I can see where the confusion came into play.) I'm not aware of any easy method to implement the Parabolic SAR calculation on the Open. If someone is aware of such a way, please post a reply.

            Thanks.
            Regards,
            Jay F.
            Product Manager
            _____________________________________
            Have a suggestion to improve our products?
            Click Support --> Request a Feature in eSignal 11

            Comment

            Working...
            X