foreach (double i in list)
{
DrawRegion("region"+CurrentBar,CurrentBar,0, High[0], i, Color.Empty, Color.red, 2);
}
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Draw Region question in nt7
Collapse
X
-
Draw Region question in nt7
I am confused with the statement below as I get a compile error "Argument '4' cannot convert from 'double' to 'NinjaTRader.Data.IDataSeries'"
Code:Tags: None
-
Hello Nick123,
Thank you for your post.
The compile error message you are receiving means that you are passing a double object into argument 4 of the DrawRegion method when a Series object should be used. Instead of using High[0] for argument 4, you would need to use High. For example:
See the help guide documentation below for more information.Code:foreach (double i in list) { DrawRegion("region"+CurrentBar,CurrentBar,0, High, i, Color.Empty, Color.Red, 2); }
DrawRegion - https://ninjatrader.com/support/help...drawregion.htm
Let us know if we may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
553 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
100 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
543 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
546 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment