// Variables
INDICATEUR = 0
timeframe (default)
Kijun = KijunSen[9,26,52]
SSpanA = (tenkansen[26]+kijunsen[26])/2
SSpanB = (highest[52](high[26])+lowest[52](low[26]))/2
Tenkan = TenkanSen[9,26,52]
Chikou = close[26]
Corps = abs(open-close)
mms2001 = average[200]
mms501 = average[50]
Timeframe(1 hour)
ppH1 = ((high+low+close)/3)
Timeframe(15 minutes)
mms200 = average[200]
mms50 = average[50]
timeframe (default)
// ACHAT
C1 = close > SSpanA and close > SSpanB
C2 = close CROSSES OVER kijun or close crosses over tenkan
C3 = close > Tenkan
Timeframe (15 minutes)
C7 = close > mms200 and close > mms50
timeframe (default)
C8 = close > mms501 and close > mms2001
C9 = hour > 8 and hour < 21
IF C1 and C2 and C3 and C7 and c8 and c9 THEN
INDICATEUR = 1
endif
//Achat meche sur kijun
C1v = close < SSpanA and close < SSpanB
C2v = close CROSSES under kijun or close crosses under tenkan
C3v = close < Tenkan
Timeframe (15 minutes)
C7v = close < mms200 and close < mms50
timeframe (default)
C8v = close < mms501 and close < mms2001
C9v = hour > 8 and hour < 21
IF C1v and C2v and C3v and C7v and c8v and c9v THEN
INDICATEUR = -1
endif
return INDICATEUR as "1MIN le best"