• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Mean Reversion indicator

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

    Mean Reversion indicator

    Hello, Support and All!

    Could someone be willing to assist to finish converting an indicator from a strategy.

    I just started by moving the relative parts, but it shows nothing on the chart.If someone could guide or help, it`d appreciate.

    Thanks in advance!
    Attached Files

    #2
    Hello,

    Thank you for posting.

    In this case you are getting a BarsAgo error, you can check for errors using the Tools -> Output Window or the Log tab.

    You would need to add a CurrentBar check as you are using BarsAgo. You would need to check the maximum number of BarsAgo you use, and then add the following to the top of OnBarUpdate:

    Code:
    if(CurrentBar < 5) return;
    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello,

      Thank you for posting.

      In this case you are getting a BarsAgo error, you can check for errors using the Tools -> Output Window or the Log tab.

      You would need to add a CurrentBar check as you are using BarsAgo. You would need to check the maximum number of BarsAgo you use, and then add the following to the top of OnBarUpdate:

      Code:
      if(CurrentBar < 5) return;
      Please let me know if I may be of further assistance.
      Thanks Jesse.

      I attached for anyone that interested.Two indicators(plus the inverse one) from the MR strategy.Feel free to use and further improvement.
      Attached Files

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by simjs, Yesterday, 08:11 PM
      0 responses
      3 views
      0 likes
      Last Post simjs
      by simjs
       
      Started by mrlucky1x, Yesterday, 06:01 PM
      0 responses
      3 views
      0 likes
      Last Post mrlucky1x  
      Started by dedouglas, Yesterday, 03:17 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Jugado, Yesterday, 02:22 PM
      2 responses
      30 views
      0 likes
      Last Post Jugado
      by Jugado
       
      Started by login_dejavu, 04-21-2019, 04:58 AM
      2 responses
      24 views
      0 likes
      Last Post login_dejavu  
      Working...
      X