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!
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
NinjaTrader
Buy Sell Pressure Indicator Not Taking Trades
Collapse
X
-
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?Tags: None
-
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:- Are your conditions allowing your order submission methods to be reached?
- By printing the strategy's current market position, is the strategy currently in a position that is preventing it from submitting another entry order?
- Do you see any errors in the log tab of the Control Center or does Trace Orders give you any feedback?
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
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Tim-c, Today, 08:36 AM
|
0 responses
1 view
0 likes
|
Last Post
by Tim-c
Today, 08:36 AM
|
||
Started by Mestor, Today, 03:15 AM
|
2 responses
10 views
0 likes
|
Last Post
by Mestor
Today, 08:36 AM
|
||
Started by roblogic, 11-30-2023, 06:20 PM
|
57 responses
1,363 views
0 likes
|
Last Post
by playr101
Today, 08:35 AM
|
||
Started by Padan, Today, 02:02 AM
|
2 responses
10 views
0 likes
|
Last Post
by Padan
Today, 08:34 AM
|
||
Started by wadginator, 03-25-2024, 10:52 AM
|
2 responses
13 views
0 likes
|
Last Post
by wadginator
Today, 08:18 AM
|
Comment