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 ageeholdings, Today, 07:43 AM
|
0 responses
7 views
0 likes
|
Last Post
by ageeholdings
Today, 07:43 AM
|
||
Started by pibrew, Today, 06:37 AM
|
0 responses
4 views
0 likes
|
Last Post
by pibrew
Today, 06:37 AM
|
||
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
14 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
12 views
0 likes
|
Last Post Today, 12:38 AM |
Comment