Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

SuperTrend indicator for Stock Finder5 Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
JackSe
Posted : Wednesday, December 10, 2014 2:04:19 PM
Registered User
Joined: 2/17/2014
Posts: 11

Hello,

has anyone come across SuperTrend indicator for Stock Finder5? As far as I know (have asked support) there is no such indicator in standard package.

Any idea who can create it? How much?

I have Ninja script ready -pehapse it can be easily fransformed?

 

Looking forward to comments

 

Thank you!

 

BR,

Jacek

 

 
Bruce_L
Posted : Wednesday, December 10, 2014 2:11:08 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

No guarantees, but if you post the code you want converted, I'll take a look.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Java56
Posted : Tuesday, November 1, 2016 12:41:39 AM
Platinum Customer Platinum Customer

Joined: 2/20/2007
Posts: 83

Bruce if you have the time, I would love to see how you code a Supertrend indicator,

This is an Amibroker formula for the Supertrend.  Can you convert it? 

BTW I really enjoy stockfinder.  I have looked to see if I can find a replacement in case it breaks, well I haven't so far.

Here is the formula:

 

_SECTION_BEGIN("ATRtrading");
period = Param("Period", 13, 1, 240, 1);
mult = Param("Multiplier", 1.7, 1, 240, 0.1);

f=ATR(period);

VS[0] = Close[0];
trend[0] = 0;
HighC[0]=0;
Lowc[0]=0;

for( i = period+1; i < BarCount; i++ )
{

vs[i] = vs[i-1];
trend[i] = trend[i-1];
highC[i] = HighC[i-1];
lowc[i] = lowc[i-1];

if ((trend[i]>=0) && ( C[i] <VS[i] ))
{
trend[i] =-1;
HighC[i] = C[i];
lowc[i] = C[i];
}

if ((trend[i]<=0) && ( C[i] >VS[i] ))
{
trend[i]=1;
HighC[i] = C[i];
lowc[i] = C[i];
}

if (trend[i]==-1)
{
if (C[i]<lowc[i]) lowc[i] = C[i];
VS[i]= lowc[i]+ (mult*f[i]);
}


if (trend[i]==1)
{
if (C[i]>HighC[i]) HighC[i] = C[i];
VS[i]= HighC[i]-(mult*f[i]);
}

}



Buy=Cross(Trend,0);
Sell=Cross(0, Trend);

Plot(Close,"Close",colorBlue,styleCandle);
Plot(VS, "Vol Stop",IIf(trend==1,10,11 ),styleThick);

mkol = IIf( Trend==1, 10, 11);
Plot(5, "ribbon", mkol, styleOwnScale|styleArea|styleNoLabel, 0, -5); // Weekly trend

shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low-f, High+f));
_SECTION_END();
 

 

Thanks

 

Java56

Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.