Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Buy Sell Pressure Indicator Used with OnBarUpdate
Collapse
X
-
Buy Sell Pressure Indicator Used with OnBarUpdate
I am developing a strategy using the Buy/Sell Pressure indicator which is an ontickupdate indicator. I want the strategy to place an order at the end of bar. Can you give/point me to me a snippet of code to show how to use both ontickupdate and onbarupdate at the same time?
ThanksTags: None
-
Thanks Chelsea - I am not quite sure what to do with this...I think the main issue is that the indicator always shows 50 at the beginning of every bar. We tested and it also shows 50 for the previous bar's value. Our strategy needs to track the value of the buy sell pressure from the prior candle. Is there a way to get the true value of the buy sell pressure indicator from the previous candle?
Comment
-
Hello cpabiz20k,
Add the indicator to the chart with AddChartIndicator().
Are you seeing the values you are printing do not match the indicator that appears on the chart?
Are you calling Update() to ensure the values are up to date in the indicator?
I am not able to reproduce this behavior.
Attached is the test script and a screenshot of the output on my end compared with the DataBox from the chart with the mouse over that particular bar.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
48 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
66 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment