Alert sound with signal
- This topic has 5 replies, 2 voices, and was last updated 4 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
Similar topics:
Forums › ProRealTime English forum › ProBuilder support › Alert sound with signal
Indicators cannot set alarms. They can only RETURN data and those data can be used by manually setting alerts with the built-in ALARM tool.
Change the RETURN line this way:
1 |
RETURN lastsig <> lastsig[1] as "Signal Change" |
then set an alert with the ALERT tool (bell) on the PRT toolbar (pic X), the set it to activate whenever the RETURNed value is 1 (pic Y).
Here is the screener:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
//PRC_Pivot Reversal Strategy indicator - 14.02.2019 - Nicolas @ www.prorealcode.com // //DEFPARAM CalculateOnLastBars = 1000 // --- settings leftp = 4 rightp = 2 // period=max(leftp,rightp) hh = highest[period](high) ll = lowest[period](low) if hh<>hh[1] then hhbar=barindex hhprice=high endif if ll<>ll[1] then llbar=barindex llprice=low endif if barindex-hhbar=rightp then //drawtext("•",hhbar,hhprice) coloured(168,168,168) top=hhprice endif if barindex-llbar=rightp then //drawtext("•",llbar,llprice) coloured(168,168,168) bottom=llprice endif if high crosses over top and lastsig<=0 then //drawarrowup(barindex,low-atr/2) coloured(30,144,255) lastsig=1 endif if low crosses under bottom and lastsig>=0 then //drawarrowdown(barindex,high+atr/2) coloured(255,48,48) lastsig=-1 endif SCREENER[lastsig <> lastsig[1]] |
Find exclusive trading pro-tools on