Wyckoff v1.3: Effort vs ResultThis script helps a trader know the actions of smart money - clearly differentiating between valid and in-valid price moves. It is a not script that'll give you buy/sell signals, but in a very Wyckoff way give you the essentials of tape reading of the current chart.
Code Algo: From current candle to previous N candles (N is variable), it calculates a parameter called R = (high-low)/volume; for each candle, hence forming a distribution of R's. Hence, parameter R takes into account the price-volume relationship together, combined which is paramount for Wyckoff reading. Then it calculates mean (M) and standard deviation (sigma) of all those R's. Hence, M denotes the regular price movements expected from a given volume, which will also be a 'valid' move. Then we calculate ranges M-x*sigma and M+x*sigma (where x is a constant) for 3 values of x: 0.5, 1.5 and 2.2. These ranges give us deviations from M, split into 3 different levels. 1st range (E1) is closer to M, 2nd range (E2) is slightly more deviated from M, 3rd range (E3) includes large deviations and 4th range (E4) gives us largest deviations (highest Wyckoff invalidation). Henceforth, we can assess the current candles R value and check which range does it fall into. This gives us the validation degree of this current candle's move in perspective of how the market behaved previously. We assign symbol '+' for this current candle if R>M (hence showing exhaustion) or '-' if R
Индикатор Pine Script®






















