Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Gap Up/Down Alert
Collapse
X
-
gap
Originally posted by NinjaTrader_RyanM View PostYes, that's it. To create a new indicator Click Tools > New NinjaScript > Indicator. Click Next to advance through the wizard to customize its name, plots and input parameters if needed.
Click Generate to have it create the basic indicator structure. The snippet can be pasted exactly as it is, inbetween the two brackets { } of OnBarUpdate, like:
Code:protected override void OnBarUpdate() { if (CurrentDayOHL().CurrentOpen[0] > PriorDayOHLC().PriorHigh[0] || CurrentDayOHL().CurrentOpen[0] < PriorDayOHLC().PriorLow[0]) Value.Set(1); else Value.Set(0); }
http://www.ninjatrader.com/support/h...indicators.htm
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by GLFX005, Today, 03:23 AM
|
0 responses
1 view
0 likes
|
Last Post
by GLFX005
Today, 03:23 AM
|
||
Started by XXtrader, Yesterday, 11:30 PM
|
2 responses
11 views
0 likes
|
Last Post
by XXtrader
Today, 03:07 AM
|
||
Started by Waxavi, Today, 02:10 AM
|
0 responses
6 views
0 likes
|
Last Post
by Waxavi
Today, 02:10 AM
|
||
Started by TradeForge, Today, 02:09 AM
|
0 responses
12 views
0 likes
|
Last Post
by TradeForge
Today, 02:09 AM
|
||
Started by Waxavi, Today, 02:00 AM
|
0 responses
2 views
0 likes
|
Last Post
by Waxavi
Today, 02:00 AM
|
Comment