Buongiorno,
volevo chiedere se è possibile modificare uno screener che ho trovato di recente nella libreria, facendolo diventare un indicatore.
Grazie per il cortese aiuto.
Scans for Freebars
Bonjour
par exemple:
ATR = AverageTrueRange[20](fermer)
ATRM = 2,25 * ATR
MLine = ExponentialAverage[20](fermer)
UChannel = MLine + ATRM
LChannel = MLine – ATRM
FreeBarUp = Low > UChannel
FreeBarDown = High < LChannel
si FreeBarUp et non FreeBarUp[1] alors
DRAWARROWDOWN(barindex,high)coloré(255,0,0)
endif
si FreeBarDown et non FreeBarDown[1] alors
DRAWARROWUP(barindex,low)coloré (0,255,0)
fin si
retourner UChannel, MLine, LChannel
Grazie e mille .
Ho provato ma mi da il seguente codice di errore.
Linea 1: errore interno : ordine sconosciuto
Sembrebbe anche che evidenzi in giallo il termine “LChannel”.
Da cosa potrebbe dipendere?
Grazie ancora
ah ok c’est à cause de la traduction en francais du code
utiliser celui ci :
ATR = AverageTrueRange[20](close)
ATRM = 2.25 * ATR
MLine = ExponentialAverage[20](close)
UChannel = MLine + ATRM
LChannel = MLine – ATRM
FreeBarUp = Low > UChannel
FreeBarDown = High < LChannel
if FreeBarUp and not FreeBarUp[1] then
DRAWARROWDOWN(barindex,high)coloured(255,0,0)
endif
if FreeBarDown and not FreeBarDown[1] then
DRAWARROWUP(barindex,low)coloured(0,255,0)
endif
return UChannel,MLine,LChannel
mes excuses prendre le fichier ci-joint
Adesso funziona, grazie tante.!