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 sjsj2732, Today, 04:31 AM
|
0 responses
20 views
0 likes
|
Last Post
by sjsj2732
Today, 04:31 AM
|
||
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
280 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
279 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
130 views
1 like
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
90 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|

Comment