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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
67 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
36 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
59 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment