Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Compare open on multi time frame
Collapse
X
-
Compare open on multi time frame
Hello, I am newbie in developing strategy in ninjatrader. I was looking for solution, but i can not find it. I just want to enter long position if the price is greater then open of curent bar about 2 ticks. I found out that I have to use multi time frame. Compare 1 second bars and 1 minute bars. I want to trade on 1 minute chart. I need to compare each minute if the open of 1 second bar is greater then open on 1 minute bar. How can I do it? And how can I use it every minute? Thank youTags: None
-
Hello,
Thank yo for the question.
If you want to compare the Open of a primary series against a secondary series, you could use Opens http://ninjatrader.com/support/helpG...lightsub=opens
I look forward to being of further assistance.Code:if(BarsInProgress == 0) // if the primary is 1 minute, this is executed ever 1 minute or with COBC { if(CurrentBars[0] < 1 || CurrentBars[1] < 1) return; if(Opens[0][0] > Opens[1][0]) { EnterLong(); } }
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment