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
Collapse
X
-
Hello solaris,
It would be the relationship of the Bid and Ask
BuySellPressure Indicator
The BuySellPressure indicator displays both the current bar's buying and selling pressure as percentage values based on the categorization of trades as buy or sell trades. Trades are categorized in real-time as a buy (at the ask or above) or as a sell (at the bid or below).... Trades in between the market are ignored The BuySellPressure indicator displays both the current bar's buying and selling pressure as percentage values based on the categorization of trades as buy or sell trades. Trades are categorized in real-time as a buy (at the ask or above) or as a sell (at the bid or below).... Trades in between the market are ignored
MatthewNinjaTrader Product Management
-
solaris,
If you have additional questions, I would suggest looking at the core logic of this indicator by going to Tools--> Edit NinjaScript--> BuySellPressure.
Code:if (Close[0] >= GetCurrentAsk()) buys += tradeVol; else if (Close[0] <= GetCurrentBid()) sells += tradeVol;
MatthewNinjaTrader Product Management
Comment
-
Hi all..resurrecting this post bcos i'm not sure even after reading the script what += means so I don't understand if the numbers of trades are considered or the volume. Also would the time frame of the chart affect the value that I see on the indicator? many thanks
Comment
-
Hello percma,
Thanks for your post.
From the help guide, on the += assignment, x += y is equivalent to x = x + y. Please see: https://ninjatrader.com/support/help...sic_syntax.htm
Here is a further reference tpo the C# operator: https://docs.microsoft.com/en-us/dot...nment-operator
Yes, the time frame would affect the value, you can observe this by creating two different time frame charts and checking the indicator on each.
Paul H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Trader146, Today, 11:41 AM
|
0 responses
2 views
0 likes
|
Last Post
by Trader146
Today, 11:41 AM
|
||
Started by jpapa, 04-23-2024, 07:22 AM
|
2 responses
16 views
0 likes
|
Last Post
by rene69851
Today, 11:39 AM
|
||
Started by funk10101, Today, 11:35 AM
|
0 responses
1 view
0 likes
|
Last Post
by funk10101
Today, 11:35 AM
|
||
Started by samish18, Today, 11:26 AM
|
0 responses
1 view
0 likes
|
Last Post
by samish18
Today, 11:26 AM
|
||
Started by Trader146, 03-29-2024, 01:22 PM
|
2 responses
14 views
0 likes
|
Last Post
by Trader146
Today, 11:24 AM
|
Comment