Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

greater equal >= and strategy is only picking up the equal

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

    greater equal >= and strategy is only picking up the equal

    in my strategy i have less than or equal to 3 ticks from line and greater than or equal to -3 ticks from line. it seems the strategy is only executing when it equals the 3. not, when its in the range. any suggestions?

    #2
    Hello SteveReiza,

    Thank you for your post.

    Can you share the line of code that is doing this comparison?

    It may also help to add print statements to see how this condition is evaluating.

    Below is a link to a forum post that demonstrates using informative prints to understand behavior and includes a link to a video recorded using the Strategy Builder to add prints.


    Please let me know if I can assist further. ​
    Gaby V.NinjaTrader Customer Service

    Comment


      #3
      thanks for the reply.

      i attached an image that shows the strategy builder with the logic.
      Attached Files

      Comment


        #4
        Hello SteveReiza,

        Add a new condition set with no conditions and print the time of the bar and all values being compared along with labels for each value and comparison operator.

        Below is a link to a forum post that demonstrates using prints and TraceOrders to understand behavior. Please watch the video 'Debugging using prints with the Strategy Builder'.


        The output should appear just like the condition but with values included.

        Save the output to a text file (right-click the output window select Save as) and attach this to your next post.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          i think its skipping the conditions so i added 20 bar minimum to the strategy. i think that might help.

          is that correct, to have the 3 ticks on the bollinger like that?

          Comment


            #6
            Hello Steve,

            In order to determine why exactly the condition is not evaluating as true, it is necessary to add prints to the script that print the values used for the logic of the script to understand how the script is evaluating.

            Please follow the instructions Chelsea provided for creating a print statement and enabling TraceOrders. If you need any assistance creating a print or analyzing the output, please let me know.
            Gaby V.NinjaTrader Customer Service

            Comment


              #7
              thanks for the reply. alright, i'll do that. i am seeing the entry conditions this morning. but, the strategies aren't executing. i'll dial in on the print and see what's happening. thanks again!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Karado58, 11-26-2012, 02:57 PM
              8 responses
              14,828 views
              0 likes
              Last Post Option Whisperer  
              Started by Option Whisperer, Today, 09:05 AM
              0 responses
              1 view
              0 likes
              Last Post Option Whisperer  
              Started by cre8able, Yesterday, 01:16 PM
              3 responses
              11 views
              0 likes
              Last Post cre8able  
              Started by Harry, 05-02-2018, 01:54 PM
              10 responses
              3,204 views
              0 likes
              Last Post tharton3  
              Started by ChartTourist, Today, 08:22 AM
              0 responses
              6 views
              0 likes
              Last Post ChartTourist  
              Working...
              X