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 Topic Rating:
Previous Topic · Next Topic Watch this topic · Print this topic ·
MikeRad
Posted : Tuesday, September 30, 2014 7:10:56 AM
Registered User
Joined: 9/15/2011
Posts: 9

Hi - there is no supertrend indicator option on tc2000. is there a pnf or formula to plot one on a chart?

thanks

Bruce_L
Posted : Tuesday, September 30, 2014 11:25:40 AM


Worden Trainer

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

The closest thing we have to a supertrend indicator is the Volatility Stop indicator.

How is the Volatility Stop Calculated

I cannot think of a practical automated method of creating the supertrend indicator in TC2000.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
MikeRad
Posted : Wednesday, October 1, 2014 11:03:02 AM
Registered User
Joined: 9/15/2011
Posts: 9

thanks Bruce.

Gert-Henk
Posted : Saturday, December 13, 2014 12:40:43 PM
Registered User
Joined: 11/3/2014
Posts: 1
Hi, here below i got a file of supertrend can someone please tell me how to use it in freestockcharts.com #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 MediumSpringGreen #property indicator_color2 Red double TrendUp[]; double TrendDown[]; double NonTrend[]; int st = 0; int UpDownShift; extern int TrendCCI_Period = 14; extern bool Automatic_Timeframe_setting; extern int M1_CCI_Period = 14; extern int M5_CCI_Period = 14; extern int M15_CCI_Period = 14; extern int M30_CCI_Period = 14; extern int H1_CCI_Period = 14; extern int H4_CCI_Period = 14; extern int D1_CCI_Period = 14; extern int W1_CCI_Period = 14; extern int MN_CCI_Period = 14; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0, DRAW_LINE, 0, 2); SetIndexBuffer(0, TrendUp); SetIndexStyle(1, DRAW_LINE, 0, 2); SetIndexBuffer(1, TrendDown); switch(Period()) { case 1: UpDownShift = 3; break; case 5: UpDownShift = 5; break; case 15: UpDownShift = 7; break; case 30: UpDownShift = 9; break; case 60: UpDownShift = 20; break; case 240: UpDownShift = 35; break; case 1440: UpDownShift = 40; break; case 10080: UpDownShift = 100; break; case 43200: UpDownShift = 120; break; } //---- return(0); } //+------------------------------------------------------------------+ //| Custor indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit, i, cciPeriod; double cciTrendNow14, cciTrendPrevious14, cciTrendNow, cciTrendPrevious; int counted_bars = IndicatorCounted(); //---- check for possible errors if(counted_bars 0) counted_bars--; limit=Bars-counted_bars; if (Automatic_Timeframe_setting == true) { switch(Period()) { case 1: cciPeriod = M1_CCI_Period; break; case 5: cciPeriod = M5_CCI_Period; break; case 15: cciPeriod = M15_CCI_Period; break; case 30: cciPeriod = M30_CCI_Period; break; case 60: cciPeriod = H1_CCI_Period; break; case 240: cciPeriod = H4_CCI_Period; break; case 1440: cciPeriod = D1_CCI_Period; break; case 10080: cciPeriod = W1_CCI_Period; break; case 43200: cciPeriod = MN_CCI_Period; break; } } else { cciPeriod = TrendCCI_Period; } /*switch(cciPeriod) { case 14: break; }*/ //cciPeriod = TrendCCI_Period; SetIndexLabel(0, ("TrendUp " + cciPeriod)); SetIndexLabel(1, ("TrendDown " + cciPeriod)); for(i = limit; i >= 0; i--) { cciTrendNow = iCCI(NULL, 0, cciPeriod, PRICE_TYPICAL, i) + 70; cciTrendPrevious = iCCI(NULL, 0, cciPeriod, PRICE_TYPICAL, i+1) + 70; //cciTrendNow50 = iCCI(NULL, 0, 50, PRICE_TYPICAL, i) + 70; //cciTrendPrevious50 = iCCI(NULL, 0, 50, PRICE_TYPICAL, i+1) + 70; if (cciTrendNow > st && cciTrendPrevious st) { TrendDown[i+1] = TrendUp[i+1]; //TrendUp[i] = EMPTY_VALUE; } if (cciTrendNow > 0) { TrendUp[i] = Low[i] - Point*UpDownShift; TrendDown[i] = EMPTY_VALUE; if (Close[i] Open[i] && TrendDown[i+1] != TrendUp[i+1]) { TrendDown[i] = TrendDown[i+1]; } if (TrendDown[i] > TrendDown[i+1] && TrendDown[i+1] != TrendUp[i+1]) { TrendDown[i] = TrendDown[i+1]; } if (Low[i] > Low[i+1] && TrendUp[i+1] != TrendDown[i+1]) { TrendDown[i] = TrendDown[i+1]; } } } //---- //---- return(0); } //+------------------------------------------------------------------
Bruce_L
Posted : Saturday, December 13, 2014 12:53:32 PM


Worden Trainer

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

There is no way to implement that code in either FreeStockCharts.com or TC2000.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
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.