Moderator: admin
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.
Users browsing this forum: Bing [Bot], Google [Bot] and 177 guests