Thanks
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 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 The_Sec, Yesterday, 03:37 PM
|
1 response
11 views
0 likes
|
Last Post Today, 06:17 AM | ||
Started by vecnopus, Today, 06:15 AM
|
0 responses
1 view
0 likes
|
Last Post
by vecnopus
Today, 06:15 AM
|
||
Started by Aviram Y, Today, 05:29 AM
|
0 responses
5 views
0 likes
|
Last Post
by Aviram Y
Today, 05:29 AM
|
||
Started by quantismo, 04-17-2024, 05:13 PM
|
3 responses
27 views
0 likes
|
Last Post Today, 05:23 AM | ||
Started by ScottWalsh, 04-16-2024, 04:29 PM
|
7 responses
36 views
0 likes
|
Last Post Today, 05:15 AM |
Comment