Hi.
I am a beginner, and have just bought my first indicator.
I would like to ask for help creating a strategy-file based on two indicators .
The indicators:
- Extratrend – https://market.prorealcode.com/product/extratrend-an-indicator-for-technical-traders-and-chartists/
- Screener pour afficher les débuts de tendance de l’indicateur ExtraTrend conforme Ichimoku – https://www.prorealcode.com/topic/extratrend-exemples-de-codage-screeners-et-programmation-personnalisee/page/3/#post-171211
//****************************************************************
//Screener pour afficher les débuts de tendance de l'indicateur ExtraTrend conforme Ichimoku
//****************************************************************
//Conditions ExtraTrend hausse
myTrend, ignored, myExpansion = CALL "ExtraTrend"[0, 0, 0, 0, 0](close)
uptrend = myTrend <> myExpansion //ExtraTrend bande bleue
newUpTrend = uptrend and not uptrend[1] //nouvelle tendance haussière (bande bleue)
if newUpTrend then
signal = 1
else
signal = 0
endif
//Conditions de volume
conditionVolume = Average[20](volume) > 10000
//Conditions Ichimoku
TENKAN = (highest[9](high) + lowest[9](low))/2
KIJUN = (highest[26](high) + lowest[26](low))/2
LS = close
SSA = (tenkan[26]+kijun[26])/2
SSB = (highest[52](high[26])+lowest[52](low[26]))/2
conditionSSASSB = close > SSA AND close > SSB
conditionKIJUN = close > KIJUN
conditionsTENKAN = close > TENKAN
conditionsLS = LS > KIJUN[26] AND LS > high[26] //LS au-dessus des prix et de la Kijun
//Pour être encore plus restrictif avec LS au-dessus du nuage : LS > SSA[26] AND LS > SSB[26]
//Lancement screener
screener[newUpTrend AND conditionVolume AND conditionSSASSB AND conditionKIJUN AND conditionsTENKAN AND conditionsLS] (signal as "Trend")
Thanks in advance. Maybe Procoders like robertogozzi grahhl or Nicolas can help me?
There you go (of course I couldn’t check it as I don’t have that indicator):
//Conditions ExtraTrend hausse
myTrend, ignored, myExpansion = CALL "ExtraTrend"[0, 0, 0, 0, 0](close)
uptrend = myTrend <> myExpansion //ExtraTrend bande bleue
newUpTrend = uptrend and not uptrend[1] //nouvelle tendance haussière (bande bleue)
if newUpTrend then
signal = 1
else
signal = 0
endif
//Conditions de volume
conditionVolume = Average[20](volume) > 10000
//Conditions Ichimoku
TENKAN = (highest[9](high) + lowest[9](low))/2
KIJUN = (highest[26](high) + lowest[26](low))/2
LS = close
SSA = (tenkan[26]+kijun[26])/2
SSB = (highest[52](high[26])+lowest[52](low[26]))/2
conditionSSASSB = close > SSA AND close > SSB
conditionKIJUN = close > KIJUN
conditionsTENKAN = close > TENKAN
conditionsLS = LS > KIJUN[26] AND LS > high[26] //LS au-dessus des prix et de la Kijun
//Pour être encore plus restrictif avec LS au-dessus du nuage : LS > SSA[26] AND LS > SSB[26]
//Long Conditions
CondL = newUpTrend AND conditionVolume AND conditionSSASSB AND conditionKIJUN AND conditionsTENKAN AND conditionsLS
IF CondL THEN
BUY 1 CONTRACT AT MARKET
ENDIF
SET STOP pLOSS 100
SET TARGET pPROFIT 300
This forum is amazing. Thanks alot robertogozzi
I think its strange that backtest say no orders på equity-curve does. Look att the image
Because the trade has not been closed yet