[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why Won't This Work?



PureBytes Links

Trading Reference Links


here's another one trash the first one.. the problem i believe is your
application of the swing bar function. i think i see what you are trying to
do however i dont think the swing bar function is a good way to do it. i
would junk anything that has the swing bar function and hard code the swing
if i were you example where value 50 is whatever you want it to be..

if value50 <= value50[1] then begin if value50[1] >= value50[2] then begin
plot1(value50[1],"MaxHigh")
if value50 >= value50[1] then begin if value50[1] <= value50[2]then begin
plot4(value50[1],"MinLow");







Var: MA(0),UPTrend(0),DNTrend(0);
MA=Average(Close,20);
If SwingLow(2,MA,10,30) < SwingLow(1,MA,10,30) then begin UPTrend= 1;
DNTrend=0;
end;
If SwingLow(2,MA,10,30) > SwingLow(1,MA,10,30) then begin DNTrend= 1;
UPTrend=0;
end;
if UPTrend=1 then Plot1(C,"UPTrend");
if DNTrend= 1 then Plot2(C,"DNTrend");