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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
59 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
143 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
161 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
97 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment