if (Closes[1][0] > SMA(BarsArray[1], 100)[0]
&& !HasTradedLong)[SIZE=6][COLOR=Red];[/COLOR][/SIZE]
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Multi-Time Frame code issue.
Collapse
X
-
Thanks.
Josh, Thanks - now it appears to work.
But why couldn't you tell me this yesterday when I first posted this code?
Instead, you told me to read the article on adding a second time frame, which was definitely beneficial (even though I already read it before).
If you had only noticed it yesterday - you would've saved me 8+ hours trying to fix something that wasn't broker, but something that was not used properly.
Also, what do you mean a close if statement? It worked just fine prior to me adding the second time frame.
Also, is there any way to set default values for the backtest box that opens up?
Comment
-
strategy1,
If we saw it earlier we would have mentioned it earlier. Seeing something like that outside of a code editor is extremely hard. This is why we had you send us the zip file.
By close an if-statement I mean placing a semicolon after the () of an if-statement.
The default values that are settable are located here: http://www.ninjatrader-support2.com/...06&postcount=5Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
153 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
89 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
133 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
128 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment