if (Closes[1][0] > SMA(BarsArray[1], 100)[0] && !HasTradedLong)[SIZE=6][COLOR=Red];[/COLOR][/SIZE]
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
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 Skifree, Today, 03:41 AM
|
1 response
2 views
0 likes
|
Last Post
by Skifree
Today, 03:42 AM
|
||
Started by usazencort, Today, 01:16 AM
|
0 responses
1 view
0 likes
|
Last Post
by usazencort
Today, 01:16 AM
|
||
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
603 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by xiinteractive, 04-09-2024, 08:08 AM
|
6 responses
23 views
0 likes
|
Last Post Today, 12:31 AM | ||
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
23 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
Comment