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

Buy Sell Pressure Indicator Not Taking Trades

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

    Buy Sell Pressure Indicator Not Taking Trades

    I set up my strategy using the Buy Sell Pressure Indicator to go long when over (buy pressure)58 and go short when over (sell pressure)58. It is not taking any trades in real time for some reason. I set it up in Condition and Actions. The condition is If Any, I then checked plot on chart, then I put Greater and then I said Misc numerical value 58. I did this for both buy and sell pressure. Any ideas on something I'm missing?

    #2
    Hello Sadat,

    Thanks for opening the thread.

    In order to better understand the code generated by the Strategy Builder and how it is executing, I recommend adding debugging prints to your strategy. By adding prints for the values used to evaluate your conditions outside of those conditions, you can observe if logic is becoming true and allowing your order submission methods to fire.

    If you are seeing your order submission logic being reached, but it is not executing, there may be an issue where the strategy is already in a virtual position that is not allowing you to re-enter. TraceOrders can be enabled in the strategy so it prints its order feedback, and you may also observe the log tab of the Control Center for additional hints.

    Some items to check when you are taking debugging steps:
    1. Are your conditions allowing your order submission methods to be reached?
    2. By printing the strategy's current market position, is the strategy currently in a position that is preventing it from submitting another entry order?
    3. Do you see any errors in the log tab of the Control Center or does Trace Orders give you any feedback?
    I've included some resources on setting up debugging prints in the Strategy Builder as well as some reference on the internal rules of the Managed Approach, as well as Strategy vs. Account Position.

    Debugging with the Strategy Builder - https://www.screencast.com/t/8uvjfM8h

    Strategy vs. Account Position - https://ninjatrader.com/support/help..._account_p.htm

    Managed Approach - https://ninjatrader.com/support/help...d_approach.htm

    TraceOrders - https://ninjatrader.com/support/help...aceorders2.htm

    I also recommend using the Playback connection to mimic realtime data and playback occurrences as if they were live. This can help to repeat scenarios when debugging.

    Playback Connection - https://ninjatrader.com/support/help...connection.htm

    Please let us know if there is anything else we can do to help.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by f.saeidi, Today, 10:19 AM
    0 responses
    2 views
    0 likes
    Last Post f.saeidi  
    Started by kujista, Today, 06:23 AM
    4 responses
    15 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by traderqz, Yesterday, 09:06 AM
    2 responses
    16 views
    0 likes
    Last Post traderqz  
    Started by traderqz, Today, 12:06 AM
    3 responses
    6 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by RideMe, 04-07-2024, 04:54 PM
    5 responses
    28 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X