Sound Alert for RSI level
T
Not sure what you mean by 'touches' the levels
RSI is usually used as a measure of over-extension of a move, or to detect divergence from price action
This EA code example detects breaks through the levels & would normally be used to close one trade or in confirmation of a new one
As ever, OTTOMH :)
-BB-
#property link "http://www.selectfx.net" extern int RSI.Upper.Level = 70; extern int RSI.Lower.Level = 30; init() { } deinit() { } start() { double RSI_0 = iRSI(NULL,0,14,PRICE_CLOSE,0) double RSI_1 = iRSI(NULL,0,14,PRICE_CLOSE,1) if((RSI_0 > RSI.Lower.Level) && (RSI_1 <= RSI.Lower.Level)) PlaySound("yankee doodle.wav"); // coming up thru if((RSI_0 < RSI.Upper.Level) && (RSI_1 >= RSI.Upper.Level)) PlaySound("whistle dixie.wav"); // going down thru }
T
Not sure what you mean by 'touches' the levels
RSI is usually used as a measure of over-extension of a move, or to detect divergence from price action
This EA code example detects breaks through the levels & would normally be used to close one trade or in confirmation of a new one
As ever, OTTOMH :)
-BB-
Hi BarrowBoy,
I'm geting 'RSI_1' - variable not defined error with the above code.
How to fix this error?
regards
OK...
Try this version
#property link "http://www.selectfx.net" extern int RSI.Upper.Level = 70; extern int RSI.Lower.Level = 30; int init() { return(0); } int deinit() { return(0); } int start() { double RSI_0 = iRSI(NULL,0,14,PRICE_CLOSE,0); double RSI_1 = iRSI(NULL,0,14,PRICE_CLOSE,1); if((RSI_0 > RSI.Lower.Level) && (RSI_1 <= RSI.Lower.Level)) PlaySound("yankee doodle.wav"); // coming up thru if((RSI_0 < RSI.Upper.Level) && (RSI_1 >= RSI.Upper.Level)) PlaySound("whistle dixie.wav"); // going down thru return(0); }
Hello guys,
Do you have an EA that play sound when certain RSI level is reached? Example : RSI Level = 5
Nothing should be done Just simply play sound as an alert.
Dear all, I'm new to this trading platform and not great with programming either. Can some one send me a script that can monitor the RSI level (e.g. when it touches 30% or 70%) and give a sound alert.
My email address is : tayyf88@singnet.com
I appreciate your reading of this post.
Regards,
YF