Buongiorno a tutti , posso gentilmente chiedere come si può correggere un indicatore nel momento in cui si forma una freccia dia anche un avviso del tipo : Acustico tipo allarme? , oppure usando una finestra del tipo ProScreener ? Vi allego il file a cui vorrei apporre questa aggiunta , Grazie
DEFPARAM CalculateOnLastBars = 1000
//text color
// white = 255,255,255 ; black = 0,0,0
//atr = averagetruerange[10](close)*0.5 //offset per il display di frecce e nomi sul grafico dei prezzi
x = 0
DojiSize = 0.05
data=(abs(open – close) <= (high – low) * DojiSize)
if data then
x = 1
r = 127
g = 255
b = 212
//DRAWTEXT(“Doji”, barindex, high+atr, Dialog, Standard, 12) COLOURED(R,G,B) Azzurro
endif
data2=(close[2] > open[2] and min(open[1], close[1]) > close[2] and open < min(open[1], close[1]) and close < open )
if data2 then
x = 3
r = 255
g = 0
b = 0
//DRAWTEXT(“Evening Star”, barindex, high[1]+atr*1.5, Dialog, Standard, 12) COLOURED(255,0,10) Rosso
//DRAWARROWDOWN(barindex-1,high[1]) COLOURED(255,0,10)
endif
data3=(close[2] < open[2] and max(open[1], close[1]) < close[2] and open > max(open[1], close[1]) and close > open )
if data3 then
x = 3
r = 165
g = 42
b = 42
//DRAWTEXT(“Morning Star”, barindex, low[1]-atr*1.5, Dialog, Standard, 12) COLOURED(0,255,10) Moro
//DRAWARROWUP(barindex-1,low[1]) COLOURED(0,255,10)
endif
data4=(open[1] < close[1] and open > close[1] and high – max(open, close) >= abs(open – close) * 3 and min(close, open) – low <= abs(open – close))
if data4 then
x = 1
r = 222
g = 184
b = 135
//DRAWTEXT(“Shooting Star”, barindex, high+atr*1.5, Dialog, Standard, 12) COLOURED(255,0,10) Nocciola
//DRAWARROWDOWN(barindex,high) COLOURED(255,0,10)
endif
data5=(((high – low)>3*(open -close)) and ((close – low)/(.001 + high – low) > 0.6) and ((open – low)/(.001 + high – low) > 0.6))
if data5 then
x = 1
r = 95
g = 158
b = 160
//DRAWTEXT(“Hammer”, barindex, high+atr, Dialog, Standard, 12) COLOURED(R,G,B) Avio Scuro
endif
data5b=(((high – low)>3*(open -close)) and ((high – close)/(.001 + high – low) > 0.6) and ((high – open)/(.001 + high – low) > 0.6))
if data5b then
x = 4
r = 255
g = 255
b = 0
//DRAWTEXT(“Inverted Hammer”, barindex, high+atr, Dialog, Standard, 12) COLOURED(R,G,B) Giallo
endif
data6=(close[1] > open[1] and open > close and open <= close[1] and open[1] <= close and open – close < close[1] – open[1] )
if data6 then
x = 1
r = 255
g = 127
b = 80
//DRAWTEXT(“Bearish Harami”, barindex, high+atr*1.5, Dialog, Standard, 12) COLOURED(255,0,10)marrone chiaro
//DRAWARROWDOWN(barindex,high) COLOURED(255,0,10)(NOCCIOLA)
endif
data7=(open[1] > close[1] and close > open and close <= open[1] and close[1] <= open and close – open < open[1] – close[1] )
if data7 then
x = 1
r = 169
g = 169
b = 169
//DRAWTEXT(“Bullish Harami”, barindex, low-atr*1.5, Dialog, Standard, 12) COLOURED(0,255,10) Grigio chiaro
//DRAWARROWUP(barindex,low) COLOURED(0,255,10)(GRIGIO)
endif
data8=(close[1] > open[1] and open > close and open >= close[1] and open[1] >= close and open – close > close[1] – open[1] )
if data8 then
x = 3
r = 34
g = 139
b = 34
//DRAWTEXT(“Bearish Engulfing”, barindex, high+atr*1.5, Dialog, Standard, 12) COLOURED(255,0,10) Verde
//DRAWARROWDOWN(barindex,high) COLOURED(255,0,10)(VERDE)
endif
data9=(open[1] > close[1] and close > open and close >= open[1] and close[1] >= open and close – open > open[1] – close[1] )
if data9 then
x = 1
r = 255
g = 0
b = 255
//DRAWTEXT(“Bullish Engulfing”, barindex, low-atr*1.5, Dialog, Standard, 12) COLOURED(0,255,10)Fuxia scuro
//DRAWARROWUP(barindex,low) COLOURED(0,255,10)(FUXIA)
endif
data10=(close[1] < open[1] and open < low[1] and close > close[1] + ((open[1] – close[1])/2) and close < open[1])
if data10 then
x = 1
r = 127
g = 255
b = 0
//DRAWT0EXT(“Piercing Line”, barindex, low-atr*1.5, Dialog, Standard, 12) COLOURED(0,255,10) Verde chiaro
//DRAWARROWUP(barindex,low) COLOURED(0,255,10)
endif
data14=(((high-low>4*(open-close))and((close-low)/(.001+high-low)>=0.75)and((open-low)/(.001+high-low)>=0.75)) and high[1] < open and high[2] < open)
if data14 then
x = 1
r = 128
g = 128
b = 128
//DRAWTEXT(“Hanging Man”, barindex, high+atr*1.5, Dialog, Standard, 12) COLOURED(255,0,10)Grigio scuro
//DRAWARROWDOWN(barindex,high) COLOURED(255,0,10)
endif
data15=((close[1]>open[1])and(((close[1]+open[1])/2)>close)and(open>close)and(open>close[1])and(close>open[1])and((open-close)/(.001+(high-low))>0.6))
if data15 then
x = 1
r = 238
g = 130
b = 238
//DRAWTEXT(“Dark Cloud Cover”, barindex, high+atr*1.5, Dialog, Standard, 12) COLOURED(255,0,10)Fuxia Chiaro
//DRAWARROWDOWN(barindex,high) COLOURED(255,0,10)
endif
RETURN x COLOURED(r,g,b) STYLE(histogram,1)