| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Bollinger Band Shading in Tradestation Does anyone know if there is a way to shade in the area between upper/lower Bollinger Bands as shown in attached pic? Thanks! | ||
| |
|
| | #2 | ||
![]() | Re: Bollinger Band Shading in Tradestation :-( | ||
| |
|
| | #3 | ||
![]() | Re: Bollinger Band Shading in Tradestation | ||
| |
|
| | #4 | ||
![]() | Re: Bollinger Band Shading in Tradestation Variables: barColorText("White"); Condition1 = Close > Close[1]; Condition2 = Close < Close[1]; Condition3 = Close = Close[1]; If Condition1 then barColorText = "Green" else if Condition2 then barColorText = "Red" else if Condition3 then barColorText = "Yellow"; Plot1(barColorText, "Bar Color"); | ||
| |
|
| | #5 | ||
![]() | Re: Bollinger Band Shading in Tradestation give this a try: set the first 2 plots as "bar high" and "bar low". Code: inputs: BollingerPrice( Close ), TestPriceUBand( Close ), TestPriceLBand( Close ), Length( 20 ), NumDevsUp( 2 ), NumDevsDn( -2 ), Displace( 0 ) ; variables: var0( 0 ), var1( 0 ), var2( 0 ), var3( 0 ) ; var0 = AverageFC( BollingerPrice, Length ) ; var1 = StandardDev( BollingerPrice, Length, 1 ) ; var3 = var0 + NumDevsUp * var1 ; var2 = var0 + NumDevsDn * var1 ; condition1 = Displace >= 0 or CurrentBar > AbsValue( Displace ) ; if condition1 then begin Plot1[Displace]( var3, "bar high" ) ; Plot2[Displace]( var2, "bar low" ) ; Plot4[Displace]( var3, "UpperBand" ) ; Plot5[Displace]( var2, "LowerBand" ) ; Plot6[Displace]( var0, "MidLine" ) ; if Displace <= 0 then begin condition1 = TestPriceLBand crosses over var2 ; if condition1 then Alert( "Price crossing over lower price band" ) else begin condition1 = TestPriceUBand crosses under var3 ; if condition1 then Alert( "Price crossing under upper price band" ) ; end; end ; end ; | ||
| |
|
| | #6 | ||
![]() | Re: Bollinger Band Shading in Tradestation I made an indicator with your code and on inputs typed high on testpriceUband and low on testpriceLband. It wouldn't accept bar high. On the chart it just shows a regular Bollinger Band and doesn't show any shading. Any thoughts? thank you for your help! | ||
| |
|
| | #7 | ||
![]() | Re: Bollinger Band Shading in Tradestation Plot1[Displace]( var3, "bar high" ) ; <--- set this as bar high Plot2[Displace]( var2, "bar low" ) ; <--- set this as bar low if you go to Format Study, you will see that I have entered the description of the 2 plots as "bar high" and "bar low". | ||
| |
|
![]() |
| Tags |
| bollinger bands, moving average |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rubber Band Indicator | neal51 | Trading Indicators | 42 | 02-05-2012 04:20 PM |
| Question regarding Bollinger Bands | Robert | Technical Analysis | 22 | 08-08-2009 10:37 PM |
| Problem with Better Bollinger Bands | HBBHVN | Coding Forum | 1 | 02-24-2009 06:12 AM |
| Indicator for Bollinger Band | pajusa | Technical Analysis | 5 | 03-20-2008 10:45 AM |
| Rsi w/Bollinger bands tradestation 8 | sergej | Coding Forum | 8 | 08-19-2007 06:04 PM |