Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
muti time frame strategy
Collapse
X
-
muti time frame strategy
Hi how can i build a muti time frame strategy using strategy builder? or is there any other ways to build a muti time frame strategy for auto trading? (for example when price is above 20 day moving average and cross above 15 min moving average, enter long) thanks!Tags: None
-
Hi, the following is my coding to reflect the idea of my multi-time frame strategy. i bold the added codes. i want to have a second Stochastic with the same index but different time frame(day). However this code doesn't work. I am a newbie for this but please kindly advise what's wrong. Thanks a lot!!!
protectedoverridevoid Initialize(){Add(PeriodType.day, 1);CalculateOnBarClose = false;}protectedoverridevoid OnBarUpdate(){// Condition set 1if (CrossAbove(Stochastics(7, 14, 3).D, 20, 1)&& Stochastics((BarsArray[1],7)[0], (BarsArray[1],14)[0],(BarsArray[1], 3)[0]).D[0] >= 20){EnterLong(DefaultQuantity, "");}}
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 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
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment