Welcome to the Traders Laboratory Forums.
Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.

Reply
Volatility Stops Indicator Details »»
Volatility Stops Indicator
Platform: 8.2, by ephi144 ephi144 is offline
Developer Last Online: Sep 2011 Show Printable Version Email this Page

Platform: Tradestation Rating:
Released: 11-09-2008 Last Update: Never Installs: 1
 
No support by the author.

Hi Guys,

I am JUST learning about vol stops. I found this code on line and do not claim it to be written by me nor claim any liability or credit. I am in learning process and hope that either if this code has already been posted it will revive the vol stop related chat or others will point me to right direction as to whether this is a good strategy or it needs to be tweaked or replaced.

{Indicator Volatility Stops}

INPUT: LENGTH (21), CONST(3.05);

vaR: SWITCH(1), TR(0), ARC(0), SAR(0),HISIC(0),LOSIC(0);

TR= VOLATILITY (LENGTH);
ARC= TR* CONST;
IF CURRENTbar = length then begin
hisic=c;
losic=c;
if h>= xaverage (h,length-1) [1] then begin
hisic= highest(c,length);
Sar=hisic-arc;
switch= 1;
end;
if l <= xaverage (l,length-1) [1] then begin
losic= lowest (c,length);
sar = losic +arc;
switch=0;
end;
end;

if switch =1 then begin
if c>hisic then hisic=c;
sar=hisic - arc;
if c< sar then begin
switch=0;
losic=c;
sar = losic + arc;
end;

end;
if switch=0 then begin
if c< losic then losic=c;
sar= losic +arc;
if c> sar then begin
switch=1;
hisic=c;
saR=HISIC- ARC;
END;
END;

IF C > SAR { AND C[1] < SAR } THEN

Plot1(SAR,"Sell");

IF C < SAR { AND C[1] > SAR} THEN

Plot2(sar,"Buy");

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without the author's permission.
The Following User Says Thank You to ephi144 For This Useful Post:

Reply

Thread Tools
Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debate: Hard stops or mental stops? Soultrader Technical Analysis 24 12-10-2011 11:51 AM
Volatility & the Recession. Is Volatility Here to Stay for Some Time Yet? JT1 Market Analysis 14 01-07-2009 05:19 PM
Chaikin's Volatility Indicator Needed TipsyTzar Coding Forum 4 12-01-2008 02:25 AM
Entering On Buy-Stops/Sell-Stops Dogpile Futures Trading Laboratory 10 11-29-2007 11:02 AM
Using smart stops instead of trailing stops Soultrader E-mini Futures Trading Laboratory 6 10-16-2007 09:07 PM

All times are GMT -4. The time now is 10:52 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.