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
MultiTime Frame Filter with Supertrend Indicator
Collapse
X
-
MultiTime Frame Filter with Supertrend Indicator
I try to build a filter with the Supertrendindicator (AuSuperTrendU11), which checks the close of the current and previous 30 min. bar, which needs to be eg. above the Stopline of the Supertrend Indicator also in the 30 min. time frame. The primary time frame is the 1 min. Chart in which I execute the trades, after all filters are true. The code snipplet ist just indicative for what I am trying. The Barbrush helps me to see, if the signal works correctly, and it doesnt. I habe no idea why this doesnt work. Can someone help?1 PhotoTags: None
-
Hello dpeter,
The indicator is set to use Closes[1] which is the FDAX 03-21 30 minute series.
The value for this is only going to be printed during the primary series due to the 'if (BarsInProgress != 0) return' code.
Try printing the time and values of the bars and of the indicator to the output window, and compare with the prints from an indicator that does not use AddDataSeries added directly to a 30 minute FDAX 03-21 chart.
Below is a link to a forum post that demonstrates using prints to understand behavior.
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Shansen, 08-30-2019, 10:18 PM
|
24 responses
938 views
0 likes
|
Last Post
by spwizard
Today, 01:29 AM
|
||
Started by Max238, Today, 01:28 AM
|
0 responses
3 views
0 likes
|
Last Post
by Max238
Today, 01:28 AM
|
||
Started by rocketman7, Today, 01:00 AM
|
0 responses
2 views
0 likes
|
Last Post
by rocketman7
Today, 01:00 AM
|
||
Started by wzgy0920, 04-20-2024, 06:09 PM
|
2 responses
27 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:43 PM
|
||
Started by wzgy0920, 02-22-2024, 01:11 AM
|
5 responses
32 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:33 PM
|
Comment