Questo è il codice che ho creato:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
PinBall,ignored,ignored,ignored = CALL “Momentum PinBall” ignored,ignored,ignored,ignored,ignored,Composite = CALL “Composite momentum” L1b = PinBall crosses over 10 L1a = Composite <= -80 cL = L1b and L1a //Condizioni LONG S1b = PinBall crosses under 90 S1a = Composite => 80 cS = S1b and S1a //Condizioni SHORT // IF cL THEN DRAWARROWUP(BarIndex,low – range) COLOURED(0,128,0,255) ENDIF IF cS THEN DRAWARROWDOWN(BarIndex,high + range) COLOURED(255,0,0,255) ENDIF RETURN cL OR -cS |