New! WiseTrader Toolbox for Amibroker is now available with:
  • Advanced Adaptive Indicators
  • Advanced Pattern Exploration
  • Neural Networks
  • And Much More...
GoTo WiseTrader Toolbox

Contribute

Contribute an indicator to the library by clicking here. Note you must be logged in.

Sponsors

Popular Indicators

Schaff Trend Cycle for Amibroker (AFL)

5 / 5 (Votes 1)

Code is an Amibroker port of the EasyLanguage TradeStation Schaff Trend Cycle code
Description of indicator and EasyLanguage code can be found here

Here is a screenshot of how the indicator looks:
Schaff

Similar Formulas

Sponsor Links

Formula

7 Comments

How to get buy sell signals using this trend cycle

Hi mahesh please check my post in the forum here

3. chan123

This looks like simple but it shows definite trend and is very useful in 5 min. chart. Pls. provide the details about to get buy sell signals using this trend cycle. The link above posted by admin. is not found. chan6123@gmail.com

Hi,
Admin the link is not available.
Would you be kind enough to repost the matter here if possible ?
So it will be a permanent record at this place.

Sorry to bother you,

Regards,

cnbondre

Hello,

I have re-posted the information in the resources section of the forum.

6. niladri

Schaff Trend Cycle (STC) oscillates in between 0 and 100 scale.
The 25 level is called a Buy level, the 75 – a Sell level.
The default settings for STC are (10, 23, 50).

Buy Entry:
1. While indicator stays below the 25 – the downtrend is in progress.

2. Once it crosses up above the 25 level – it’s the first warning of a changing trend:
place a pending Buy order above the corresponding candle on a chart.

3. Wait for the Buy order to be filled. If the order is not filled, and the price continues lower – not a problem. Keep the pending order further while observing Schaff Trend Cycle behavior and new signals.

Opposite true for Sell entries, where the indicator has to cross the 75 level down to send a signal about a trend change setup.

7. niladri

Here is a jitter free STC code ( using Weighted Moving average & smoothing ):

/* Schaff Trend Cycle

Schaff is nothing more than a stochastic of a MACD i.e.

X = EMA; // Chose the type of Moving Average
Y = EMA;

XY = X – Y;

LLXY = LLV;
HHXY = HHV;

Schaff = 100 * (XY – LLXY) / (HHXYLLXY);

*/

SetChartOptions(0,chartShowArrows|chartShowDates);
SetChartBkColor(ParamColor(“Outer panel”,colorDarkOliveGreen));

pdsCy=Param(“Schaff cycle periods”,10,2,40,1);
pdsSh=Param(“Short periods”,23,2,60,1);
pdsLg=Param(“Long periods”,50,2,200,1);

MCD=WMA-WMA; // Using Weighted Moving Average
ST=(MCD-LLV)/(HHV-LLV)*100;
STC=WMA;

Plot(STC,“Schaff Trend Cycle”,colorRed,styleLine|styleThick);

Plot(70,"",colorBlue,1);
Plot(30,"",colorYellow,1);

Please login here to leave a comment.

Main Menu

Indicators

Sponsors