MVA Supply / Resistance

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Re: MVA Supply / Resistance

Postby djspinburner » Thu May 12, 2016 4:39 pm

so i got the below working, but it keeps deleting the old level not the new one, how can I make it delete the new level instead? top and bottom are streams that calculate the same paramaters that the levels are drawn on.


function Authentic(j, FirstBar, LookBack, flag)
local i;
local count=0;
local result = true;
--local j = FirstBar;
--for i= j, FirstBar+500--[[math.max(first, FirstBar+1)]], -1 do

if flag then
--if source[i]< low2[j] then
if (bottom[j] < top[j-1] and bottom[j] > bottom[j-1]) then

result = false;

end

end
if not flag then
--if source[i] > high2[j]then
if (bottom[j] > top[j-1] and bottom[j] < bottom[j-1]) then
result = false;

end
end



--end

return result;

end
djspinburner
 
Posts: 39
Joined: Thu Jun 11, 2015 1:44 pm

Re: MVA Supply / Resistance

Postby djspinburner » Wed Jun 01, 2016 7:30 pm

Any way you can help with this, add this to your code here so I can see how you distinguish whether it is a new level or a level off a previous level. I am sure others would like to see that as well.
djspinburner
 
Posts: 39
Joined: Thu Jun 11, 2015 1:44 pm

Previous

Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Google [Bot] and 37 guests