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.

simterann22

Members
  • Content Count

    64
  • Joined

  • Last visited

Everything posted by simterann22

  1. Here you go...... the formula will work with any.....as far as I know.... indicators. Just make sure if you're making your own MA or EMA etc to add 'accum' to the plot line in the EasyLanguage code. EMA GAPLESS.ELD MACD GAPLESS.ELD
  2. Bear in mind that John's original code in the above ELDs do not include an intra day filter. You may remove RelO = O; RelC = C; RelH = H; RelL = L; and replace with if BarType<=1 then //Valid only for Tick or Intraday begin RelO = O-Accum; RelC = C-Accum; RelH = H-Accum; RelL = L-Accum; end else begin RelO = O; RelC = C; RelH = H; RelL = L; end;
  3. Now I understand why John didn't make 'gapless' into a function....because indicators plotted on the same scale as the underlying eg. BBs will not plot correctly. He writes that for these 'accum' has to be added to the plot price. I made the gapless function for indicators in the subgraph. If you wish here is a copy of the raw code without the need of a function: variables: Avg( 0 ), SDev( 0 ), LowerBand( 0 ), UpperBand( 0 ), Price( 0 ); // gapless day transitions - John McCormick May 2008 Vars: RelO(0), // Relative Open RelH(0), // Relative High RelL(0), // Relative low RelC(0), // Relative Close gap(0), // the opening gap (modified by the gap coefficient) GapCoef(1.0), // Gap Coefficient Accum(0); // The sum of all the daily gaps if date<>date[1] then begin gap = GapCoef*(O-C[1]); Accum = Accum+gap; end; if BarType<=1 then //Valid only for Tick or Intraday begin RelO = O-Accum; RelC = C-Accum; RelH = H-Accum; RelL = L-Accum; end else begin RelO = O; RelC = C; RelH = H; RelL = L; end; // Gapless - end For the BB code for eg. your code should look like this: inputs: BollingerPrice( Close ), TestPriceUBand( Close ), TestPriceLBand( Close ), Length( 20 ), NumDevsUp( 2 ), NumDevsDn( -2 ), Displace( 0 ) ; variables: Avg( 0 ), SDev( 0 ), LowerBand( 0 ), UpperBand( 0 ), Price( 0 ); // gapless day transitions - John McCormick May 2008 Vars: RelO(0), // Relative Open RelH(0), // Relative High RelL(0), // Relative low RelC(0), // Relative Close gap(0), // the opening gap (modified by the gap coefficient) GapCoef(1.0), // Gap Coefficient Accum(0); // The sum of all the daily gaps if date<>date[1] then begin gap = GapCoef*(O-C[1]); Accum = Accum+gap; end; if BarType<=1 then //Valid only for Tick or Intraday begin RelO = O-Accum; RelC = C-Accum; RelH = H-Accum; RelL = L-Accum; end else begin RelO = O; RelC = C; RelH = H; RelL = L; end; // Gapless - end price = RelC; If BollingerPrice=open then price = RelO; If BollingerPrice=high then price = RelH; If BollingerPrice=low then price = RelL; Avg = AverageFC( Price, Length ) ; SDev = StandardDev( Price, Length, 1 ) ; UpperBand = Avg + NumDevsUp * SDev; LowerBand = Avg + NumDevsDn * SDev; if Displace >= 0 or CurrentBar > AbsValue( Displace ) then begin Plot1[Displace]( UpperBand + [HIGHLIGHT GREEN]accum[/HIGHLIGHT GREEN], "UpperBand" ) ; Plot2[Displace]( LowerBand + [HIGHLIGHT GREEN]accum[/HIGHLIGHT GREEN], "LowerBand" ) ; Plot3[Displace]( Avg + [HIGHLIGHT GREEN]accum[/HIGHLIGHT GREEN], "MidLine" ) ; { Alert criteria } if Displace <= 0 then begin if TestPriceLBand crosses over LowerBand then Alert( "Price crossing over lower price band" ) else if TestPriceUBand crosses under UpperBand then Alert( "Price crossing under upper price band" ) ; end ; end ; { ** Copyright (c) 2005 TradeStation Technologies, Inc. All rights reserved. ** ** TradeStation reserves the right to modify or overwrite this analysis technique with each release. ** } Find attached ELDs for a few of his indicators Enjoy. 20080601080830GAPLESS.ELD 20080602233304GL_ATR.ELD 20090606150816DMI_GAPLESS.ELD
  4. Here you go..... find the original thread attached. TS Forum Taming gap of indicators.pdf
  5. Here is a new squeeze indicator I have modified from open source code to ignore or partially ignore an opening gap. This may be helpful with futures but more so with stocks gapping in the opening of the session....so you can get in earlier I am still somewhat of a newbie and since joining this site I have grown exponentially. So I want to give something back. The idea was taken from John McCormick's gapless code: https://www.tradestation.com/Discussions/Topic.aspx?Topic_ID=77574 I've converted the gapless code into a function 'Gapless'...see ELD. You can then cut and paste the Gapless indicator addin code below into any indicator that will benefit and allow you to replace the o,h,l,c values within the code. eg. BBs, Stoch, RSI, MACD etc. ******* Please note I have placed a limit in the function so that the gapless addin will only work with tick or intraday charts. If you switch to a larger timeframe the values will default to the real o,h,l,c and your indicator will look 'normal' again. You do not have to touch a thing, just realise it will do this. Also 60min charts may come out distorted as the gaps are too close together in time. Lower time frame charts work best******* Please feel free to modify it to suit your needs and make it better.....and make sure you post of course. As per the 'Squeeze'.... the BB Squeeze: Enter after dots turn from red to green in the direction of the histogram. Confirm with Gaussean squeeze dots (BB False)....green up, red down, simple. Go flat when the BB dots turn red or there is loss of momentum (histogram turns). Remember you must always confirm with other indicators. Here is the code addin: {-------------Gapless Addin----------------------------} {'Gapless code' initially written by John McCormick May 2008 Converted by Simterann22 2009 The idea is that at a gap opening any indicator that relies on previous bars to calculate its values will be distorted. This addin 'ignores' the gap. Function 'Gapless' will only return gapless value if tick or intraday chart else normal value.} // Simply cut and paste this into your code below your current vars : Vars: RelO(0), // Relative Open RelH(0), // Relative High RelL(0), // Relative low RelC(0); // Relative Close relO=Gapless(1.0,O); //set Gapless coefficent to 1.0 to ignore gap(Gapless),0.5 Halfgap,0.0 Include Gap(Normal) relH=Gapless(1.0,H); relL=Gapless(1.0,L); relC=Gapless(1.0,C); //now replace all O,H,L,C with RelO,RelH,RelL,RelC in your code {--------------End Gapless Addin-------------------------} @SK_SQUEEZE.ELD
  6. Edabreu, I like your style. I am drawn towards scalping with the idea that every trade should begin as a scalp....and welcome the gravy if it comes your way. What fast MA are you using overlayed on your charts? HMA? JMA? I've found trading the morning session with a 133 tick chart on the ES good. This small timeframe has been good to minimize stops. I've added to my trading using 3 different timeframes charts side by side to enable me to get a bigger picture. I've managed to catch breakouts by placing bracket orders outside of "small" congestion boxes. BTW....thanks to all those who have left comments following my post.
  7. For my other projects I have written extra code for but this one I did not know where to find the "trigger' bar in the code. So to answer your question I have not written any new code as such. I figured if I could find this then it's just a simple 'plot' command.....
  8. Awesome guys. Thanks for the responses. I guess I still haven't worked out how I want to trade yet. I like a new indicator so I adapt. There's the problem. I like the squeeze but I think by nature I'm a kind of 'hit and run' congestion guy. ....maybe I just want it all !!!!!!! LOL I read a lot about the 'real traders' trading off volume and price only. Is that ultimately the best way to trade? My intention is to eventually learn to read the tape and understand market dynamics more....with a hell of a lot of reading! :missy: So do you think it's the case of making life more difficult with indicators? In other words .....abide by the KISS principle?
  9. Hi all..... I have been travelling the typical newbie trader's trail....first buying and selling by 'gut instinct' LOL ....then looking for gurus to tell me when to buy and sell....to looking for the Holy Grail..... :crap: Well anyway....I've read John Carter's book "Mastering The Trade" and this opened up a whole new lot of practical insight for me. I am currently testing a squeeze based strategy using the 'PBF' clone squeeze along with the BR_PaintBars similar to the TTM Trend and the Scalper Alert. The strategy works okay when there is momentum but I get slaughtered trying to trade the signals when there is CHOP. Not saying I can't trade the chop (I would love to trade the chop) but the Scalper Alerts are too late to help me get in at the turn. I found a CCI helped in catching the choppy turns but I wanted to know what I can use to determine the shift of a trending market to a choppy consolidation so I can adjust my method. The small blue and red dots on the chart on TS are an ADX show me I coded to tell me when the ADX of 14 rises above 20. The white/magenta, blue/red lines are two fast Hull MA's. I may be staring the answer to my problem right in the face :doh: .... so any help will be welcome... Thanks.
  10. Hi guys..... can someone please help me....I've been racking my brains for hours :crap: I don't like to ask unless I've tried myself though... :doh: so here it is: I like to use the Scalper Alert but would like to see the trigger bar painted to get an early warning of the swing high bar being painted....similar to PBFs yellow trigger bars. {Scalper Buys and Sells 7/18/2007 Written by Luis Gomez inspired by John Carters "Mastering the Trade" } inputs: buyColor(white), sellColor(white), width(1); variables: highBarsAgo(1), possibleHighBarsAgo(1), possibleHigh(-2), hightoBeat(-1), barsSincePaint(1), lowBarsAgo(1), possibleLowBarsAgo(1), possibleLow(10000001), lowtoBeat(10000000), triggerPriceSell(-1), triggerPriceBuy(1000000), trend(1), _UP(1), _DOWN(-1), _ON(1), _OFF(-1); //*************************************************** //****** Find and plot the highest swing high ******* //*************************************************** if trend = _UP then begin if swingHighBar(1,H,2,barsSincePaint+2) > -1 then begin possibleHighBarsAgo = swingHighBar(1,H,2,barsSincePaint+2); possibleHigh = H[possibleHighBarsAgo]; end; if possibleHigh >= hightoBeat then begin highBarsAgo = possibleHighBarsAgo; hightoBeat = possibleHigh; triggerPriceSell = L[HighBarsAgo - 1]; end; if C < triggerPriceSell and highest(high,highBarsAgo) < hightoBeat then begin plotpb[highBarsAgo](H[highBarsAgo],L[highBarsAgo],"",sellColor); alert("Scalper Sell"); trend = _DOWN; barsSincePaint = highBarsAgo-1; hightoBeat = -1; lowtoBeat = 10000000; triggerPriceBuy = 10000000; triggerPriceSell = -1; highBarsAgo = 1; possibleHigh = -2; end; end; //*************************************************** //****** Find and plot the lowest swing low ********* //*************************************************** if trend = _DOWN then begin if swingLowBar(1,L,2,barsSincePaint+2) > -1 then begin possibleLowBarsAgo = swingLowBar(1,L,2,barsSincePaint+2); possibleLow = L[possibleLowBarsAgo]; end; if possibleLow <= lowtoBeat then begin lowBarsAgo = possibleLowBarsAgo; lowtoBeat = possibleLow; triggerPriceBuy = H[LowBarsAgo - 1]; end; if C > triggerPriceBuy and lowest(L,lowBarsAgo) > lowtoBeat then begin plotpb[lowBarsAgo](H[lowBarsAgo],L[lowBarsAgo],"",buyColor); alert("Scalper Buy"); trend = _UP; barsSincePaint = lowBarsAgo-1; possibleLow = 10000001; lowtoBeat = 10000000; hightoBeat = -1; triggerPriceBuy = 10000000; triggerPriceSell = -1; lowBarsAgo = 1; end; end; barsSincePaint = barsSincePaint+1; if trend = _UP then highBarsAgo = highBarsAgo + 1; if trend = _DOWN then lowBarsAgo = lowBarsAgo + 1; setPlotWidth(1,width); Thanks a lot.
  11. I'm using 8.6 2525. I'll have to look into that! In other words....I may be staring at the screen for a little while longer than I thought?
  12. Hi all, I tried out Blu-Ray's BR indicators and am working on a mechanical system in which to trade with them. Well done Blu-Ray! http://www.traderslaboratory.com/forums/f46/various-indicators-squeeze-2fastmas-etc-3688.html I have the BR_squeeze radar screen set up to alert me of a squeeze.... but have found a more reliable signal when the squeeze, the upper two BR_trend_bars and the BR_CCI (crosses zero) confirm each other...along of course with the BR_Paintbars. But of course I have to be watching the charts to see these happen. :missy: Since I am completely new to TS and EL is there a way to create one radar alert that responds to these signals when they align? Thanks in advance.....
  13. Check out masterthegap.com I subscribed to Scott Andrews' service for a couple of months. He uses statistical data to trade the opening gap everyday in the eminis.....plus pivot points etc. He does a pretty good job of it. I stopped subscribing because I wasn't trading futures at the time....now I am...so I'll probably subscribe again. He put out a book called "Understanding Gaps" which is useful
×
×
  • Create New...

Important Information

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