Re: Range bars (RB)
Posted: Sun Feb 26, 2012 10:55 pm
Why is the range bars still time dependent? I thought it was designed to cut out 'noise' as most articles I have read suggest that it is ime independent.
Your last stop on a way to find a fast growing community of forex traders and software developers. Best forex charts indicators are available here for download. Custom development of indicators and translation to .LUA is also available on request.
http://fxcodebase.com/code/
indicator:requiredSource(core.Bar);
function TEST(i)
local FLAG= true;
while FLAG do
if source.high[i]> (tick_low[Count]+ SIZE) then
tick_high[Count] = tick_low[Count] + SIZE;
tick_close[Count] = tick_low[Count] + SIZE;
tick_open[Count+1] = tick_close[Count];
tick_high[Count+1] = tick_close[Count];
tick_low[Count+1] = tick_close[Count];
tick_close[Count+1] = tick_close[Count];
Count= Count+1;
elseif source.low[i] < (tick_high[Count] - SIZE) then
tick_low[Count] = tick_high[Count] - SIZE;
tick_close[Count] = tick_high[Count] - SIZE;
tick_open[Count+1] = tick_close[Count];
tick_high[Count+1] = tick_close[Count];
tick_low[Count+1] = tick_close[Count];
tick_close[Count+1] = tick_close[Count];
Count= Count+1;
elseif source.low[i] < tick_low[Count] then
tick_low[Count] = source.low[i];
FLAG= false;
elseif source.high[i] > tick_high[Count] then
tick_high[Count] = source.high[i];
FLAG= false;
else
FLAG= false;
end
end
end
Apprentice wrote:
As regards the application of other indicators of nonlinear price data
I have not seen it anywhere in theory or practice.