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"
The Popgun is somethin like this
the popgun ist something like this
And i want to try
go short with close the second outside and if the second outside bearish go long with next candle
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