Can anyone help with this . . . or is it that it won't be that useful on a 2min chart?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Adaptive SuperTrend
Collapse
X
-
You are seeing the dif between live and historical data. Nothing wrong with the indicator. They all do what you see
During chop with any realtime bar, the data will fluctuate and have the effect you see.
You can stop the 'false' signals by setting ur indicators to 'bar close'.
If it was as easy as following a simple arrow or ind, we'd all be rich.
Comment
-
Originally posted by zoltran View PostYou are seeing the dif between live and historical data. Nothing wrong with the indicator. They all do what you see
During chop with any realtime bar, the data will fluctuate and have the effect you see.
You can stop the 'false' signals by setting ur indicators to 'bar close'.
If it was as easy as following a simple arrow or ind, we'd all be rich.
Comment
-
Adaptive SuperTrend strategy problem
I like this indicator a lot. I wanted to test it in a strategy with some other indicators. The problem is the amount of memory that is uses. I have managed to complete a back test (with all other indicators removed from the strategy) on a 60 minute chart from 1 July 09 to 31 Aug 09 on the GC (gold) 12-09 contract.
As soon as I try to run it in a 466 tick chart NT crashes. I get the following errors in the log:
2009/09/02 03:53:42 PM,Default,Hosted.Adapter.OnMarketDataNow: Exception of type 'System.OutOfMemoryException' was thrown.,
2009/09/02 03:53:38 PM,Strategy,Error on calling 'OnBarUpdate' method for strategy 'testADSTunlocked': Index was outside the bounds of the array.,
2009/09/02 03:53:37 PM,Default,Failed to call method 'Initialize' for indicator 'AdaptiveSuperTrendEW': Exception of type 'System.OutOfMemoryException' was thrown.,
2009/09/02 03:53:36 PM,Default,Error on calling the 'OnBarUpdate' method for indicator 'AdaptiveSuperTrendEW' on bar 57: Exception of type 'System.OutOfMemoryException' was thrown.,
2009/09/02 03:53:36 PM,Default,Error on calling the 'OnBarUpdate' method for indicator 'AdaptiveSuperTrendEW' on bar 59: Exception of type 'System.OutOfMemoryException' was thrown.,
I have also seen OutOfMemeoryException errors thrown during the tests mentioning the HilbertTransform - which is something I believe the adaptive supertrend indicator uses.
I have attached the strategy if someone wants to see if they get the same error. I hope someone can help me use the indicator in a different way so that memory is not a problem. For those that could help but do not want to run the strategy it basically is this:
if (AdaptiveSuperTrendEW(1, true).UpTrend[0] < Close[0])
{
EnterLong(DefaultQuantity, "");
}
// Condition set 2
if (AdaptiveSuperTrendEW(1, true).DownTrend[0] > Close[0])
{
EnterShort(DefaultQuantity, "");
Any ideas are welcome.
RegardsAttached Files
Comment
-
Comment
-
-
I had the same problem with AdaptiveSuperTrendEW in a strategy. My workaround is in an attached file AdaptiveSuperTrendEW2.cs . I simply stopped to use Multiplier parameter as a variable internally.
What's happened was an initialization of a new instance of AdaptiveSuperTrendEW was done for every bar in a strategy. Because Multiplier was a parameter , the indicator could not be cached and a new instance was created everytime its value changed. Now AdaptiveSuperTrendEW creates HomodyneDiscriminator with on its turn creates a new instance of HilbertTransform with all its series. Once a parameter value is left alone, all this is avoided.
I didn't dig an algorithm, but the plotted results are identical to the original AdaptiveSuperTrendEW. Only Elliott Wave can explain his implementation considerations.
And only Ninja guys can explain why the scenario above did not happen in a standalone indicator. I assume, that an indicator, initialized once , doesn't reinitialize itself, even if its parameters are changing.
Just copy the attached file to
\Documents and Settings\[username]\My Documents\NinjaTrader 7\bin\Custom\Indicator
and recompile.Attached Files
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Brevo, Today, 01:45 AM
|
0 responses
3 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
239 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
6 views
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
Comment