Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Plotting DataSeries
Collapse
X
-
Hi gg80108, you can use the DrawLine methods for connecting your highs / lows - http://www.ninjatrader-support.com/H.../DrawLine.html
-
Plotting Lines to conect Highs & Lows
Yea, I'm interested in the same. Apparently, Low and Lows do NOT have a Plot method? We can plot EMA on close,open,high, low. But how can we create a series of lows and highs and plot then and base decision rules off of them? Not just drawing lines to connect them. Any suggestions are much welcomed.
blueion
Comment
-
here is the code i used to connect significant bar points, like Ben said the key to this is storing the bar numbers somewhere. The trick is that with a data series there is an entry in the array for every bar , a null or value, and not just the values you set in.
I had to use a
//find last pivot bar
for (int x = 1; x < Bars.BarsSinceSession;x++)
{
if (scalpSeries.ContainsValue(x))
{
PivotBarNum = (int)scalpSeries[x];
DrawLine("sl" + CurrentBar,CurrentBar - PivotBarNum,Low[CurrentBar - PivotBarNum],ExtremeBar,High[ExtremeBar],Color.Blue,DashStyle.Solid,1);
Last edited by gg80108; 11-22-2009, 04:07 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
88 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
48 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
30 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
34 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
68 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment