• 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 NinjaCustomer, Today, 12:29 PM
      0 responses
      1 view
      0 likes
      Last Post NinjaCustomer  
      Started by Steve L, Today, 11:32 AM
      0 responses
      2 views
      0 likes
      Last Post Steve L
      by Steve L
       
      Started by prabbala, Today, 10:41 AM
      0 responses
      1 view
      0 likes
      Last Post prabbala  
      Started by bebbus, Today, 10:36 AM
      0 responses
      3 views
      0 likes
      Last Post bebbus
      by bebbus
       
      Started by edmata1109, Today, 10:18 AM
      0 responses
      8 views
      0 likes
      Last Post edmata1109  
      Working...
      X