Indicateur prorealtime
Fiche : Indicateur prorealtime. Recherche parmi 300 000+ dissertationsPar nicolas enilorac • 2 Février 2019 • Fiche • 306 Mots (2 Pages) • 493 Vues
///// En fonction du RSI /////
ACHAT = 0
MACDMONTE = 0
MM = 0
MAXRSI = 38
rge = averagetruerange[10](close)
//SIGNALMACD = 0
MINRSI = 58
VENTE = 0
MACDDESCEND = 0
MMDESCEND = 0
MMOK = 0
//MAXMACD = 1
//VOLATILITE = 1
//ECARTVOLATILITE = 50
//
////Volatilité //
//maximum = MAX(Average[7](Close),MAX(Average[20](Close),MAX(Average[50](Close),MAX(Average[100](Close),MAX(Average[150](Close),Average[200](Close))))))
//minimum = Min(Average[7](Close),Min(Average[20](Close),Min(Average[50](Close),Min(Average[100](Close),Min(Average[150](Close),Average[200](Close))))))
//
//IF ABS(maximum-minimum) < ECARTVOLATILITE THEN
//VOLATILITE = 0
//ENDIF
////////////////////////////////
// Calcul Opportunité //////////
////////////////////////////////
// mm pas toutes decroissantes //
C7 = Average[7](Close) - Average[7](Close[1])
C20 = Average[20](Close) - Average[20](Close[1])
C50 = Average[50](Close) - Average[50](Close[1])
C100 = Average[100](Close) - Average[100](Close[1])
C150 = Average[150](Close) - Average[150](Close[1])
C200 = Average[200](Close) - Average[200](Close[1])
IF NOT((C7<0) AND (C20<0) AND (C50<0) AND (C100<0) AND (C150<0) AND (C200<0)) THEN
MM = 1
ENDIF
IF (Average[200](Close) - Average[200](Close[1]))>0 THEN
MMOK = 1
ENDIF
//mm pas toutes croissantes
IF NOT((C7>0) AND (C20>0) AND (C50>0) AND (C100>0) AND (C150>0) AND (C200>0)) THEN
MMDESCEND = 1
ENDIF
//Aide MACD //
IF MACDline[12,26,9](Close) > MACDline[12,26,9](Close[1]) AND MACDline[12,26,9]( Close) < 0 THEN
MACDMONTE = 1
ENDIF
IF MACDline[12,26,9](Close[1]) < MACDline[12,26,9](Close[2]) AND MACDline[12,26,9](Close) < MACDline[12,26,9](Close[1]) AND MACDline[12,26,9](Close) > 0 THEN
MACDDESCEND = 1
ENDIF
...