Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

caglebagle

Members
  • Content Count

    15
  • Joined

  • Last visited

Everything posted by caglebagle

  1. All I can think of is to try reinstalling it from the .eld file or maybe try placing carets around the the Tl_delete and text delete commands at bottom of code......this will force the price lines to always be displayed. It's been working on my machine with version 8.6, so I'm not really sure why it's misbehaving. Hope it helps, JC :missy:
  2. You won't see anything until the keltners enter the bb's unless you turn the bands on. The lines disappear once the keltners exit. Try turning the bands on just to check if it's displaying. JC
  3. You may need to add some space to the right side of the chart....try 20 bars or so....:missy: JC
  4. Make sure a squeeze is occurring or else the price lines will not be drawn. This is intentional. Try changing the plotbb setting to true to check if it's working. Also be sure you also installed the necessary function elds. JC
  5. The default settings for the standard BB Squeeze are: bblength 20 NumDevsUp 2 NumDevsDn 2 Displace 0 kLength 20 NumATR's 1.5 nk 1.5 Hope this helps.. JC
  6. I found another squeeze related indicator that I coded a while back. This one is a paintbar indicator and paints the bars when a squeeze is entered. It works well with the above indicator and the BB Squeeze indicator. JC SQUEEZRPB.ELD
  7. K.....the functions needed for the indicator are posted now. That should solve it. :crap: JC
  8. k.....ELD posted. Let me know if you get it working....It verified for me. I'm using 8.6 build 2612 fwiw
  9. Here's a pic. This indicator is made to be used in conjunction with the BB Squeeze indicator FWIW. JC
  10. Here's a little indicator I coded a while back which displays the upper and lower band values when a bollinger band squeeze is on. The price lines disappear when the bands exit the squeeze. The idea is to place an entry bracket at price lines in anticipation of the breakout. Hope someone finds it useful. inputs: BollingerPrice( close), bbLength( 13 ), NumDevsUp( 2 ), NumDevsDn( -2), Displace( 0 ) , kPrice( Close ), kLength( 13 ), NumATRs( 1.5 ), Plotbb(false); variables: bbAvg( 0 ), kAvg(0), SDev( 0 ), bbLowerBand( 0 ), bbUpperBand( 0 ), Shift( 0 ), kLowerBand( 0 ), kUpperBand( 0 ), decimals(autodecimals), rndbbupperband(0), rndbblowerband(0); {bb} bbAvg = AverageFC( BollingerPrice, bbLength ) ; SDev = StandardDev( BollingerPrice, bbLength, 1 ) ; bbUpperBand = bbAvg + NumDevsUp * SDev ; bbLowerBand = bbAvg + NumDevsDn * SDev ; {kc} kAvg = AverageFC( kPrice, kLength ) ; Shift = NumATRs * AvgTrueRange( kLength ) ; kUpperBand = kAvg + Shift ; kLowerBand = kAvg - Shift ; {bb} If plotbb=true then begin if Displace >= 0 or CurrentBar > AbsValue( Displace ) then begin Plot1[Displace]( bbUpperBand, "UpperBand" ) ; Plot2[Displace]( bbLowerBand, "LowerBand" ) ; Plot3[Displace]( bbAvg, "MidLine" ) ; end; {kc} if Displace >= 0 or CurrentBar > AbsValue( Displace ) then begin Plot4[Displace]( kUpperBand, "UpperBand" ) ; Plot5[Displace]( kLowerBand, "LowerBand" ) ; end; end; If bbUpperBand<=kUpperband or bbLowerband>=klowerband then begin setplotcolor(1,yellow); setplotcolor(2,yellow); end; if lastbaronchart then begin value1=TL_new(currentdate, currenttime+5, bbUpperband, currentdate, currenttime+5, bbUpperband); value2=TL_new(currentdate, currenttime+5, bbLowerband, currentdate, currenttime+5, bbLowerband); TL_SetExtRight(1, true); TL_SetExtRight(2, true); TL_SetStyle(1, tool_solid); TL_SetStyle(2, tool_solid); TL_SetColor(1, yellow); TL_SetColor(2, yellow); TL_SetSize(1, 0); TL_SetSize(2, 0); rndbbupperband=roundinst(bbupperband); rndbblowerband=roundinst(bblowerband); value3=Text_New(Date, time, 0, numtostr(rndbbupperband,decimals)); Text_SetLocation(1, currentDate, currenttime+5, bbupperband); Text_SetColor(1, green); value4=Text_New(Date, Time, 0, numtostr(rndbblowerband,decimals)); Text_SetLocation(2, currentDate, currenttime+5, bblowerband); Text_SetColor(2, red); If bbUpperBand>=kUpperband or bbLowerband<=klowerband then begin TL_Delete(1); TL_Delete(2); Text_Delete(1); Text_Delete(2); end; end; Let me know if you have any issues. Squeezer.eld is the indicator. Auto Decimals.eld and RoundInst.eld are functions referenced in the indicator. JC SQUEEZER.ELD AUTO DECIMALS.ELD ROUNDINST.ELD
  11. There are 6 bar levels in TS.....What you described is the problem with the indicator......it has to be calibrated to the chart you are using. I have had best results on minute charts and very small tick charts......i.e 55 tick. Here's what the inputs mean: AvgLength(5)-----> Length that volume average is calculated over LowestVolWidth(0)-----> Width of thinnest bar type LowVolWidth(1)-----> Width of next bar type NormalVolWidth(3)-----> "" HighVolWidth(3.5)-----> "" HighestVolWidth(5)-----> "" LowestVolumeMult(.25)-----> Threshold Percent of Average volume to calculate thinnest bar type LowVolumeMult(.5)----->next percent volume threshold HighVolumeMult(.9)----->next threshold HighestVolumeMult(1.25)------->next threshold so Volume Multiple*Average Volume over x bars=Volume trigger threshold. You probably want to adjust the HighestVolumeWidth input. A higher value of 6 will make the bars larger...Alternatively you can adjust the sensitivity of how the larger bars are triggered by adjusting the HighestVolumeMult input...Or you can adjust the AVGLength, but this will affect all bar types. Hope this helps. JC
  12. When applied to a tick chart, the width/color of the bars reacts much differently than when on a time based chart.......I think CQG even uses a different approach for tick charts. I'm sure lack of programmatic access to the bid/ask data in tradestation is definitely a hindrance, but nevertheless I like where this indicator is headed.........very useful. JC
  13. And here's the code: inputs: AvgLength(5), LowestVolWidth(0), LowVolWidth(1), NormalVolWidth(3), HighVolWidth(3.5), HighestVolWidth(4.5), LowestVolumeMult(.25), LowVolumeMult(.5), HighVolumeMult(.9), HighestVolumeMult(1.25); vars: VolAvg(0), mintick(0), BarVol(0), BarRange(0), Floatpoint(0), MidSection(0), Vol(0), NoVolume(0), LowestVolume(0), LowVolume( 0 ), HighVolume(0), HighestVolume(0), AvgVol( 0 ); if bartype < 2 then begin Mintick = minmove/pricescale; BarVol = upticks / ticks *100; {percentage of upticks} BarRange = (h-l)*2; {Number of minticks in a bar} Floatpoint = ((BarRange * BarVol)/100)/2; MidSection = l + floatpoint; AvgVol = Average( ticks, AvgLength ) ; LowestVolume=AvgVol*LowestVolumeMult; LowVolume = AvgVol * LowVolumeMult; HighVolume=AvgVol*HighVolumeMult; HighestVolume=AvgVol*HighestVolumeMult; Plot1(o,"Open"); Plot2(c,"Close"); Plot3(h,"High"); Plot4(MidSection,"Middle"); Plot5(MidSection,"Middle"); Plot6(Low,"Low"); If ticks < LowestVolume then begin setplotcolor(3,rgb(64,0,0)); setplotwidth(3,LowestVolWidth); setplotcolor(4,rgb(64,0,0)); setplotwidth(4,LowestVolWidth); setplotcolor(5,rgb(0,64,0)); setplotwidth(5,LowestVolWidth); setplotcolor(6,rgb(0,64,0)); setplotwidth(6,LowestVolWidth); end; If ticks>LowestVolume and ticks < LowVolume then begin setplotcolor(3,darkred); setplotwidth(3,LowVolWidth); setplotcolor(4,darkred); setplotwidth(4,LowVolWidth); setplotcolor(5,darkgreen); setplotwidth(5,LowVolWidth); setplotcolor(6,darkgreen); setplotwidth(6,LowVolWidth); end; {normal Volume} if ticks>LowVolume and ticks<HighVolume then begin setplotwidth(3,NormalVolWidth); setplotcolor(3,rgb(160,0,0)); setplotwidth(4,NormalVolWidth); setplotcolor(4,rgb(160,0,0)); setplotwidth(5,NormalVolWidth); setplotcolor(5,rgb(0,160,0)); setplotwidth(6,NormalVolWidth); setplotcolor(6,rgb(0,160,0)); end; if ticks > HighVolume and ticks<HighestVolume then begin setplotwidth(3,HighVolWidth); setplotcolor(3,rgb(192,0,0)); setplotwidth(4,HighVolWidth); setplotcolor(4,rgb(192,0,0)); setplotwidth(5,HighVolWidth); setplotcolor(5,rgb(0,192,0)); setplotwidth(6,HighVolWidth); setplotcolor(6,rgb(0,192,0)); end; if ticks > HighestVolume then begin setplotwidth(3,HighestVolWidth); setplotcolor(3,red); setplotwidth(4,HighestVolWidth); setplotcolor(4,red); setplotwidth(5,HighestVolWidth); setplotcolor(5,green); setplotwidth(6,HighestVolWidth); setplotcolor(6,green); end; END; {Bartype < 2}
  14. Thanks BlueRay for your work on this....I tried a few things here, but I'd like to figure out how to make it work better on tick charts. Maybe some of the better coders can give it a whack... Here is a link with some great info......http://www.hartleandflow.com/5/tradeflow/2007/05/tradeflow-studies.html JC TRADEFLOWV2.ELD
  15. Wow........that's a very useful site! Thanks.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.