But it really works for forex data in Time & Sales window. May be volume info not correct but deals are really separated by color. Pls investigate.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
get the bid ask volume inside the bar from the example
Collapse
X
-
Hello aleeninja,
I'm sorry, I do not understand your meaning of the word 'deals'.
Are you referring to block sizes?
Prints in the output window don't have colors, instead the print prints the word orange or green in the print text.
These match the orange and green colors shown in the Time & Sales window.
You can add further conditions if you want.
What are you wanting me to investigate?Chelsea B.NinjaTrader Customer Service
Comment
-
Hello ChelseaB! TnSPrintsExample_NT8.cs does not separate deals too. But separation takes place in Time & Sales window perfect. May be volume info is not correct but
coloring the string depending on Ask or Bid working perfect for forex data. Pls check.
Comment
-
Sorry for double message. I mean in T&S window both colors ( orange and green ) are present. In script only orange color. I think by default price always equals Bid in script.
I think in T&S window another method of separation presents and it really works.
Comment
-
Dear ChelseaB! Yes, forex volume doesn't work. By word deals I mean each string that appears real time in T&S window. And string may be orange or green depending
on price ( Bid or Ask). The price in such string indicates buy or sale. And it really works. In script you provide doesn't work.
Comment
-
Hello aleeninja,
You would need to add further custom conditions for matching the above ask, below bid, between bid etc..
The conditions in the example considers marketDataUpdate.Price >= marketDataUpdate.Ask to be ask and marketDataUpdate.Price <= marketDataUpdate.Bid to be bid. This simple example of how to work with market updates does not have all of the conditions in the T & S window.
You could separate these into different conditions to compare the price to be equal to ask to print green, and above ask to print gold, or if price is equal to bid to print orange, and if less than bid to print deeppink.
Notice in your screenshot, there are no green ask updates.Chelsea B.NinjaTrader Customer Service
Comment
-
Yes. I choose chocolate and crimson colors for my example.
I want to say in script always condition marketDataUpdate.Price <= marketDataUpdate.Bid takes place.
And never marketDataUpdate.Price >= marketDataUpdate.Ask. I think no other condition will not work too.
Because for forex marketDataUpdate.Price == marketDataUpdate.Bid in script. In T&S window not as you can see in screenshot.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
581 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
338 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment