Code Pop Gun Rebound

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #48525 quote
    Koenigsleon
    Participant
    New

    Das kommt veleicht ein bissel spät, aber ich habe mich auch damit auch beschäftigt.

    Indikator einfügen und bei über oder unterschneidung sollte es passen.

    Schon ein Handelssystem gefunden was läuft?

    //der Indikator brauch ein anfang, daher wird c nur 1 x benutzt zum switchen
    c = 0
    d = 0
    
    e = 0
    
    f = 0
    IF c = 0 THEN
    IF(close[0]) > (high[1]) THEN
    a = low[0] AND b = high[0] AND c = 1
    endif
    endif
    //b soll eigendlich immer ein Einstieg darstellen
    IF (close[0]) > b THEN
    b = high[0] AND d = low[0]
    endif
    //a soll eigendlich immer ein Ausstieg darstellen.
    IF (close[0]) > a THEN
    a = low[1]
    endif
    If (close[0]) < d THEN
    e = high[0] AND f = low[0]
    endif
    IF (close[0]) > e THEN
    b = high[0]
    endif
    IF (close[0]) < f THEN
    d = low[0]
    endif
    RETURN a AS "low", b AS "high"
    
    Nicolas thanked this post
    #60088 quote
    bluetime6
    Participant
    Average

    The Popgun is somethin like this

    #60090 quote
    bluetime6
    Participant
    Average

    the popgun ist something like this

    #60096 quote
    bluetime6
    Participant
    Average

    And i want to try

    go short with close the second outside and if the second outside bearish go long with next candle

    #74152 quote
    JohnScher
    Participant
    Veteran

    Here the Code for the PopGun correctly.

    The error is that for a PG you don’t have take the “Close” – but the “Low”.

    That´s all.

    // PopGun Indikator
    // Created by JohnScher
     
    PIP = 0.3*pipsize
    LIN = 3
    Support = (High-Low)*0.5
    Resistance = (High-Low)*0.5
    
    r=0
    g=0
    b=0
     
    //indicator PopGun
    PG = High[2]>High[1] and Low[2]<Low[1] and High>High[1] and Low<Low[1]
    
    
    
    IF PG Then
    DRAWARROWUP(barindex,LOW-PIP)coloured(r,g,b)
    DRAWSEGMENT(barindex,LOW-SUPPORT,barindex+LIN, LOW-SUPPORT )coloured(r,g,b)
    DRAWARROWDOWN(barindex,HIGH+PIP)coloured(r,g,b)
    DRAWSEGMENT(barindex,High+Resistance,barindex+LIN, High+Resistance )coloured(r,g,b)
    ENDIF
    
    return
    
Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.

Code Pop Gun Rebound


ProBuilder Support

New Reply
Author
author-avatar
bluetime6 @bluetime6 Participant
Summary

This topic contains 19 replies,
has 6 voices, and was last updated by JohnScher
7 years, 7 months ago.

Topic Details
Forum: ProBuilder Support
Language: German
Started: 05/20/2017
Status: Active
Attachments: 2 files
Logo Logo
Loading...