Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Super Trend For Ninja Trader Needed
Collapse
X
-
Hi Guys,
Firstly awesome work on this indicator so far, it is genuinely apprecaited.
A couple of quick questions;
Does this incorporate the work of the adaptive supertrend indicator located in the other thread? If not are there advantages / disadvantages of either?
Can anyone suggest optimal settings for FOREX on a 240 or 60 min chart?
Can you suggest a good indicator to measure the likelyhood of a major move in order to avoid some of the whipsaws that you get.
Thanks again to everyone that has contributed,
Tim
Comment
-
I am aware of that and working... Will post updated version soon...Originally posted by jcash View Postwhy is the newest TSSuperTrend so slow to just run through 18 possible combinations on one day, one minute chart in strategy analyzer (took 30 minutes)?
is the new version not written for use in strategies? any suggestions for speeding it up?
Comment
-
The updated version 2.1. Should be faster in strategies...Attached Files
Comment
-
would it be possible to publish a "strategy" version to run in strategy analyzer / to backtestOriginally posted by jcash View Postwhy is the newest TSSuperTrend so slow to just run through 18 possible combinations on one day, one minute chart in strategy analyzer (took 30 minutes)?
is the new version not written for use in strategies? any suggestions for speeding it up?
(sorry about my worse English)
Comment
-
Hello there,
Thank you in advance for the work about this indicator. I a problem about using it in a simple strategy.
For example in a situation where we have daily data and the strategy go long only How I understand if I'm in an UpTrend or DownTrend.
Thank you in advance and I hope I can be helpfull to other user
bye
Comment
-
Strategy problem solved
I created a data series "bsSignal" to add a +1 when you're in an Uptrend and -1 when you're in a Downtrend. So now all you need to do is code your Strategy using +1 / -1 as a condition in the Strategy Wizard. No need for programing!!
Good LuckAttached FilesLast edited by velocity; 06-03-2009, 07:23 AM.
Comment
-
Velocity,Originally posted by velocity View PostI created a data series "bsSignal" to add a +1 when you're in an Uptrend and -1 when you're in a Downtrend. So now all you need to do is code your Strategy using +1 / -1 as a condition in the Strategy Wizard. No need for programing!!
Good Luck
Thanks.
You don't need to add any additional "signal"
TSSupertrend already has a boolseries:
Uptrend:
Downtrend:Code:if(TSSuperTrend(Parameters).Trend[0]) { //we are in uptrend }
Fresh cross up:Code:if(!TSSuperTrend(Parameters).Trend[0]) { //we are in downtrend }
Fresh cross down:Code:if(TSSuperTrend(Parameters).Trend[0] && !SuperTrend(Parameters)[1]) { //Trend just changed direction up }
Code:if(!TSSuperTrend(Parameters).Trend[0] && SuperTrend(Parameters)[1]) { //Trend just changed direction down }
Comment
-
Regarding the indicator above I have developed a simple strategy where the code, as indicated previously, is the following :
if (Position.MarketPosition == MarketPosition.Flat && TSSuperTrend(Periodo, TradingStudies.NinjaScript.Utility.MovingAverageTy pe.SMA, 2.618, 14, TradingStudies.NinjaScript.Utility.SuperTrendMode. ATR).Trend[0])
{
EnterLong(DefaultQuantity, "");
}
else if(Position.MarketPosition == MarketPosition.Long && !TSSuperTrend(Periodo, TradingStudies.NinjaScript.Utility.MovingAverageTy pe.SMA, 2.618, 14, TradingStudies.NinjaScript.Utility.SuperTrendMode. ATR).Trend[0] && TSSuperTrend(Periodo, TradingStudies.NinjaScript.Utility.MovingAverageTy pe.SMA, 2.618, 14, TradingStudies.NinjaScript.Utility.SuperTrendMode. ATR).Trend[1])
{
ExitLong();
}
but as you can see in the attached file it doesn't work fine.
The trend start at a position where the boolean variable is non true.
Is it correct or I'm wrong ?
I think that, as in the code above, the Order Long start at the beginning of the trend, after the first bar of a trend.
Thank you in advance
bye.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
649 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
573 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
576 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|


Comment