I wanted to use an SMA that was based upon 5 bar LOW value... yet there is no place in the Wizard's SMA value to determine whether it's based on Hi Lo Open or Close. Am I missing something?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
SMA Value
Collapse
X
-
SMA Value
First time poster, trying to develop my first NinjaScript.
I wanted to use an SMA that was based upon 5 bar LOW value... yet there is no place in the Wizard's SMA value to determine whether it's based on Hi Lo Open or Close. Am I missing something?Tags: None
-
Down close entry conditional
Thank you, I'm getting the hang of it. I read the entire Strategy part of the help file last night, when I was very tired. I must have forgotten that part. I have a much more difficult question this time.
I want to enter a long position when I have three consecutive closes above an SMA. However, I don't want to enter on the close of the 3rd bar necessarily... I want to enter only if that 3rd bar is a DOWN close (relative to its open). If that bar is not a down close, then I want to delay entry until the 4th bar, or 5th, etc.
Can you point me in the right direction as to how to express that in the Wizard?
Comment
-
Thanks for your help. A little background: I have been manually trading a FOREX system I created. It is profitable, and I want to auto-trade it 24 hours per day. Unfortunately, I don't know much about the programming.
So, here is two more questions... I've been reading the forums for an hour, and I think that what I'm wanting to do isn't possible on the Wizard, but I'm going to double check:
1. I want to create a look back period, that's something along the lines of:
"If the low is higher than the previous twelve highs then enter"
I could easily code this in the Wizard by creating 12 conditionals like
Low[0] > High [1]
Low[0] > High [2]
and so on...
But, here's the catch. I want to run this through the optimizer, thus I need to make the 12 number changeable by making it a user defined variable. I have not been able to find a place to define a look back period in the Conditional Builder, except on the Crossabove or Crossbelow function.
This seems like such an obvious condition to allow in the wizard, but I cannot find a way to express it. Is this not possible?
2. If I can't do it in the Wizard, is it possible to do in the NinjaScript coding language? Because if it is, I will have to learn it.
Comment
-
fury, this is definitely possible with NinjaScript.Originally posted by fury661 View PostBut, here's the catch. I want to run this through the optimizer, thus I need to make the 12 number changeable by making it a user defined variable. I have not been able to find a place to define a look back period in the Conditional Builder, except on the Crossabove or Crossbelow function.
This seems like such an obvious condition to allow in the wizard, but I cannot find a way to express it. Is this not possible?
2. If I can't do it in the Wizard, is it possible to do in the NinjaScript coding language? Because if it is, I will have to learn it.AustinNinjaTrader Customer Service
Comment
-
I don't think is possible to create in the wizard, it should be straightforward though in custom coding with the CountIf method - http://www.ninjatrader-support.com/H...6/CountIf.html
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by cmoran13, Yesterday, 01:02 PM
|
0 responses
25 views
0 likes
|
Last Post
by cmoran13
Yesterday, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
17 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
160 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
94 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
148 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Comment