Aggiungere un avviso / allarme
Forums › ProRealTime forum Italiano › Supporto ProBuilder › Aggiungere un avviso / allarme
- This topic has 6 replies, 3 voices, and was last updated 7 years ago by
robertogozzi.
Viewing 7 posts - 1 through 7 (of 7 total)
-
-
04/06/2018 at 9:57 AM #67406
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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138DEFPARAM 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 prezzix = 0DojiSize = 0.05data=(abs(open – close) <= (high – low) * DojiSize)if data thenx = 1r = 127g = 255b = 212//DRAWTEXT(“Doji”, barindex, high+atr, Dialog, Standard, 12) COLOURED(R,G,B) Azzurroendifdata2=(close[2] > open[2] and min(open[1], close[1]) > close[2] and open < min(open[1], close[1]) and close < open )if data2 thenx = 3r = 255g = 0b = 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)endifdata3=(close[2] < open[2] and max(open[1], close[1]) < close[2] and open > max(open[1], close[1]) and close > open )if data3 thenx = 3r = 165g = 42b = 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)endifdata4=(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 thenx = 1r = 222g = 184b = 135//DRAWTEXT(“Shooting Star”, barindex, high+atr*1.5, Dialog, Standard, 12) COLOURED(255,0,10) Nocciola//DRAWARROWDOWN(barindex,high) COLOURED(255,0,10)endifdata5=(((high – low)>3*(open -close)) and ((close – low)/(.001 + high – low) > 0.6) and ((open – low)/(.001 + high – low) > 0.6))if data5 thenx = 1r = 95g = 158b = 160//DRAWTEXT(“Hammer”, barindex, high+atr, Dialog, Standard, 12) COLOURED(R,G,B) Avio Scuroendifdata5b=(((high – low)>3*(open -close)) and ((high – close)/(.001 + high – low) > 0.6) and ((high – open)/(.001 + high – low) > 0.6))if data5b thenx = 4r = 255g = 255b = 0//DRAWTEXT(“Inverted Hammer”, barindex, high+atr, Dialog, Standard, 12) COLOURED(R,G,B) Gialloendifdata6=(close[1] > open[1] and open > close and open <= close[1] and open[1] <= close and open – close < close[1] – open[1] )if data6 thenx = 1r = 255g = 127b = 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)endifdata7=(open[1] > close[1] and close > open and close <= open[1] and close[1] <= open and close – open < open[1] – close[1] )if data7 thenx = 1r = 169g = 169b = 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)endifdata8=(close[1] > open[1] and open > close and open >= close[1] and open[1] >= close and open – close > close[1] – open[1] )if data8 thenx = 3r = 34g = 139b = 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)endifdata9=(open[1] > close[1] and close > open and close >= open[1] and close[1] >= open and close – open > open[1] – close[1] )if data9 thenx = 1r = 255g = 0b = 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)endifdata10=(close[1] < open[1] and open < low[1] and close > close[1] + ((open[1] – close[1])/2) and close < open[1])if data10 thenx = 1r = 127g = 255b = 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)endifdata14=(((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 thenx = 1r = 128g = 128b = 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)endifdata15=((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 thenx = 1r = 238g = 130b = 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)endifRETURN x COLOURED(r,g,b) STYLE(histogram,1)Gianluigi
04/06/2018 at 10:37 AM #6741504/06/2018 at 11:22 AM #67423anche per questo codice123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657// The Hikkake Pattern, by Daniel Chesler, CMT// The 'Fakey' entry// coded by Violet// 28-11-2017//// For an explanation of the pattern, consult this webpage:// http://www.esignallearning.com/education/marketmaster/archive/2012/archive_index.aspx?date=041312// Also read this interesting report:// https://oxfordstrat.com/trading-strategies/hikkake-pattern///// Use it for market timing, but always in conjunction with position sizing and a sensible stoploss !// because like every other technique this one may failInsideBar = high[1] < high[2] and low[1] > low[2]FakeBullBar = low < low[1] and high < high[1]FakeBearBar = low > low[1] and high > high[1]// Long Setupif InsideBar and FakeBullBar thenHikkakeBull = 1 // flag for a potential bullish setupInsideBullBarHigh = high[1] // set the high of the insidebarInsideBarNumber = barindex - 1HikkakeBarNumber = barindex // signal bar, bar number of completed Hikkake setupendifif HikkakeBull thenWithinTimeLimit = (barindex - HikkakeBarNumber) <= 3if close > InsideBullBarHigh and WithinTimeLimit then//setup confirmed if price closes higher then InsideBullBarHigh within 3 bars after pattern completiondrawarrowup(barindex,low-range/8) coloured(0,255,125)drawsegment(InsidebarNumber,InsideBullBarHigh+ticksize,barindex,InsideBullBarHigh+ticksize)drawtext("▴",barindex,InsideBullBarHigh-ticksize, dialog,bold,20)HikkakeBull = 0 // reset pattern detection flagendifendif// Short/Sell setupif InsideBar and FakeBearBar thenHikkakeBear = 1 // flag for a potential bearish setupInsideBearBarLow = low[1] // set the low of the insidebarInsideBearBarNumber = barindex - 1HikkakeBearBarNumber = barindex // signal bar, bar number of completed Hikkake setup on third barendifif HikkakeBear thenWithinTimeLimit = (barindex - HikkakeBearBarNumber) <= 3if close < InsideBearBarLow and WithinTimeLimit then//setup confirmed if price closes lower then InsideBearBarow within 3 bars after pattern completiondrawarrowdown(barindex,high+range/8) coloured(255,0,0)drawsegment(InsideBearBarNumber,InsideBearBarLow-ticksize,barindex,InsideBearBarLow-ticksize)drawtext("▾",barindex,InsideBearBarLow - ticksize, dialog,bold,20)HikkakeBear = 0 // reset pattern detection flagendifendif//drawcandle(open, high, low,close)return04/06/2018 at 12:03 PM #67427Non è possibile inserire allarmi da ProBuilder, solo col trading manuale PRT consente l’iunserimento di allarmi visivi (pop up) e sonori.
04/08/2018 at 2:23 PM #6754404/08/2018 at 2:25 PM #6754504/08/2018 at 4:25 PM #67552ProOrder non può interagire con ProScreener e neppure creare allarmi.
-
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)