• 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

Swing strategy

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

    Swing strategy

    Hello, im doing a strategy with swings indicator to look for divergences in macd. The problem is that i cant draw the line that I want, because it does not draw. Can you tell me why it dont draw?. Thank for your help.
    Attached Files

    #2
    Hello Auxtin Maquieyra,

    Thank you for opening the thread.

    If a certain action of our strategy is or is not happening as we would expect it, the code will need to be debugged to determine why that action is or is not happening. This involves adding prints to the strategy to observe the logic as it is processing. Prints can be seen in the NinjaScript Output window.

    Debugging tips for NinjaScripts can be referenced here - https://ninjatrader.com/support/foru...ead.php?t=3418

    I have also included a demonstration showing how debugging prints can be added in the Strategy Builder - https://www.screencast.com/t/8uvjfM8h

    Some questions we will need to answer when debugging:
    1. Is the Draw method getting hit? This can be checked by placing a print beside the Draw method
    2. Are the conditions that control the Draw method becoming true? We can check this by placing prints for the variables used to evaluate the condition before that condition is reached.


    I may also suggest to first create a very simple line in a new script and then to scale up your logic once you have a simple line drawing.

    I recall you had a similar question yesterday that involves debugging. Were you interested in debugging services? If so, please let us know and we can have a representative of our EcoSystem provide you information on NinjaScript Consultants.
    JimNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Jim View Post
      Hello Auxtin Maquieyra,

      Thank you for opening the thread.

      If a certain action of our strategy is or is not happening as we would expect it, the code will need to be debugged to determine why that action is or is not happening. This involves adding prints to the strategy to observe the logic as it is processing. Prints can be seen in the NinjaScript Output window.

      Debugging tips for NinjaScripts can be referenced here - https://ninjatrader.com/support/foru...ead.php?t=3418

      I have also included a demonstration showing how debugging prints can be added in the Strategy Builder - https://www.screencast.com/t/8uvjfM8h

      Some questions we will need to answer when debugging:
      1. Is the Draw method getting hit? This can be checked by placing a print beside the Draw method
      2. Are the conditions that control the Draw method becoming true? We can check this by placing prints for the variables used to evaluate the condition before that condition is reached.


      I may also suggest to first create a very simple line in a new script and then to scale up your logic once you have a simple line drawing.

      I recall you had a similar question yesterday that involves debugging. Were you interested in debugging services? If so, please let us know and we can have a representative of our EcoSystem provide you information on NinjaScript Consultants.
      Yes i was asking yesterday! Okey I understand i will go on that! Thank you for helping me.

      Comment


        #4
        Hello Auxtin Maquieyra,

        NinjaTrader has a network of third-party programming consultants who can help you debug your NinjaScript files. You can search our extensive library of NinjaScript consultants through the link below. Simply enter a consultant name or search by using our filter categories. Once you have identified your consultants of choice, please visit each consultant's site for more information or contact them directly to learn more:
        You can locate the contact information for the consultants on their direct websites for any additional questions you may have. Since these consultants are third-party services for NinjaTrader, all pricing and support information will need to be obtained through the consultant.

        This NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The companies and services listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem, LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

        Let me know if you have any questions.
        Christopher D.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Botan626, Today, 04:43 AM
        0 responses
        2 views
        0 likes
        Last Post Botan626  
        Started by xsgex, Yesterday, 09:46 PM
        0 responses
        3 views
        0 likes
        Last Post xsgex
        by xsgex
         
        Started by Steve L, Yesterday, 09:36 PM
        0 responses
        4 views
        0 likes
        Last Post Steve L
        by Steve L
         
        Started by krugman25, Yesterday, 09:34 PM
        0 responses
        4 views
        0 likes
        Last Post krugman25  
        Started by indy73, Yesterday, 04:42 PM
        0 responses
        15 views
        0 likes
        Last Post indy73
        by indy73
         
        Working...
        X