As per the above condition
Buy Script:
SET A = (HHV(8)+LLV(8))/2 SET B = (HHV(22)+LLV(22))/2 SET C = (HHV(44)+LLV(44))/2 LAST > A OR LAST > B OR LAST > C
Sell Script:
SET A = (HHV(8)+LLV(8))/2 SET B = (HHV(22)+LLV(22))/2 SET C = (HHV(44)+LLV(44))/2 LAST < A OR LAST < B OR LAST < C
I want to modify above code only if below condition fulfilled
Condition 1 : If SET A Line > SET B Line and SET A Line Previous < SET B Line and SET A Line > SET C Line then "BUY"
Condition 2 : If SET A Line < SET B Line and SET A Line Previous > SET B Line and SET A Line < SET C Line then "SELL"