NexusFi: Find Your Edge


Home Menu

 





RISK_VIX Inverted


Discussion in NinjaTrader

Updated
    1. trending_up 1,634 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 jmagaia 
Porto Portugal
 
Experience: Intermediate
Platform: IB
Trading: Stocks
Posts: 15 since Mar 2012
Thanks Given: 9
Thanks Received: 3

Hi!

This a indicator for TOS.
What I see is we can use this signal together with others it is a good material for stay long in Index, like SPY.
I remmeber together for example with Coppock etc..

Some one can do this Indicator?


Quoting 
RISK_VIX ---- is Inverted. Stoch/RSI using MetaStock's formula for Stochastics. March 31, 2012
# MetaStock formula compliments of Joe Dupcak
# Line changes color to Red when it has moved at least 10 points above its lowest level over the last 15 periods. Compliments of Richard Houser
# AddLabel compliments of Larry Thompson
# Always calculates off of VIX data regardless of what security is being charted

declare lower;

plot Scriptlabel = double.nan;
Scriptlabel.SetDefaultColor( CreateColor( 0, 0, 51 ) );

Input Symb = "VIX";
Input length = 21;
Input smooth = 13;
Input RSILength = 14;
input risk_len = 15;
input risk_range = 10.0;

def Vc = Close(Symb);
def LLV = Lowest(Low(Symb), length);
def HHV = Highest(High(Symb), length);
def A = sum(Vc - LLV, smooth);
def B = Sum(HHV - LLV, smooth);
def StochMetaStock = 100 * A / B;

def RSI = reference RSIWilder(length = RSILength, price = Close(Symb));

# 100 - ( ) below is what Inverts the line
def data =100- (StochMetaStock + RSI ) /2;
plot Risk = data;

def risk_LLV = Lowest( data, risk_len );
def risk_color = if data >= ( risk_LLV + risk_range ) and data < 55 then yes else no;

addlabel(yes,"RISK VIX " + Round(Risk,2),color.YELLOW);

Risk.DefineColor( "riskUp", Color.RED );
Risk.DefineColor( "riskFlat", Color.CYAN );
Risk.AssignValueColor( if risk_color then Risk.color( "riskUp" ) else Risk.color( "riskFlat" ) );

plot lowLine = 45;
lowLine.SetPaintingStrategy(PaintingStrategy.LINE);
lowLine.SetDefaultColor(createColor( 255, 100, 100 ));
lowLine.SetLineWeight(1);
lowLine.HideBubble();

plot hiLine = 60;
hiLine.SetPaintingStrategy(PaintingStrategy.LINE);
hiLine.SetDefaultColor(createColor( 102, 102, 255 ));
hiLine.SetLineWeight(1);
hiLine.HideBubble();

Some one can see how work this indicator here:
Gauging RISK In The Stock Market

Thanks


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
Iran Peace Expired NO: Ceasefire on Life Support, OPEC a …
Prediction Markets & Event Contracts
Post-Summit Scorecard: $36M in May 15 Bets Settle Near-Z …
Prediction Markets & Event Contracts
Warsh Opens Today, Hormuz June 19 -- WTI Below $80, Fran …
Prediction Markets & Event Contracts
World Cup Opens: USA at 45.5% Tonight as Markets Push Ba …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks




Last Updated on March 5, 2014


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts