StockFetcher Forums · Filter Exchange · Vervoort ATR<< >>Post Follow-up
duke56468
683 posts
msg #94094
Ignore duke56468
modified
6/20/2010 9:48:45 PM

I'm trying to get something that resembles Sylvain Vanvroots ATR stop superimposed on the price. It is 3.5 times the 5 period ATR ........... ATR(5)3.5 . I must be over complicating it. Tried several versions, how do I get it superimposed on the price?

Fetcher[
SYMLIST(DIA,EEM,EFA,EWH,EWJ,EWT,EWZ,FXI,GLD,ILF,IWM,IYR,QQQQ,SPY,XHB,XLB,XLE,XLF,XLI,XLV,IYF,SEF,IEO,DDG,DOG
,SH,MDY,MYY,RWM,IJR,SBB,PSQ,EUM,UUP,UDN,EFA,EFZ)
set{hi5,cma(high,5)}
set{lo5,cma(low,5)}
set{atr5a,hi5-lo5}
set{atr5,atr5a / 2}
set{atr3.5,atr5(3.5)}
draw atr3.5 on plot price
]



Fetcher[

SYMLIST(DIA,EEM,EFA,EWH,EWJ,EWT,EWZ,FXI,GLD,ILF,IWM,IYR,QQQQ,SPY,XHB,XLB,XLE,XLF,XLI,XLV,IYF,SEF,IEO,DDG,DOG
,SH,MDY,MYY,RWM,IJR,SBB,PSQ,EUM,UUP,UDN,EFA,EFZ)
set{hi5,ATR(5)}
set{atr3.5,hi5*3.5}
draw atr3.5 on plot price
]





Kevin_in_GA
4,599 posts
msg #94095
Ignore Kevin_in_GA
6/20/2010 10:03:54 PM

This should be subtracted from the close?

Fetcher[

SYMLIST(DIA,EEM,EFA,EWH,EWJ,EWT,EWZ,FXI,GLD,ILF,IWM,IYR,QQQQ,SPY,XHB,XLB,XLE,XLF,XLI,XLV,IYF,SEF,IEO,DDG,DOG
,SH,MDY,MYY,RWM,IJR,SBB,PSQ,EUM,UUP,UDN,EFA,EFZ)

set{vervoot, ATR(5) * 3.5}
set{trailing, close - vervoot}

draw trailing on plot price
]






duke56468
683 posts
msg #94104
Ignore duke56468
6/21/2010 8:08:57 AM

Thanks Kevin, but the price needs to cross above and below the ATR and act like a stop. Can I get it to do that?

Kevin_in_GA
4,599 posts
msg #94109
Ignore Kevin_in_GA
6/21/2010 9:27:35 AM

Coding these types of stops is not easy - why not use the Chandelier exit? While not exactly what Vervoot is doing, it is basically what you are trying to do. Here's an example:

Fetcher[

symlist(spy,dia,qqqq)

draw chandelier exit(30,3.5)

]



This should give you what you need. I have chosen a look back of thirty days and 3.5 ATR, but you can set it for whatever you want.



duke56468
683 posts
msg #94115
Ignore duke56468
6/21/2010 10:51:29 AM

Thanks Kevin, I've tried various time frames with Chandelier but it isn't very similar. The closest I have come is the "volatility stop" on freestockcharts.com. Apparently I can get Vervoort on the free version of Ninja Trader, but I didn't want to down load yet another soft wear for only one function.
If you feel it is difficult to do, then I know it's over my head.

StockFetcher Forums · Filter Exchange · Vervoort ATR<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.