Announcement

Collapse
No announcement yet.

how to adjust arrow

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

  • how to adjust arrow

    In the script below how do you make a space between the price bar and arrow. I see there is an adjustment in the wizard for sideways but not up and down.

    thanks
    Attached Files

  • #2
    watchdaride
    You would have to use high() + nn or low() - nn where nn is a value that is appropriate for that symbol or interval.
    An aternative is to use drawTextRelative() rather than drawShapeRelative. See this post for an example.
    Alex

    Comment


    • #3
      I got the efs formula below working but it is suppose to make an arrow when the ma crosses the RSI. When i run it it puts an arrow on all bars unless i reload the efs then it marks the proper one . But when i run chart without reloading it it marks all the bars. I used the formula wizard to make it up . Any suugestion

      Comment


      • #4
        forgot to put in efs
        Attached Files

        Comment


        • #5
          Hello watchdaride,

          When creating a formula to look for a cross of two indicator lines, you need to take into consideration the values for the two indicators on consecutive bars. For your formula, I would look at the values on bar -2 and -1 to test for the crossing condition. Then draw the up or down arrow on bar -1 when the cross is confirmed. That way, you'll get the same signals with the formula when processing real time data. Take a look at the changes I made to your formula wizard study and let me know if you have any questions.
          Attached Files
          Jason K.
          Project Manager
          eSignal - an Interactive Data company

          EFS KnowledgeBase
          JavaScript for EFS Video Series
          EFS Beginner Tutorial Series
          EFS Glossary
          Custom EFS Development Policy

          New User Orientation

          Comment

          Working...
          X