Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Bid/Ask Rate of Change
Collapse
X
-
Use https://ninjatrader.com/support/help...marketdata.htm ?Originally posted by brucelevy View PostHow would one go about identifying the rate of change over a given number of bars between the bid and ask?
-
Hello brucelevy,
Thank you for your post.
You would add in the Bid and Ask as secondary series in the script. For example, in Initialize():
You would then compare the values against one another:Code:Add("ES 09-16, PeriodType.Minute, 1, MarketDataType.Bid); Add("ES 09-16, PeriodType.Minute, 1, MarketDataType.Ask);
For information on working with multiple series in your script please visit the following link: http://ninjatrader.com/support/helpG...nstruments.htmCode:if (Closes[1][0] > Closes[2][0]) // do something
Please let me know if you have any questions.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
27 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
183 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
335 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
260 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment