TJ wrote:
I used to have trendlines interfering with others (changing colors, deleting the wrong lines, etc).
I thought it was a bug in MultiCharts,
but after carefully tracking my codes, I have determined that it was coding error that caused the color changes. After fixing the codes, I have not had an interference since.
***********************************************************************
I think the easiest way to solve this is to show 2 simple trend-line studies, the ONLY difference is that one is plotting at the last high and the other is plotting at the last low. The one plotting the last high is yellow , the last low is green.. When BOTH are applied on the same chart, they interfere with each other, changing colors.. If you could explain what must be different for them to work independently, that would solve my problem.. I thought separate studies would automatically be independent.
//Study #1
Code:
Vars:TL.M1(-1);
once
begin
tL.M1 = tL_new(d, t, 0, d, t, 0);
tl_setextleft(tL.M1,true);
end;
tl_setend(tl.M1, d, t, H);
tl_setbegin(tl.M1, d, t,H);
Value1=TL_SetColor(1,yellow);
// here is study #2-
Code:
Vars:TL.M1(-1);
once
begin
tL.M1 = tL_new(d, t, 0, d, t, 0);
tl_setextleft(tL.M1,true);
end;
tl_setend(tl.M1, d, t, L);
tl_setbegin(tl.M1, d, t,L);
Value1=TL_SetColor(1,green);