action ;
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
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:
Code:if(Rising(SMA(12))) { //the sma is rising so an action }
I look forward to being of further assistance.JesseNinjaTrader Customer Service
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
-
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
Code: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 Rapine Heihei, Today, 08:19 PM
|
1 response
4 views
0 likes
|
Last Post Today, 08:30 PM | ||
Started by Rapine Heihei, Today, 08:25 PM
|
0 responses
5 views
0 likes
|
Last Post Today, 08:25 PM | ||
Started by f.saeidi, Today, 08:01 PM
|
1 response
4 views
0 likes
|
Last Post Today, 08:17 PM | ||
Change colour of Stop market and limit orders to red and green via indicator script
by Rapine Heihei
Started by Rapine Heihei, Today, 07:51 PM
|
0 responses
6 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by frslvr, 04-11-2024, 07:26 AM
|
5 responses
97 views
1 like
|
Last Post
by caryc123
Today, 07:47 PM
|
Comment