action ;
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Buy/Sell signals
Collapse
X
-
Ah the details! And that's why they pay you the big bucks
Thank you kindly sir. I can only work on this at night, this week. So I will go back tonight and keep plugging away at it. Thanks again, huge help from everyone in this community.
Comment
-
Comment
-
How can I add the Accumulation/Distribution line into the mix? I did a search and came up with (Rising(AD)) but apparently that is incorrect.
Comment
-
-
Hello,
Thank you for the reply.
To know when any indicator is Rising or Falling, not just the AD, you could use the syntax you provided but it would need to be surrounded by an if statement like the following:
In this example, you would need to replace SMA(12) with the name of the indicator you want to use and any parameters it takes.Code:if(Rising(SMA(12))) { //the sma is rising so an action }
I look forward to being of further assistance.
Comment
-
-
How can I add the following criteria???
DirectionalMovement[+DI,14,14] < DirectionalMovement[-DI,14,14]+1) OR
(Bar[Close,5] < Bar[Open,5])
Not only do I not understand how to incorporate the "OR" statement but not sure how to add the this part (Bar[Close,5] < Bar[Open,5])
TIA
Comment
-
That is not the way to reference any indexed value in an object. Both of your references are defective. Read the NT Help for the correct syntax. It is much easier that way. I do not know what your intent is with the DirectionalMovement, so I cannot correct that syntax. IOW, what I have here is only to show you how to use the logical "or" and how to reference the bars properties using an index. You do have to use the correct syntax for the DirectionalMovement.Originally posted by optiontrader View PostHow can I add the following criteria???
DirectionalMovement[+DI,14,14] < DirectionalMovement[-DI,14,14]+1) OR
(Bar[Close,5] < Bar[Open,5])
Not only do I not understand how to incorporate the "OR" statement but not sure how to add the this part (Bar[Close,5] < Bar[Open,5])
TIA
ref: http://ninjatrader.com/support/helpG...ovement_dm.htmCode:DirectionalMovement[+DI,14,14] < DirectionalMovement[-DI,14,14]+1)[COLOR="RoyalBlue"]/*this preceding sytax is invalid*/[/COLOR] || (Close[5] < Open[5])
Comment
-
custom colored columns
Hi, I have 4 indicators that I use in columns on ThinkorSwim (TOS). I need help making 3 of them on Ninja trader. The indicators are Netsignal, Opening Signal, High/Low. The code in TOS for netsignal is:
#Net Signal
plot NetSignal = close - close[1];
basically the last price of todays daily candle - yesterdays daily close
Opening Signal :
def change = close[0] - open[0];
plot OpenSignal = if change > 0 then 1 else if change < 0 then -1 else 0;
basically the last of current daily candle - opening price of current daily candle
Previous Days High/Low:
#High / Low Signal
plot HL = if close > high[1] then 1 else if close < low[1] then -1 else 0;
basically checks previous days high being broken and gives a code and the same for the revious days low.
I am new to ninjascript and do not know the wording of how to accomplish this. I know once it becomes an idicator how to implement in the chart but do not know how to script this. If anyone could help me with this I would greatly appreciate it. Thanks
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
571 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
330 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
548 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
549 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment