Close Menu
MoneyFit 365MoneyFit 365
  • Passive Income
  • Money Making
  • Online Business
  • Learn Marketing
  • Learn Trading
  • Side Hustle
Facebook X (Twitter) Instagram
Facebook X (Twitter) Instagram
MoneyFit 365MoneyFit 365
Login
  • Passive Income
  • Money Making
  • Online Business
  • Learn Marketing
  • Learn Trading
  • Side Hustle
MoneyFit 365MoneyFit 365
Learn Trading

CM Williams VIX FIX Pinescript on Amibroker AFL

MoneyFit 365By MoneyFit 365January 28, 2024No Comments
Cm Williams Vix Fix Pinescript On Amibroker Afl

Rajandran R Follow along
Telecom Engineer turned full time Derivatives Trader. Mainly Trading Nifty, Banknifty, USDINR and High Liquid Stock Derivatives. Trading in the markets Since 2006. Using the market profile and order flow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. I strongly believe that market understanding and strong trading frameworks are key to trading success. Write about Markets, Trading System Design, Market Sentiment, Trading Software & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

January 26, 2024

1 minute reading

We thought about converting some of the top pinescript codes to Amibroker AFL code. So start with CM Williams VIX FIX with 51,000+ ratings for this indicator. CM Williams Vix Fix Indicator”, which includes the calculation of a Williams Vix Fix (WVF), a standard deviation and Bollinger Bands

Charts Nifty CM Williams VIX FIX

Tradingview Pinescript Code

study("CM_Williams_Vix_Fix", overlay=false)
pd = input(22, title="LookBack Period Standard Deviation High")
bbl = input(20, title="Bolinger Band Length")
mult = input(2.0    , minval=1, maxval=5, title="Bollinger Band Standard Devaition Up")
lb = input(50  , title="Look Back Period Percentile High")
ph = input(.85, title="Highest Percentile - 0.90=90%, 0.95=95%, 0.99=99%")
pl = input(1.01, title="Lowest Percentile - 1.10=90%, 1.05=95%, 1.01=99%")
hp = input(false, title="Show High Range - Based on Percentile and LookBack Period?")
sd = input(false, title="Show Standard Deviation Line?")

wvf = ((highest(close, pd)-low)/(highest(close, pd)))*100

sDev = mult * stdev(wvf, bbl)
midLine = sma(wvf, bbl)
lowerBand = midLine - sDev
upperBand = midLine + sDev

rangeHigh = (highest(wvf, lb)) * ph
rangeLow = (lowest(wvf, lb)) * pl


col = wvf >= upperBand or wvf >= rangeHigh ? lime : gray


plot(hp and rangeHigh ? rangeHigh : na, title="Range High Percentile", style=line, linewidth=4, color=orange)
plot(hp and rangeLow ? rangeLow : na, title="Range High Percentile", style=line, linewidth=4, color=orange)
plot(wvf, title="Williams Vix Fix", style=histogram, linewidth = 4, color=col)
plot(sd and upperBand ? upperBand : na, title="Upper Band", style=line, linewidth = 3, color=aqua)

Here is the Converted CM Williams VIX FIX Code – Amibroker AFL Code

//Coded by Rajandran R (Founder - Marketcalls)
//Website - www.marketcalls.in
//Date : 26th Jan 2024

_SECTION_BEGIN("CM_Williams_Vix_Fix");

// Input Parameters
pd = Param("LookBack Period Standard Deviation High", 22, 1, 100, 1);
bbl = Param("Bolinger Band Length", 20, 1, 100, 1);
mult = Param("Bollinger Band Standard Devaition Up", 2.0, 1, 5, 0.1);
lb = Param("Look Back Period Percentile High", 50, 1, 100, 1);
ph = Param("Highest Percentile", 0.85, 0.01, 0.99, 0.01);
pl = Param("Lowest Percentile", 1.01, 1.01, 1.10, 0.01);
hp = ParamToggle("Show High Range", "No|Yes", 0);
sd = ParamToggle("Show Standard Deviation Line", "No|Yes", 0);

// Williams Vix Fix calculation
wvf = ((HHV(C, pd) - L) / (HHV(C, pd))) * 100;

// Standard Deviation and Bollinger Bands
sDev = mult * StDev(wvf, bbl);
midLine = MA(wvf, bbl);
lowerBand = midLine - sDev;
upperBand = midLine + sDev;

// Range Calculation
rangeHigh = (HHV(wvf, lb)) * ph;
rangeLow = (LLV(wvf, lb)) * pl;

// Color Conditions
col = IIf(wvf >= upperBand OR wvf >= rangeHigh, colorLime, colorGrey40);

// Plotting
if(hp)
{
    Plot(rangeHigh, "Range High Percentile", colorOrange, styleLine | styleThick);
    Plot(rangeLow, "Range Low Percentile", colorOrange, styleLine | styleThick);
}

Plot(wvf, "Williams Vix Fix", col, styleHistogram | styleThick);

if(sd)
{
    Plot(upperBand, "Upper Band", colorAqua, styleLine | styleThick);
}

_SECTION_END();

Related

AFL Amibroker FIX Pinescript VIX Williams
MoneyFit 365
  • Website

Related Posts

Emini will probably rally this week.

April 16, 2024

The Weekly Trade Plan: Top Stock Ideas & Depth Execution Strategy – Week of April 15, 2024

April 15, 2024

A Noob’s Guide to SGB Transfers from One Demat Account to Another Deposit (CDSL to CDSL)

April 14, 2024

Leave A Reply Cancel Reply

Categories
  • Business News (139)
  • Learn Marketing (91)
  • Learn Trading (114)
  • Money Making (77)
  • Online Business (70)
  • Passive Income (106)
  • Side Hustle (63)
© 2025 MoneyFit 365. All Rights Reserved
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions
  • Disclaimer

Type above and press Enter to search. Press Esc to cancel.

Sign In or Register

Welcome Back!

Login to your account below.

Lost password?