iIndicatore PinBar
- This topic has 2 replies, 2 voices, and was last updated 6 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
Forums › ProRealTime forum Italiano › Supporto ProBuilder › iIndicatore PinBar
Ciao a tutti,
il codice allegato restituisce sul grafico testo e colorazione in corrispondenza di una PinBar secondo calcoli da me impostati. Funziona regolarmente e vorrei usare l’indicatore in un trading system ma se aggiungo a RETURN “PinBarRibasso” e “PinBarRialzo” mi disegna due righe verticali che vanno da “0” a “1” e da “1” a “0” in corrispondenza della candela. Come posso eliminare le righe? In alternativa come richiamare le variabili per utilizzarle in un trading system? Grazie
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
CORPO = ABS(OPEN - CLOSE) SPIKESUP = HIGH - MAX(OPEN,CLOSE) SPIKEINF = MIN(OPEN,CLOSE) - LOW AMPIEZZA = RANGE MULTIPLOAMPIEZZA = 0.5 MULTIPLOSPIKEGRANDE = 2 MULTIPLOSPIKEPICCOLO = 0.5 ROTTURAMASSIMI = HIGH > HIGHEST[MassimiDaRompere](HIGH)[1] ROTTURAMINIMI = LOW < LOWEST[MinimiDaRompere](LOW)[1] PinBarRibasso = (CORPO <= MULTIPLOAMPIEZZA * AMPIEZZA) AND (SPIKESUP > MULTIPLOSPIKEGRANDE * CORPO) AND (SPIKEINF < MULTIPLOSPIKEPICCOLO * SPIKESUP) AND ROTTURAMASSIMI AND RANGE>RANGE[1] PinBarRialzo = (CORPO <= MULTIPLOAMPIEZZA * AMPIEZZA) AND (SPIKEINF > MULTIPLOSPIKEGRANDE * CORPO) AND (SPIKESUP < MULTIPLOSPIKEPICCOLO * SPIKEINF) AND ROTTURAMINIMI AND RANGE>RANGE[1] IF PinBarRibasso THEN DRAWCANDLE(OPEN,CLOSE,OPEN,CLOSE) COLOURED(255,0,255) DRAWTEXT("PinBarRibasso", barindex, high+AverageTrueRange[14](close), Dialog, Bold, 12) COLOURED(255,0,255) ENDIF IF PinBarRialzo THEN DRAWCANDLE(OPEN,CLOSE,OPEN,CLOSE) COLOURED(0,0,255) DRAWTEXT("PinBarRialzo", barindex, LOW-AverageTrueRange[14](close), Dialog, Bold, 12) COLOURED(0,0,255) ENDIF RETURN PinBarRibasso AS "PinBarRibasso", PinBarRialzo AS "PinBarRialzo" |
Dalle proprietà dell’indicatore setta quelle due righe come INVISIBILI.
Grande!!! Grazie mille