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

value question 2



PureBytes Links

Trading Reference Links

Sorry I was in a rush, here it is again verified.

Below is an angle finder that I made that prints text each bar.Can anyone tell me why
condition1 is recognized and condition 2 will not? the added command does nothing, it
still prints like condition 1. This is the only indicator out 50 on a list that wont' work.
like this. John


verified


input: Price(Average(c,20)), NumBars(1), length1(3);
vars: s(0);
value1 = (arctangent((Price-Price[NumBars])/NumBars));
value2 = (LinearRegValueFC(Price, Length1, 0));


condition1 = value1 > 30;
condition2 = value1 > 30 and value2 > value2[1] ;
if condition1 then begin S = TEXT_NEW(DATE,TIME,HIGH-3,"30");end;