Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator arrows cannot be seen?

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

    Indicator arrows cannot be seen?

    Hi

    Lets introduce the problem.
    Not seeing the Converted indicator in my chart (Which i want to see), but I can see the strategy.

    I made a strategy which gives a arrow when 3 conditions are met as can be seen on the lower right side of the screenshot.
    Now I converted the section below OnBarUpdate() into a New indicator as can be seen in the upper right corner of the screenshot.
    I also added two values (purple arrows) to be used in the Market Analyser.

    Its not needed to see the WMA line itself, only the arrow up or arrow down in the indicator.

    What could be the problem

    Regards,

    Bas
    Attached Files

    #2
    Originally posted by Inter20 View Post
    Hi

    Lets introduce the problem.
    Not seeing the Converted indicator in my chart (Which i want to see), but I can see the strategy.

    I made a strategy which gives a arrow when 3 conditions are met as can be seen on the lower right side of the screenshot.
    Now I converted the section below OnBarUpdate() into a New indicator as can be seen in the upper right corner of the screenshot.
    I also added two values (purple arrows) to be used in the Market Analyser.

    Its not needed to see the WMA line itself, only the arrow up or arrow down in the indicator.

    What could be the problem

    Regards,

    Bas
    What is the error in your log?

    Search this forum on that error message.

    Comment


      #3
      Not getting any error at all when i compile the indicator.

      Regards,

      Bas

      Comment


        #4
        Originally posted by Inter20 View Post
        Not getting any error at all when i compile the indicator.

        Regards,

        Bas
        Not when you compile it: when you run it on a chart. What is the error in the log?

        Comment


          #5
          Originally posted by Inter20 View Post
          Not getting any error at all when i compile the indicator.

          Regards,

          Bas
          Turn on the output window and look there for the error.

          Comment


            #6
            Hi,

            I found the error in the error log, and to be frankly Its not making sense to me.
            Also the strategy works fine and the Indicator does not while I only copied the OnBarUpdate () section.
            This would mean that I need to copy something else to make the Indicator work?

            Regards,

            Bas
            Attached Files

            Comment


              #7
              Originally posted by Inter20 View Post
              Hi,

              I found the error in the error log, and to be frankly Its not making sense to me.
              Also the strategy works fine and the Indicator does not while I only copied the OnBarUpdate () section.
              This would mean that I need to copy something else to make the Indicator work?

              Regards,

              Bas
              Now search this forum using that error message. You should see many hits that resolve your issue.

              In your particular case, the most likely resolution is simply a matter of escaping the correct number of bars that do not exist at the time of reference.

              Most often used is, to place this as the first line of OnBarUpdate():
              Code:
              if (CurrentBar < BarsReq) return;
              where BarsReq is usually 1, but can be any number that is appropriate for your back reference.
              Last edited by koganam; 01-19-2014, 12:45 PM.

              Comment


                #8
                Solved when using
                if (CurrentBar < BarsRequired) return;
                instead of
                if (CurrentBar < BarsReq) return;

                Thanks koganam for putting me on the right track

                Regards,

                Bas

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                594 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                343 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                103 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                556 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                554 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X