1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 xClose = (open+high+low+close)/4 IF BarIndex=0 THEN xOpen = open xHigh = high xLow = low ELSe xOpen = (xOpen[1] + xClose[1])/2 xHigh = Max(Max(high, xOpen), xClose) xLow = Min(Min(low, xOpen), xClose) ENDIF UP = xopenxclose and xhigh=xopen if UP then drawpoint(barindex,xlow,3) coloured(0,200,0) elsif DOWN then drawpoint(barindex,xhigh,3) coloured(200,0,0) endif return UP as “UP”, DOWN as “DOWN”
Comment serait-il possible de modifier l’indicateur pour qu’il n’affiche un marqueur que pour le second cul plat à la suite ? Merci