[amibroker] Volatility bands on other indicators
Hi, Mike provided me with the volatility band formula to be used on RSI indicator. However, I would like to take the idea further and test the band on other indicators. Can someone help me with me Coefdwn = 2.1; Coefup = 2.3; //ATR custom Per = Param( ATR Prds, 15, 5, 20, 1 ); TH = IIf( Ref( RSIa( C, Per ), -1 ) RSIa( C, Per ),Ref( RSIa( C, Per ), -1 ), RSIa( C, Per ) ); TL = IIf( Ref( RSIa( C, Per ), -1 ) RSIa( C, Per ), Ref( RSIa( C, Per ), -1 ),RSIa( C, Per ) ); TR = TH - TL; Truerangecustom = MA( TR, per ); //Plot(Truerangecustom,,colorRed,styleLine); TOPBAND = MA( RSIa( Close, 14 ), 6 ) + ( Coefup * MA( TrueRangeCustom, 15 ) ); BOTBAND = MA( RSIa( Close, 14 ), 6 ) - ( Coefdwn * MA( TrueRangeCustom, 15 ) ); //MID = ( TOPBAND + BOTBAND ) / 2; RS = RSIa( Close, 14 ); //SIG = MA( RSI( 14 ), 3 ); Plot( TOPBAND, TB, colorRed, styleLine + styleThick + styleNoLabel ); //Plot( MID, MB, colorYellow, styleThick ); Plot( BOTBAND, BB, colorBrightGreen, styleLine + styleThick + styleNoLabel ); Plot( RS, RSI, colorWhite, styleDots); //Plot( SIG, Sig, colorGrey40, styleLine + styleNoLabel ); Plot(68,,31,1);Plot(50,,31,1);Plot(32,,31,1); Title = EncodeColor( colorRed ) + Top Band = + WriteVal( TOPBAND, 1.2 ) + \n + EncodeColor( colorBrightGreen ) + Bot Band = + WriteVal( BOTBAND, 1.2 ) + \n + //EncodeColor( colorYellow ) + Mid = + WriteVal( MID, 1.2 ) + \n + EncodeColor( colorWhite ) + RSI = + WriteVal( RS, 1.2 ) ;
Re: [amibroker] Volatility bands
Hi Mithal, and all -- Not to discourage your efforts, but no one will be able to develop, test, and validate a trading system, then trade it with confidence, without having skills in both programming and statistics. Please, take the time to learn AmiBroker's afl. Thanks, Howard On Sat, Jun 5, 2010 at 12:46 PM, Infinity Home Loans infynh...@yahoo.comwrote: Hi Mubashar, I am not at all comfortable with writing a formula, as I do not have any coding background. I have tried using BB but they do not serve the purpose as I had expected. Can you please try and provide some support in building this formula as per the tradestation code mentioned earlier? Regards Mithil --- On *Sat, 5/6/10, Mubashar Virk mvir...@gmail.com* wrote: From: Mubashar Virk mvir...@gmail.com Subject: Re: [amibroker] Volatility bands To: amibroker@yahoogroups.com Date: Saturday, 5 June, 2010, 11:15 AM It should be easy provided you have custom atr formula. On 6/4/2010 12:47 PM, infynhome wrote: I am referring to the book Technical analysis for the trading professional by constance brown. She had mentioned about Volatility band formula written in tradestation language. I need this formula to be converted into afl language. Can somebody help me with this. Input: Coefdwn[2.1] ,Coefup[2. 3]; Plot1[Average[ [RSI[Close, 14]],6]]+ [Coefup*[ Average[TrueRang eCustom[[ RSI[Close, 14]],[RSI[ close,14] ]],14]]], Plot1]; Plot2[Average[ [RSI[Close, 14]],6]]- [Coefup*[ Average[TrueRang eCustom[[ RSI[Close, 14]],[RSI[ close,14] ]],14]]], Plot2]; Plot3[[RSI[Close, 14]], plot 3]; IF CheckAlert Then Begin IF Plot1 Crosses Above Plot2 or Plot1 Crosses Below Plot2 or Plot1 Crosses Above Plot3 or Plot1 Crosses Below Plot3 or Plot2 Crosses Above Plot3 or Plot2 Crosses Below Plot3 Then Alert = TRUE; End; thanks Mithil
RE: [amibroker] Volatility bands
Instead of converting Brown's formula, just use her idea and come up with something simpler. Mubashar Virk has given you a good suggestion. Lionel From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of Mubashar Virk Sent: Saturday, June 05, 2010 12:46 AM To: amibroker@yahoogroups.com Subject: Re: [amibroker] Volatility bands It should be easy provided you have custom atr formula. On 6/4/2010 12:47 PM, infynhome wrote: I am referring to the book Technical analysis for the trading professional by constance brown. She had mentioned about Volatility band formula written in tradestation language. I need this formula to be converted into afl language. Can somebody help me with this. Input: Coefdwn[2.1],Coefup[2.3]; Plot1[Average[[RSI[Close,14]],6]]+[Coefup*[Average[TrueRangeCustom[[RSI[Clos e,14]],[RSI[close,14]]],14]]],Plot1]; Plot2[Average[[RSI[Close,14]],6]]-[Coefup*[Average[TrueRangeCustom[[RSI[Clos e,14]],[RSI[close,14]]],14]]],Plot2]; Plot3[[RSI[Close,14]], plot 3]; IF CheckAlert Then Begin IF Plot1 Crosses Above Plot2 or Plot1 Crosses Below Plot2 or Plot1 Crosses Above Plot3 or Plot1 Crosses Below Plot3 or Plot2 Crosses Above Plot3 or Plot2 Crosses Below Plot3 Then Alert = TRUE; End; thanks Mithil image001.jpgimage002.jpg
Re: [amibroker] Volatility bands
Hi Mubashar, I am not at all comfortable with writing a formula, as I do not have any coding background. I have tried using BB but they do not serve the purpose as I had expected. Can you please try and provide some support in building this formula as per the tradestation code mentioned earlier? RegardsMithil --- On Sat, 5/6/10, Mubashar Virk mvir...@gmail.com wrote: From: Mubashar Virk mvir...@gmail.com Subject: Re: [amibroker] Volatility bands To: amibroker@yahoogroups.com Date: Saturday, 5 June, 2010, 11:15 AM It should be easy provided you have custom atr formula. On 6/4/2010 12:47 PM, infynhome wrote: I am referring to the book Technical analysis for the trading professional by constance brown. She had mentioned about Volatility band formula written in tradestation language. I need this formula to be converted into afl language. Can somebody help me with this. Input: Coefdwn[2.1] ,Coefup[2. 3]; Plot1[Average[ [RSI[Close, 14]],6]]+ [Coefup*[ Average[TrueRang eCustom[[ RSI[Close, 14]],[RSI[ close,14] ]],14]]], Plot1]; Plot2[Average[ [RSI[Close, 14]],6]]- [Coefup*[ Average[TrueRang eCustom[[ RSI[Close, 14]],[RSI[ close,14] ]],14]]], Plot2]; Plot3[[RSI[Close, 14]], plot 3]; IF CheckAlert Then Begin IF Plot1 Crosses Above Plot2 or Plot1 Crosses Below Plot2 or Plot1 Crosses Above Plot3 or Plot1 Crosses Below Plot3 or Plot2 Crosses Above Plot3 or Plot2 Crosses Below Plot3 Then Alert = TRUE; End; thanks Mithil
[amibroker] Volatility bands
I am referring to the book Technical analysis for the trading professional by constance brown. She had mentioned about Volatility band formula written in tradestation language. I need this formula to be converted into afl language. Can somebody help me with this. Input: Coefdwn[2.1],Coefup[2.3]; Plot1[Average[[RSI[Close,14]],6]]+[Coefup*[Average[TrueRangeCustom[[RSI[Close,14]],[RSI[close,14]]],14]]],Plot1]; Plot2[Average[[RSI[Close,14]],6]]-[Coefup*[Average[TrueRangeCustom[[RSI[Close,14]],[RSI[close,14]]],14]]],Plot2]; Plot3[[RSI[Close,14]], plot 3]; IF CheckAlert Then Begin IF Plot1 Crosses Above Plot2 or Plot1 Crosses Below Plot2 or Plot1 Crosses Above Plot3 or Plot1 Crosses Below Plot3 or Plot2 Crosses Above Plot3 or Plot2 Crosses Below Plot3 Then Alert = TRUE; End; thanks Mithil
Re: [amibroker] Volatility bands
It should be easy provided you have custom atr formula. On 6/4/2010 12:47 PM, infynhome wrote: I am referring to the book Technical analysis for the trading professional by constance brown. She had mentioned about Volatility band formula written in tradestation language. I need this formula to be converted into afl language. Can somebody help me with this. Input: Coefdwn[2.1],Coefup[2.3]; Plot1[Average[[RSI[Close,14]],6]]+[Coefup*[Average[TrueRangeCustom[[RSI[Close,14]],[RSI[close,14]]],14]]],Plot1]; Plot2[Average[[RSI[Close,14]],6]]-[Coefup*[Average[TrueRangeCustom[[RSI[Close,14]],[RSI[close,14]]],14]]],Plot2]; Plot3[[RSI[Close,14]], plot 3]; IF CheckAlert Then Begin IF Plot1 Crosses Above Plot2 or Plot1 Crosses Below Plot2 or Plot1 Crosses Above Plot3 or Plot1 Crosses Below Plot3 or Plot2 Crosses Above Plot3 or Plot2 Crosses Below Plot3 Then Alert = TRUE; End; thanks Mithil