// Downloaded From https://www.WiseStockTrader.com
#include <vstop_proc.afl>

SetBarsRequired(-2,-2);

per = 20;
mult = 2;
tr = mult * ATR(14);

vstop_proc(tr,per);

GraphXSpace = 5;
SetChartOptions(0, chartShowDates);
Plot(trailLong,"trailLong",colorBrightGreen,styleStaircase);
Plot(trailShort,"trailShort",colorOrange,styleStaircase);

Plot( C, "Price", colorWhite, styleCandle );