Comment on Trading Systems

Nithin Kamath commented on 08 May 2013, 08:20 AM

Buy:
SET H = MAXOF (MAX (HIGH, 14), REF (HIGH, 15))
SET L = MINOF (MIN (LOW, 14), REF (LOW, 15))
SET AVG = (H+L)/2
SET H1 = MAXOF (MAX (HIGH, 29), REF (HIGH, 30))
SET L1 = MINOF (MIN (LOW, 29), REF (LOW, 30))
SET AVG1 = (H1 + L1)/ 2
AVG > AVG1

Sell:

SET H = MAXOF (MAX (HIGH, 14), REF (HIGH, 15))
SET L = MINOF (MIN (LOW, 14), REF (LOW, 15))
SET AVG = (H+L)/2
SET H1 = MAXOF (MAX (HIGH, 29), REF (HIGH, 30))
SET L1 = MINOF (MIN (LOW, 29), REF (LOW, 30))
SET AVG1 = (H1 + L1)/ 2
AVG < AVG1

View the full comment thread »