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

S&R Indicator code help



PureBytes Links

Trading Reference Links

Below is a support and resistance indicator given to me by a forum member. 
It marks off lines
as it plots. It only plots on a 5 min chart or greater. I changed the 
date[1] to 2 and
got it to plot on a 1 min chart etc. however it doesn't plot correctly. Are 
there any code
gurus that would give it a try to see if it would plot a 2 minute chart?  
thanks


IF Date > Date[1] then Begin
          Value1 = Value4[1];
          Value2 = Value5[1];
          Value3 = Close[1];
          Value4 = H;
          Value5 = L;
          Value6 = O;
     End;

     IF H > Value4 then Value4 = H;
     IF L < Value5 then Value5 = L;

IF Value1 >0 and Value2 >0 and Value3 >0 and Value6 > 0 then Begin
  Plot1(Value1,"YH");
  Plot2(Value2,"YL");
  Plot3(Value3,"YC");
  Plot4(Value6,"TO");
End;