Author: Jon Katana

This tool is designed to provide a comprehensive visual map of potential price levels based on the historical volatility of the market. Instead of relying on traditional indicators that follow current price trends, this script analyzes the "range" of previous price action to project a series of symmetrical boundaries both above and below the current market position.

How the Logic Works

1. Volatility Calculation The core engine begins by scanning a specific number of past candles (determined by the "BarStep" setting). It measures the distance between the highest and lowest points of each candle in that period. By averaging these distances, the tool establishes a baseline value for how much the asset typically moves.

2. Dynamic Level Projection Using that average movement as a building block, the script generates a massive grid of horizontal lines. It calculates "multiples" of the volatility:

  • Upper Levels: The script projects price targets upward by multiplying the average volatility by increasing increments (from 1 up to over 2,500 levels).
  • Lower Levels: Simultaneously, it projects an equal number of levels downward.

3. Visual Representation The tool automatically populates your chart with two types of visual data:

  • Dotted Lines: These serve as the physical boundaries on your chart, helping you see the "ceiling" and "floor" zones for different volatility multipliers.
  • Price Labels: Beside these lines, the script places text labels that show the exact price value for each level, making it easy to identify specific target prices at a glance.

4. Real-Time Scaling Because the levels are based on a calculation of average movement, the entire grid is dynamic. If market volatility changes, the spacing between the lines will adjust accordingly. Additionally, the tool includes a "VolStep" display on the screen, which tells you exactly how much "room" the market is currently moving in terms of price points.

Summary for the User

In simple terms, this script takes the recent "heartbeat" of the market and uses it to draw a giant architectural blueprint of possible prices. It allows you to see where the market might react based on its own historical behavior, providing a wide-angle view of potential support and resistance across a massive range of price points.

11 Views
0 Downloads
0 Favorites
Vollev
// Vollev v26.03.10
#property copyright "Jon Katana"
#property indicator_chart_window
double U, D, S, s, v;
int Levels = 2584;
int FontSize = 7;
extern color FontColor = White;
extern color LineColor = Silver;
int i, z, b=0;
int Dig;
extern int BarStep=74;
extern int DigStep=0;
int init()
{
}
int start()
{
Dig=Digits-DigStep;
for(z=0; z<Levels; z++)
{
for (i=BarStep; i>0; i--) 
{
if(BarStep>Bars) i=Bars;

s+=(High[i]-Low[i]);
b++;
}
v=s/b;
U = NormalizeDouble  ( (v*z), Dig);
if(ObjectFind("U"+z) != 0)
{ObjectCreate("U"+z, OBJ_TEXT, 0, Time[0], U);
ObjectSetText("U"+z, "                                                         " + DoubleToStr(U, Digits) + "", FontSize, "Arial", FontColor);}
else {ObjectMove("U"+z, "                                                         " + U + "", Time[0], U);}
if(ObjectFind("U Line"+z) != 0)
{ObjectCreate("U Line"+z, OBJ_HLINE, 0, Time[0], U);
ObjectSet("U Line"+z, OBJPROP_STYLE, STYLE_DOT);
ObjectSet("U Line"+z, OBJPROP_COLOR, LineColor);}
else {ObjectMove("U Line"+z,0, Time[0], U);}
D = NormalizeDouble  ( ((-v)*z), Dig);
if(ObjectFind("D"+z) != 0)
{ObjectCreate("D"+z, OBJ_TEXT, 0, Time[0], D);
ObjectSetText("D"+z, "                                                         " + DoubleToStr(D, Digits) + "", FontSize, "Arial", FontColor);}
else {ObjectMove("D"+z, "                                                         " + D + "", Time[0], D);}
if(ObjectFind("D Line"+z) != 0)
{ObjectCreate("D Line"+z, OBJ_HLINE, 0,0, D);
ObjectMove("D Line"+z,0,0, D);
ObjectSet("D Line"+z, OBJPROP_STYLE, STYLE_DOT);
ObjectSet("D Line"+z, OBJPROP_COLOR, LineColor);}
else {ObjectMove("D Line"+z,0,0, D);}
}
S = NormalizeDouble ( (High[1]-Low[1]), Dig);
{ObjectCreate("S", OBJ_LABEL, 0, 0, 0);
ObjectSet("S", OBJPROP_XDISTANCE, 20);
ObjectSet("S", OBJPROP_YDISTANCE, MathCeil(2*FontSize));
ObjectSetText("S", "VolStep = "+DoubleToStr ( NormalizeDouble (v, Dig)/Point, 0 ), FontSize*2, "Arial", FontColor);}
return(0);}
int deinit()
{for(z=0; z<Levels; z++)
{ObjectDelete("U"+z);
ObjectDelete("U Line"+z);
ObjectDelete("D"+z);
ObjectDelete("D Line"+z);
ObjectDelete("S");}
WindowRedraw();
return(0);}

Comments