I downloaded and imported the TSSupertrend indicator from this site. It works on the charts, but wen I try to insert it a script, and compile it, I get an error signal:"It is a method, and not valid in the given context." When I try to insert a "built in" indicator, f.ex. the Supertrend, it works. What is the solution, please help me...
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
TSSupertrend indicator
Collapse
X
-
TSSupertrend indicator
Dear Collegues
I downloaded and imported the TSSupertrend indicator from this site. It works on the charts, but wen I try to insert it a script, and compile it, I get an error signal:"It is a method, and not valid in the given context." When I try to insert a "built in" indicator, f.ex. the Supertrend, it works. What is the solution, please help me...Tags: None
-
Hello akkiss,
Thank you for your post.
You need to add the TSSuperTrend.Utility to your declarations (located at the top of the code):
Code:using TSSuperTrend.Utility;
Code:TSSuperTrend(14, MovingAverageType.SMA, 2.618, 14, SuperTrendMode.ATR).UpTrend[0]
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cre8able, Yesterday, 04:22 PM
|
1 response
13 views
0 likes
|
Last Post Today, 06:44 AM | ||
Started by stafe, 04-15-2024, 08:34 PM
|
5 responses
28 views
0 likes
|
Last Post Today, 06:42 AM | ||
Started by StrongLikeBull, Yesterday, 04:05 PM
|
1 response
12 views
0 likes
|
Last Post Today, 06:34 AM | ||
Started by Mestor, 03-10-2023, 01:50 AM
|
14 responses
375 views
0 likes
|
Last Post
by z.franck
Today, 06:32 AM
|
||
Started by molecool, 10-09-2017, 10:48 AM
|
5 responses
1,621 views
0 likes
|
Last Post
by trader-ap
Today, 06:29 AM
|
Comment