Hello all,
Im trying to trigger BUYs when the close of a candle is below the daily pivot AND the gap between the pivot is less than 30 points.
Below is what I thought would do the trick – but Im seeing quite a few BUYs triggered above the pivot – any idea what I’ve done wrong?
Many thanks, Geoff
// Conditions to enter long positions
indicator1 = close
indicator2 = (DHigh(1) + DLow(1) + DClose(1))/3
c1 = indicator1 < indicator2
indicator10 = close
indicator20 = (DHigh(1) + DLow(1) + DClose(1))/3
c10 = (indicator20 – indicator10) <30
IF c1 AND C10 THEN
BUY 2 PERPOINT AT MARKET
ENDIF