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
Trend Lines rising/falling?
Collapse
X
-
Trend Lines rising/falling?
I am trying to use Trend Lines in the Strategy Builder whereas if it reads the trend is rising or falling. However, as one can see by this error message https://www.screencast.com/t/67adOimrVJjQ the strategy builder requires a different expression. This seems pretty straight forward to me. What I am I missing?Tags: None
-
Hello Dolfan,
Thanks for your post.
The error message is advising that the selections made are invalid, in that case, you are comparing a double value (the current bar value of the Trendlines) to a bool type question (Is it rising)
There are a couple of ways to accomplish your goal in the strategy builder.
You can create a condition where the trendlines indicator current bar is greater than the previous bar of the trendlines indicator.
You can select Misc>Rising and select the Trendlines indicator, equals, Misc>true
I've added a couple of condition screenshots to help:
Paul H.NinjaTrader Customer Service
-
Thanks Paul. I still find the indicator a bit mystifying. For example, I placed 10 Trend Lines indicators on one chart and they are illustrating things that are not well defined, at least not to me. If I place 1 Trend Line on a chart, how do I dictate in the settings how much time is used to calculate the trend?
Comment
-
Hello Dolfan,
Thanks for your reply.
Like the Swing indicator, the Trendlines indicator uses a strength setting that relates to the number of bars before/after a swing point to confirm, in this case, a trendline.
I would suggest testing various strength settings. To further illustrate, add the swing indicator with the same strength setting on the same chart.
Reference: https://ninjatrader.com/support/help...rend-lines.htmPaul H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pechtri, 06-22-2023, 02:31 AM
|
10 responses
124 views
0 likes
|
Last Post Today, 12:03 AM | ||
Started by judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
59 views
0 likes
|
Last Post
by DynamicTest
Yesterday, 08:25 PM
|
||
Started by ScottWalsh, Yesterday, 06:52 PM
|
4 responses
36 views
0 likes
|
Last Post
by ScottWalsh
Yesterday, 07:40 PM
|
||
Started by olisav57, Yesterday, 07:39 PM
|
0 responses
7 views
0 likes
|
Last Post
by olisav57
Yesterday, 07:39 PM
|
||
Started by trilliantrader, Yesterday, 03:01 PM
|
2 responses
22 views
0 likes
|
Last Post
by helpwanted
Yesterday, 07:25 PM
|
Comment