Home
    Product
    Support
    Purchase
    Company

Advanced trading software with proprietary analytics and artificial intelligence

Support Center
Publications
Tradecision FAQs
Improvian Consulting
Contact Support Team
Knowledgebase
Collection of Indicators
Custom Indicators
Custom Studies
TASC Traders' Tips
Active Trader Strategies
Golden Trading Rules
Trader’s Quiz

Traders' Tips from TASC Magazine
Trailing Resistance &nd Support Stops

In his article "Trailing Resistance &nd Support Stops", the final part of a three-part series, Sylvain Vervoort has demonstrated a method of using a short-term trailing stop that moves close to the price action and is based on a trailing resistance & support stop that looks directly at the price movement.

Using the Function Builder, you create the SVE_TRENDS_Trail function for a Trailing Resistance and Support Stop:

function (Period:numeric=5,atrfact:Numeric=3.5):Numeric;

var

 HiLo:=0;

 Href:=0;

 Lref:=0;

 diff1:=0;

 diff2:=0;

 atrmod:=0;

 loss:=0;

 result:=0;

 support:= 0;

end_var

 

   HiLo:=iff(H - L < 1.5 * Mov(H - L, period, S), 
   H - L, 1.5 * Mov(H - L, period, S));

   Href:=iff(L <= Ref(H, -1), H - Ref(C, -1), 
   (h - ref(C, -1)) - (L - Ref(H, -1)) / 2);

   Lref:=iff(H >= Ref(L, -1), Ref(C, -1) - L, 
   (Ref(C, -1) - L) - (Ref(L, -1) - H) / 2);

 

   diff1:=Max(HiLo, Href);

   diff2:=Max(diff1, Lref);

 

   atrmod:=EMA(diff2,period);

   loss:=atrfact*atrmod;

 

   support := iff(L >= Ref(L, -2) 
   and Ref(L, -1) >= Ref(L, -2) 
              and Ref(L, -3) >= Ref(L, -2) 
              and Ref(L, -4) >= Ref(L, -2),

              Ref(L, -2), iff(L >Ref(H, -1) * 1.0013, 
              Ref(H, -1) * 0.9945, 
              iff(L > this\1\ * 1.1, this\1\ * 1.05, 
              this\1\)));

 

if HISTORYSIZE <= period then result := C;

else

 begin

   if C > this\1\ AND C\1\ > this\1\  
   then result := Max(this\1\,support);

   else

   begin

      if C < this\1\ then result := Min(this\1\,C+loss);

      else

      begin

         if C > this\1\ then result := support;

               else result := C+loss;

      end;

   end;

 end;

return result;
Then you specify the strategy rules in Tradecision's Strategy Builder:
Entry Long:

if Date() = 080102 then return true;

return false;

 

Exit Long:

return CrossBelow(SVE_TRENDS_Trail(5,3.5),C);

Entry Short:

if Date() = 081201 then return true;

return false;

 

Exit Short:

return CrossAbove(SVE_TRENDS_Trail(5,3.5),C);

You need to enter the starting date manually as mentioned in the article. To define Date(), use a numeric value in the YYMMDD format. Date returns 080102 if the day is January 2nd, 2008.



Download to import into Tradecision.

How to use this indicator in Tradecision:
  1. Click Download.
  2. Save this indicator in a safe location on your hard drive.
  3. Open Tradecision and in the Tools menu click Indicator Builder.
  4. In the Indicator Builder dialog, click Import, locate the saved file and then click OK.
The indicator will be added to the Custom Indicators list.
 
Smoothing The Bollinger %b
Modified Volume- Price Trend Indicator
Empirical Mode Decomposition
The 350 Swing Trade
The Vortex Indicator
Making The Most Of A Trend With The Disparity Index
A Seasonal System For Soybean Futures
Volume-Weighted Macd Histogram
Pivot Detector Oscillator, Simplified
Combining DMI and Moving Average for a EUR/USD trading system
Trailing Resistance &nd Support Stops
Average True Range Trailing Stops
Using Initial Stop Methods
Profit With High Relative Strength Mutual Funds
Trading Trendline Breaks, part 2
Building A Trading Template
Volume Price Confirmation Indicator
Rectangles
Trongone moving average (TMA)
Adjusted Rate of Change
MA crossovers, part 2
MA crossovers
The Fourier indicator
Stochastics with Long Term EMA filter strategy
Active Trendline Indicator
Relative Spread Strength Indicator
Trading With An Adaptive Price Zone
Modeling the Market = Building Trading Strategies
The Wilson Relative Price Channels
Harnessing The (Mis)Behavior Of Markets
Cross-Market Evaluations with Normalized Average True Range
The Average Peak Excursion
Trading Trends With Bollinger Bands Z (BBZ)
The Self-Adjusted RSI
Swiss Army Knife Indicator
Directional Down
Directional Up
Volatility Profit Indicator
Volatility Trailing Stop Indicator
Trend Trigger Factor
TRsV
Normalized RSI with IFT
Linear Regression Reversal Indicator
Bull and Bear Balance Indicator
Regularized EMA
FVE - lin reg slope
Laguerre Filter
Laguerre RSI
Deviation Oscillator
Average True Range Bands HA line
Average True Range Bands LA line
Elastic Volume Weighted Moving Average
Standard Deviation Bands H line
Standard Deviation Bands L line
Ehlers Filters
Buff Up Your Moving Averages
Balance of Market Power
Breakout Range 2
TargetPrice
Modified Moving Average
Stochastics D
Stochastics K
Tradecision Reviews
Video Tours
Discussion Boards
Chat with a live Rep
Ask a question
(510) 931 7808

Site Map   |   Terms of Use   |   Privacy Policy   |   Risk Warning
Forex, equities or futures trading involves substantial risk of loss and is not suitable for all investors.
Copyright © 2001-2010 Alyuda Research.  All rights reserved