• 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 Guru73, Today, 01:35 AM
      0 responses
      0 views
      0 likes
      Last Post Guru73
      by Guru73
       
      Started by Maxwell123, Today, 12:34 AM
      0 responses
      3 views
      0 likes
      Last Post Maxwell123  
      Started by esquissa, Yesterday, 11:59 PM
      0 responses
      2 views
      0 likes
      Last Post esquissa  
      Started by i2w8am9ii2, Yesterday, 04:41 PM
      1 response
      8 views
      0 likes
      Last Post Lancer
      by Lancer
       
      Started by vivekniwas, Yesterday, 10:21 PM
      0 responses
      2 views
      0 likes
      Last Post vivekniwas  
      Working...
      X