Bonjour,
Je tente de créer un Proscreener basé sur Ichimoku et utilisant 3 Unités de temps (Monthly, Weekly et Daily).
Les conditions pour obtenir un signal d’achat sont les suivantes :
– Etre en tendance haussière sur le Monthly (SpanA > SpanB).
– Etre en tendance haussière sur le Weekly (SpanA > SpanB).
– Avoir les signaux suivant sur le Daily (UT de prise de position) :
-> Senkou Span A > Senkou Span B (nuage haussier)
-> Tenkan > Senkou Span A (Tenkan libérée)
-> Kijun > Tenkan (Kijun libérée)
-> Dernière bougie supérieur Kijun (breakout Kijun)
-> Chikou > au cours retardé (chikou libérée)
J’ai rédigé le code ci-dessous.
Néanmoins, quand je l’exécute, je reçois le message en PJ.
Il m’indique que les conditions que j’ai défini ne le sont pas.
Pouvez-vous m’aider, s’il vous plait ?
Vous trouverez ci-dessous, le code de mon Proscreener :
Merci d’avance.
—————————————————————————————————
Hello,
I am trying to create a Proscreener based on Ichimoku and using 3 Time Units (Monthly, Weekly and Daily).
The conditions for obtaining a buy signal are as follows:
– Bullish trend on the Monthly (SpanA > SpanB).
– Bullish trend on the Weekly (SpanA > SpanB).
– Have the following signals on the Daily (UT of trade position):
-> Senkou Span A > Senkou Span B (bullish cloud)
-> Tenkan > Senkou Span A (Tenkan released)
-> Kijun > Tenkan (Kijun released)
-> Last candle upper Kijun (breakout Kijun)
-> Chikou > at the delayed price (chikou released)
I have written the prorealcode below.
However, when I run it, I get the message in PJ.
It tells me that the conditions I have defined are not.
Can you help me, please ? Thanks in advance.
You will find below, the code of my Proscreener.
PROREALCODE :
/*————————————MONTHLY————————————*/
/*——Fenêtre de temps——*/
TIMEFRAME (monthly)
/*—-Indicateur—- */
TenkanM = (highest[9](high)+lowest[9](low))/2
KijunM = (highest[26](high)+lowest[26](low))/2
SpanMA = (TenkanM[26]+KijunM[26])/2
SpanMB = (highest[52](high[26])+lowest[52](low[26]))/2
/*——Condition——*/
C0 = SpanMA > SpanMB
/*————————————WEEKLY————————————*/
/*——Fenêtre de temps——*/
TIMEFRAME (weekly)
/*—-Indicateur—- */
TenkanW = (highest[9](high)+lowest[9](low))/2
KijunW = (highest[26](high)+lowest[26](low))/2
SpanWA = (TenkanW[26]+KijunW[26])/2
SpanWB = (highest[52](high[26])+lowest[52](low[26]))/2
/*——Condition——*/
C01 = SpanWA > SpanWB
/*————————————DAILY————————————*/
/*——Fenêtre de temps——*/
TIMEFRAME (daily)
/*—-Indicateur—- */
Tenkan = (highest[9](high)+lowest[9](low))/2
Kijun = (highest[26](high)+lowest[26](low))/2
SpanA = (Tenkan[26]+Kijun[26])/2
SpanB = (highest[52](high[26])+lowest[52](low[26]))/2
Chikou = close[26]
/*——Conditions——*/
C1 = SpanA > SpanB // nuage haussier
C2 = close > SpanA // prix > nuage
C3 = Kijun > Tenkan // kijun > tenkan
C4 = close crosses over Kijun // prix > kijun
C5 = close > Chikou // prix retardé de 26 périodes > prix actuel
/*—————SCREENER——————*/
Screener[C0 and C01 and C1 and C2 and C3 and C4 and C5]