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
-
why so slow?
why 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
-
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
-
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?
(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
-
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:
Code:if(TSSuperTrend(Parameters).Trend[0]) { //we are in uptrend }
Code:if(!TSSuperTrend(Parameters).Trend[0]) { //we are in downtrend }
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 geddyisodin, 04-25-2024, 05:20 AM
|
8 responses
61 views
0 likes
|
Last Post Yesterday, 10:45 AM | ||
Started by jxs_xrj, 01-12-2020, 09:49 AM
|
4 responses
3,288 views
1 like
|
Last Post
by jgualdronc
Today, 10:02 AM
|
||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by halgo_boulder, 04-20-2024, 08:44 AM
|
2 responses
22 views
0 likes
|
Last Post Today, 09:41 AM | ||
Started by mishhh, 05-25-2010, 08:54 AM
|
19 responses
6,189 views
0 likes
|
Last Post
by rene69851
Today, 09:29 AM
|
Comment