we had "Easter" in Germany, time for my family. Searching eggs with my little daughter was more important to me.
I start to code the volume into to indicator. but i m not sure if increasing the tickvolume could says us if the singal good or not. So i read something about VSA Volume Spread Analyse and i take the following rule to filter out signals, not only increasing the volume.
- Code: Select all
local Range1 = source.high[p-1] - source.low[p-1];
local Range2 = source.high[p-2] - source.low[p-2];
local Vol1 = source.volume[p-1];
local Vol2 = source.volume[p-2];
if Range1 > Range2 then
if (Vol1 > Vol2) then
if source.high[p - 1] - source.close[p - 1] < source.close[p - 1] - source.low[p - 1] then
dir ="LONG";
elseif source.high[p - 1] - source.close[p - 1] > source.close[p - 1] - source.low[p - 1] then
dir ="SHORT";
end
end
end
i also take attention to the spread(H-L) and the tickvolume.
If the Spread is increasing and the volume too, then we take a look to the positon of the closevalue regarding the high and low of the candle.
If the close is closer to the high of the candle increasing spread and volume indicates more buying pressure.
If the close is closer to the low, then we have more selling pressure.
Please check the Ichimoku Meter with Volume if it is better.