Forums › ProRealTime forum Italiano › Supporto ProBuilder › Indicatore da strategia › Reply To: Indicatore da strategia
10/02/2018 at 6:06 PM
#81801
Provalo, io non l’ho testato perché non ho quell’indicatore
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 26 27 |
DEFPARAM CALCULATEONLASTBARS = 500 //PROFITLONG = 110 STOPLONG = 85 //PROFITSHORT = 40 STOPSHORT = 80 ONCE RES = 0 ONCE SUPP = 0 if time = 091500 then res = high supp = low endif ignored, ignored, ignored, ignored, ignored, COMPOM = CALL "Composite momentum"[4, 3, 9] avt = AverageTrueRange[14](close) longok = (close[1] crosses over res) and (avt > 9.25) and (compom < 51) shortok = (close[1] crosses under supp) and (avt > 19.5) and (compom < 56) IF longok THEN Prezzo = res Sl = res - (STOPLONG * pipsize) ELSIF shortok THEN Prezzo = supp Sl = supp + (STOPSHORT * pipsize) ENDIF IF longok OR shortok THEN DRAWTEXT("#Prezzo#", barindex, Prezzo, Dialog, Bold, 10) COLOURED(0,255,0,255) DRAWTEXT("#Sl#" , barindex, Sl, Dialog, Bold, 10) COLOURED(0,255,0,255) ENDIF RETURN |