Help with converting ToS script into Easylanguage (Volatility/STDeviation Indicators) - futures io
futures io futures trading



Help with converting ToS script into Easylanguage (Volatility/STDeviation Indicators)


Discussion in EasyLanguage Programming

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Help with converting ToS script into Easylanguage (Volatility/STDeviation Indicators)

(login for full post details)
  #1 (permalink)
Canada
 
 
Posts: 1 since Jan 2014
Thanks: 0 given, 0 received

Hello guys, these are a few simple indicators that I use on ToS. Can anyone help me to convert it into easylanguage? thanks alot!

declare lower;
input length = 10;
input averageType = AverageType.SIMPLE;
def strat = close("VIX")/close("VXV");
plot MovAvg = MovingAverage(averageType,strat,length);
MovAvg.SetPaintingStrategy(PaintingStrategy.LINE);
MovAvg.AssignValueColor(if MovAvg < 0.92 then color.Green else color.RED);
alert(MovAvg > 0.92, "VIX/VXV ratio is over 0.92! Current value is" + MovAvg, alert.bar, Sound.Ring);

-----------------------------------------------------------------------------------

declare lower;
input length = 10;
input lookback = 15;
input averageType = AverageType.SIMPLE;
def ratioa = close("VIX") / close("VXV");
def MovAvga = MovingAverage(averageType, ratioa, length);
def ratiob = close("VIX")[lookback] / close("VXV")[lookback];
def MovAvgb = MovingAverage(averageType, ratiob, length);

plot direction = MovAvga / MovAvgb - 1;

direction.setpaintingStrategy(PaintingStrategy.HISTOGRAM);
direction.AssignValueColor(if direction < 0 then Color.GREEN else Color.RED);
# alert(MovAvg < 0.93, "VXV/VIX ratio is under! Current value is" + MovAvg, alert.bar, Sound.Ring);

---------------------------------------------------------------------------------------
declare lower;
input length = 21;
def closeLog = Log(close[1] / close[2]);
def SDev = stdev(closeLog, length)* Sqrt(length / (length 1));
def m= SDev * close[1];
plot spike = (close[0] close[1]) / m;
spike.setPaintingStrategy(PaintingStrategy.HISTOGRAM);
spike.AssignValueColor(if close > close[1] then Color.UPTICK else if close < close[1] then Color.DOWNTICK else GetColor(1));
def currentSpike = (AbsValue(close close[1])) / m;
Alert(currentSpike >= 1.0, "Spike >= 1.0!", Alert.TICK, Sound.Chimes);

Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on futures io
Selling Options on Futures?
109 thanks
Battlestations: Show us your trading desks!
108 thanks
Rank your Futures vs Stocks trading priority
55 thanks
Want your NinjaTrader indicator created, free?
27 thanks
Whats this confusion with margins?
21 thanks


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Help with converting ToS script into Easylanguage (Volatility/STDeviation Indicators)


Last Updated on January 11, 2014


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts