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 Mindset, Today, 06:46 AM
|
0 responses
13 views
0 likes
|
Last Post
by Mindset
Today, 06:46 AM
|
||
|
Started by M4ndoo, Yesterday, 05:21 PM
|
0 responses
19 views
0 likes
|
Last Post
by M4ndoo
Yesterday, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
16 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
82 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
50 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment