Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Background Color
Collapse
X
-
maitreja,
Let us take a step back. These are the exact steps you need to do to get your strategy onto a chart.
1. Create your strategy and make sure it compiles alright
2. Connect to your data provider
3. Open a chart that has data on it
4. Ctrl+S to bring up the Strategy selection window
5. Select your strategy from the left hand side and then press the "New" button
6. Change your strategy parameters on the right hand side.
7. Press Apply
8. Press OK
9. Your strategy will be on your chart now. If your strategy has any errors it will appear in the Control Center logs.Josh P.NinjaTrader Customer Service
Comment
-
You are charting the NQ but you are trying to change colors for the TICK. That will not work. Instead just program from within the BarsInProgress = 0 context. To access the close value of the tick you can use Closes[1][0].
Code:if (BarsInProgress == 0) { if (Closes[1][0] > 0) BackColorAll = Color.Red; }Josh P.NinjaTrader Customer Service
Comment
-
So one more question - is it possible to do color will change in this case:
I'm using 5 min TF NQ and 1 min TF Tick. If Tick is under or above some value, background color will change immediatly via Tick during drawing 5TF bar? It means online changing for example 3 times on one bar?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
177 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
331 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
254 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
356 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
184 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment