I have tried using different plot commands but I'm not having much luck. Thanks!
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
BarsUp/BarsDown Indicators
Collapse
X
-
BarsUp/BarsDown Indicators
Regarding the "BarsUp/BarsDown" indicators, I was wondering is there an easy way to have those print as a dot above and below the bars on the price chart rather than a default separate indicator(s)?
I have tried using different plot commands but I'm not having much luck. Thanks!Tags: None
-
Ray, I tried what you recommended but it's still not compiling correctly. Could you please tell me what I'm doing wrong . . Thanks!
/// This method is used to configure the indicator and is called once before any bar data is loaded.
///</summary>
protectedoverridevoid Initialize()
{
Add (DrawDot("tag1", true, 0, Low[0] - TickSize, Color.Red));
CalculateOnBarClose = true;
Overlay = true;
}
Comment
-
Unfortunately I'm not familiar with the BarsUp/Dn indicators, but here's an idea how to plot a blue dot below the Low of the bar when a bar with an Up close was found -
Code:[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]protected[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]override[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2] OnBarUpdate() { [/SIZE][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2] (Close[[/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2]] > Open[[/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2]]) DrawDot(CurrentBar.ToString(), [/SIZE][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], [/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2], Low[[/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2][FONT=Verdana]] - TickSize, Color.Blue);[/FONT] } [/SIZE][/FONT][/SIZE][/FONT]
BertrandNinjaTrader Customer Service
Comment
-
Thanks Bertrand and Ray. Never got this to work. Obviously, NT programming is beyond me. This only took a fraction of the coding in Tradestation for me. Like other folks said regarding NT . . one needs to be a programmer first, then a trader. I guess I'll just live with it in a separate panel. Thanks for trying . .
Comment
-
You are welcome, you could also take a look at our strategy wizard and use this to generate the needed code with a point and click approach - http://www.ninjatrader-support.com/H...rdScreens.html
You don't have to issue entry / exit orders, just use it to place your dot(s) when then conditions become true.BertrandNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ETFVoyageur, Today, 04:00 PM
|
0 responses
5 views
0 likes
|
Last Post
by ETFVoyageur
Today, 04:00 PM
|
||
Started by AaronKTradingForum, Today, 03:44 PM
|
1 response
6 views
0 likes
|
Last Post Today, 03:51 PM | ||
Started by Felix Reichert, 04-26-2024, 02:12 PM
|
11 responses
76 views
0 likes
|
Last Post Today, 03:18 PM | ||
Started by junkone, 04-28-2024, 02:19 PM
|
7 responses
82 views
1 like
|
Last Post
by junkone
Today, 03:15 PM
|
||
Started by pechtri, 06-22-2023, 02:31 AM
|
11 responses
136 views
0 likes
|
Last Post
by Nyman
Today, 02:59 PM
|
Comment