Friends
Please help me to write a code for the following condition.
- "x" is a value which increase or decrease with price- I have four straight
line of value 30, 50, 65 and 70
--- Case1--- when "x" cross from bellow to above 30 is a buy signal warning
and when "x" cross 50 is a buy signal, when "x" cross 50 and do not cross 65
and value return back to 50 or just bellow 50 is a sell signal.
--- Case2---when "x" value cross 65 and do not cross 70 and return back to 65
or just bellow 65 is a sell signal.
---Case3--when "x" value cross 70 and upper limit is sky(unlimited) and value
return back to 70 or just bellow 70 is a sell signal.
Summery: 1 time buy warning, 1 time buy signal, 3 times sell signal with
different level .
Friends pls try
Thanks and RegardsAfzal