Alert sound with signal
Forums › ProRealTime English forum › ProBuilder support › Alert sound with signal
- This topic has 5 replies, 2 voices, and was last updated 2 years ago by cavineet.
Viewing 6 posts - 1 through 6 (of 6 total)
-
-
05/08/2021 at 8:31 PM #16913605/09/2021 at 9:01 AM #169147
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:
1RETURN 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).
1 user thanked author for this post.
05/10/2021 at 12:03 AM #16921405/10/2021 at 4:57 AM #16922005/10/2021 at 9:34 AM #169236Here is the screener:
1234567891011121314151617181920212223242526272829303132333435//PRC_Pivot Reversal Strategy indicator - 14.02.2019 - Nicolas @ www.prorealcode.com////DEFPARAM CalculateOnLastBars = 1000// --- settingsleftp = 4rightp = 2//period=max(leftp,rightp)hh = highest[period](high)ll = lowest[period](low)if hh<>hh[1] thenhhbar=barindexhhprice=highendifif ll<>ll[1] thenllbar=barindexllprice=lowendifif barindex-hhbar=rightp then//drawtext("•",hhbar,hhprice) coloured(168,168,168)top=hhpriceendifif barindex-llbar=rightp then//drawtext("•",llbar,llprice) coloured(168,168,168)bottom=llpriceendifif high crosses over top and lastsig<=0 then//drawarrowup(barindex,low-atr/2) coloured(30,144,255)lastsig=1endifif low crosses under bottom and lastsig>=0 then//drawarrowdown(barindex,high+atr/2) coloured(255,48,48)lastsig=-1endifSCREENER[lastsig <> lastsig[1]]05/10/2021 at 2:40 PM #169295 -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)