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

Re: EL problem



PureBytes Links

Trading Reference Links

Condition1 and Condition2 are True/False variables so they cannot be used
with ">" or "crosses over" operators.

I think what you might want is:

 if Average(Close - Close[3],1) crosses over
    Average(Close[1] - Close[5],2) then Plot1...;

 if Average(Close - Close[3],1) crosses under
    Average(Close[1] - Close[5],2) then Plot2...;

The Average function returns numeric values which can then be used with ">"
or "crosses over" operators.

Bob Fulks


>I want to see this plotted as a cross over are a > than plot but I haven't
>been able to do it. I got it from a paint bar indicator for momentum but I
>really would rather just know when one crosses over the other instead of a
>paintbar. I messed with it a while thinking would be easy but I'm still
>learning EL and only learn it as I need something done. Any help would be
>appreciated also any other ideas on ways in which to plot momentum that
>would be more accurate would be appreciated.
>
>condition1= Average(Close - Close[3],1) > Average(Close[1] - Close[5],2);
>condition2 =Average(Close - Close[3],1) < Average(Close[1] - Close[5],2);
>
>I tried if condition1 > condition2 then
>
>I tried if condition1 crosses over condition2 then
>
>I tried changing them to values
>
>Got messages from power editor ranging but it wanted something I couldn't
>give to verify.
>
>Thanks
>Robert