Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Spread indicator - Automated

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

    Spread indicator - Automated

    Hi all,

    I am trying to place a short order automatically when the high of the spread indicator is above 0.0005

    Seems like i have everything setup correctly but for some reason its not working when i run it live.

    Calculation needs to be done on each tick and i have that selected.

    have included some images below.

    Anyone know why this is not working?

    Thanks in advance for any help.



    #2
    Hello jmahon,

    Thanks for your post.

    If your condition is not triggering an order then you would need to debug your strategy to find out why. In the strategy builder you can use a Print statement to output information to the New>Ninjascript output window. The Print statement in the strategy builder has a string builder which allows you to print text information and numerical values. I would suggest printing the values used in the condition that would place the order, in this case the value of the "SpreadHigh".

    Here is a short video that walks through building a print statement in the strategy builder to find in the example used when a bool changes from true to false. https://paul-ninjatrader.tinytake.co...NV8xMDk5MDc5Nw

    Comment


      #3
      Originally posted by NinjaTrader_PaulH View Post
      Hello jmahon,

      Thanks for your post.

      If your condition is not triggering an order then you would need to debug your strategy to find out why. In the strategy builder you can use a Print statement to output information to the New>Ninjascript output window. The Print statement in the strategy builder has a string builder which allows you to print text information and numerical values. I would suggest printing the values used in the condition that would place the order, in this case the value of the "SpreadHigh".

      Here is a short video that walks through building a print statement in the strategy builder to find in the example used when a bool changes from true to false. https://paul-ninjatrader.tinytake.co...NV8xMDk5MDc5Nw
      Thanks Paul, i will give this a try.

      Jack

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      51 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      128 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X