Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Thinkscript Volatility Indicator
Updated November 29, 2010
trending_up
10,095 views
thumb_up
1 thanks given
group
2 followers
forum
4 posts
attach_file
0 attachments
Thinkscript Volatility Indicator
September 9th, 2010, 07:15 PM
Daly City, California, USA
Posts: 18 since Sep 2010
This is my first post, and I want to be useful and helpful.
I've taken a thinkscripter indicator and modified it slightly.
It's pretty simple - it gives unequivocal long and short signals.
I think it's pretty accurate as is, but can be improved upon.(I'm not a programmer.)
Cheers!
--------------------------------------------------------------------------------------------
declare lower;
input period = 22;
def WVF = (Highest(close, period) - low) / (Highest(close, period)) * 100;
input BBlength = 20;
input BBNum_Dev_Dn = -2.0;
input BBNum_Dev_up = 2.0;
def sDev = stdev(data = WVF, length = BBlength);
def MidLine = Average(data = WVF, length = BBlength);
def LowerBand = MidLine + BBnum_Dev_Dn * sDev;
def UpperBand = MidLine + BBnum_Dev_Up * sDev;
##################
def price = close;
def moses = 1- expaverage(price -wvf) ;
##################
plot golong = if((wvf <=lowerband and moses<=0), (1- moses), 0);
plot goshort = if(wvf >= upperband, (moses -1),0);
plot zero = 0;
golong.SetDefaultColor(color.cyan);
golong.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
goshort.SetDefaultColor(color.red);
goshort.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
addcloud(golong, zero);
addcloud(goshort, zero);
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
September 9th, 2010, 07:17 PM
Daly City, California, USA
Posts: 18 since Sep 2010
The original is called the Williams Vix Fix and can be found at the thinkscripter website.
(I can't post links yet.)
September 9th, 2010, 10:53 PM
Daly City, California, USA
Posts: 18 since Sep 2010
This version does a pretty good job of indicating trend: --------------------------------------------
Code
declare lower ; input period = 22 ; def WVF = ( Highest ( close , period ) - low ) / ( Highest ( close , period )) * 100 ; input BBlength = 20 ; input BBNum_Dev_Dn = - 2.0 ; input BBNum_Dev_up = 2.0 ; def sDev = stdev ( data = WVF , length = BBlength ); def MidLine = Average ( data = WVF , length = BBlength ); def LowerBand = MidLine + BBnum_Dev_Dn * sDev ; def UpperBand = MidLine + BBnum_Dev_Up * sDev ; ################## def down1 = upperband - wvf ; def up1 = wvf - lowerband ; plot down = if( down1 > up1 , expaverage ( down1 ), 0 ); plot up = if( up1 > down1 , expaverage ( up1 ), 0 ); down . SetDefaultColor ( color . green ); down . SetPaintingStrategy ( PaintingStrategy . HISTOGRAM ); up . SetDefaultColor ( color . red ); up . SetPaintingStrategy ( PaintingStrategy . HISTOGRAM );
November 29th, 2010, 04:29 PM
New Braunfels, TX
Experience: Intermediate
Platform: NinjaTrader
Broker: Zen-Fire
Trading: futures
Posts: 129 since Aug 2009
Thanks Given: 924
Thanks Received: 21
tosmonkey
This is my first post, and I want to be useful and helpful.
I've taken a thinkscripter indicator and modified it slightly.
It's pretty simple - it gives unequivocal long and short signals.
I think it's pretty accurate as is, but can be improved upon.(I'm not a programmer.)
Cheers!
--------------------------------------------------------------------------------------------
declare lower;
input period = 22;
def WVF = (Highest(close, period) - low) / (Highest(close, period)) * 100;
input BBlength = 20;
input BBNum_Dev_Dn = -2.0;
input BBNum_Dev_up = 2.0;
def sDev = stdev(data = WVF, length = BBlength);
def MidLine = Average(data = WVF, length = BBlength);
def LowerBand = MidLine + BBnum_Dev_Dn * sDev;
def UpperBand = MidLine + BBnum_Dev_Up * sDev;
##################
def price = close;
def moses = 1- expaverage(price -wvf) ;
##################
plot golong = if((wvf <=lowerband and moses<=0), (1- moses), 0);
plot goshort = if(wvf >= upperband, (moses -1),0);
plot zero = 0;
golong.SetDefaultColor(color.cyan);
golong.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
goshort.SetDefaultColor(color.red);
goshort.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
addcloud(golong, zero);
addcloud(goshort, zero);
Has this indicator been programmed in NinjaTrader by anyone? If not would it be possible?
Thanks,
eensor
Last Updated on November 29, 2010