Forums › ProRealTime Deutsch forum › ProOrder Support › Breakout mit kleiner Korrektur › Reply To: Breakout mit kleiner Korrektur
09/15/2025 at 4:35 PM
#250873
Dies ist die neue Version, die mit Ihrer letzten Anfrage aktualisiert wurde:
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
ONCE HH = 0 ONCE LL = 0 ONCE HHp = 0 ONCE LLp = 0 ONCE PC = 30 //30% ONCE Gap = 0 ONCE Sig = 0 //ù IF OnMarket THEN Sig = 0 ENDIF //defparam calculateonlastbars=30000 cp = 3 once lastpoint = 0 if high[cp] >= highest[2*cp+1](high) then PEAK = 1 else PEAK = 0 endif if low[cp] <= lowest[2*cp+1](low) then TROUGH = -1 else TROUGH = 0 endif if PEAK = 1 then TOPy = high[cp] TOPx = barindex[cp] endif if TROUGH = -1 then BOTy = low[cp] BOTx = barindex[cp] endif if PEAK>0 and (lastpoint=-1 or lastpoint=0) then //DRAWSEGMENT(lastX,lastY,TOPx,TOPy) COLOURED(127,255,0,1000) //DRAWTEXT("■",TOPx,TOPy,Dialog,Bold,15) coloured(200,0,0,255) HHp = HH HBp = HB HH = TOPy HB = TOPx Sig = 0 lastpoint = 1 lastX = TOPx lastY = TOPy endif if TROUGH<0 and (lastpoint=1 or lastpoint=0) then //DRAWSEGMENT(lastX,lastY,BOTx,BOTy) COLOURED(255,0,0,255) //DRAWTEXT("■",BOTx,BOTy,Dialog,Bold,15) coloured(0,200,0,255) LLp = LL LBp = LB LL = BOTy LB = BOTx lastpoint = -1 lastX = BOTx lastY = BOTy endif //TREND ATTEMPT atr=AverageTrueRange[14](close) if TOPy > TOPy[1] and topy<>lasttop then //drawarrowup(barindex,low-atr/2) coloured(0,200,0) lasttop=topy trendup = 1 else trendup = 0 endif //RETURN TOPy as "TOPy", BOTY as "BOTy", trendup as "trendup" IF (HHp <> 0) AND (LLp <> 0) THEN IF (LL <> LL[1]) THEN Gap = HH - LL Spike = HH - LLp Ratio = Gap * 100 / Spike IF (Ratio > 0) AND (Ratio < PC) AND (HB <= Barindex[3]) AND (HB >= Barindex[10]) THEN Sig = 1 ELSE Sig = 0 ENDIF ENDIF ENDIF IF Not OnMarket AND Sig = 1 THEN IF close > HH THEN BUY 1 CONTRACT AT HH LIMIT ELSIF close < HH THEN BUY 1 CONTRACT AT HH STOP ELSE BUY 1 CONTRACT AT MARKET ENDIF SL = HH - LL - (LL * 0.005) //0.5% below the last LL SLprice = HH - SL TP = SL * 2 TPprice = HH + TP SET STOP PRICE SLprice SET TARGET PRICE TPprice ENDIF //graphonprice LL coloured("Brown") //GraphOnPrice HH coloured("Black") //GraphOnPrice SLprice coloured("Fuchsia") //GraphOnPrice TPprice coloured("Cyan") //graph Spike //graph Gap //graph Ratio //graph HBp //graph HB //graph BarIndex //graph Sig |