Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
alerts
Collapse
X
-
Thanks, I thought changing the 1 to the 2 made the dots larger--you mean I created a lookback.Originally posted by NinjaTrader_Bertrand View Post
-
-
Originally posted by NinjaTrader_Bertrand View PostCorrect, you want to enter 1 here in your case, it does not change the dot width as you suspected, the dots have a default size.
So using the 1 in the statement should be exactly the same result as inserting && DiPlus[1] <= 20)
Correct?
Comment
-
Did you ever figure out why Overlay=false; didnt put the dots on the indicator panel instead of on the candle panel?
Comment
-
No, the outcomes would still be different, in your case juse use the Cross over with a lookback of 1 - you want to work with DrawOnPricePanel for this, not with the overlay one - http://www.ninjatrader-support.com/H...ceOnPanel.html
Comment
-
i tried adding DrawOnPricePanel=false; in the initialize section but it didnt work.Originally posted by NinjaTrader_Bertrand View PostNo, the outcomes would still be different, in your case juse use the Cross over with a lookback of 1 - you want to work with DrawOnPricePanel for this, not with the overlay one - http://www.ninjatrader-support.com/H...ceOnPanel.html
Should I maybe add it after each DrawDot statement or maybe after the fourth DrawDot statement or somewhere else?
Comment
-
Like this?Originally posted by NinjaTrader_Bertrand View PostIf you want to plot on the indicator panel with this scripts, you would then also need to adapt your Y values used in the DrawDot calls, right now you plot them at the highs and lows of the price panel, this will need a change to the DiPlus / Minus indicator values.
Code:if (CrossAbove(DiPlus, 20, 1)) DrawDot("di+20 up" + CurrentBar, false, 0, [COLOR=red]DiPlus[0]-(TickSize*dist)[/COLOR], Color.Lime); if (CrossAbove(DiMinus, 20,1)) DrawDot("di-20 up" + CurrentBar, false, 0, [COLOR=red]DiMinus[0]-(TickSize*dist)[/COLOR], Color.Red); if (CrossAbove(DiPlus, 25,1 )) DrawDot("di+25up" + CurrentBar, false, 0, [COLOR=red]DiPlus[0]-(TickSize*dist)[/COLOR],Color.Lime); if (CrossAbove(DiMinus, 25,1 )) DrawDot("di-25 up" + CurrentBar, false, 0, [COLOR=red]DiMinus[0]-(TickSize*dist)[/COLOR],Color.Red);Last edited by simpletrades; 10-26-2009, 11:17 AM.
Comment
-
Thanks it works fine now.Originally posted by NinjaTrader_Bertrand View PostYes, like this - but you would need to adjust your tick size multiplier of course, too.
One more related question from the same indicator...
Add(new Plot(new Pen(Color.Transparent, 1), "ADX"));
Add(new Plot(Color.Green, "+DI"));
Add(new Plot(Color.Red, "-DI"));
Does the 1 in the ADX statement refer to 1 bar ago?
If I wanted the 2 DMI's to be a width of 2 without having to fix it on my chart indicator pulldown that way, is it just adding the number in somewhere or is it a whole new statement?
Comment
-
No, the 1 is the width of the Pen Plot, this is just for visualization, it's not referring to actual ADX indicator values.
You can set the Plot width directly in the Initialize(), for example your Plus and Minus values are associated with Plot0 and Plot1 -
This will set them to a default width of 2.Code:Plots[0].Pen.Width = 2; Plots[1].Pen.Width = 2;
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
607 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
353 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 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
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment