| B-Swing Template w/DYO, New Markers, Continuing a DYO, Using Same GV#s, Copy Tab, and many other tidbits. |
January 26 , 2005
16:33 @Ensign_HA: Welcome to today's training class with the Ensign developers
16:33 @Ensign_HA: Today's class will focus on the design of the B-Swing template which can be downloaded from the Ensign web site.
This B-Swing template was modified on 1-28-05. Modifications are at Quick Tip: Changes to B-Swing and Why
16:33 @Ensign_HA: Use the Internet Services form to download the template.
16:34 @Ensign_HA: Also, the template will ONLY work with the 01-26 (or later) Beta version (or later). So if you do not have the 01-26 Beta, you can upgrade to the needed version using the Internet Services form. If you have the Beta Ensign Windows Jan 26 line showing as in the example. If you do not have the line showing on the Download form, then use your web browser to get the Beta version from the link for Beta on the Download page of the Ensign web site.

16:36 @Ensign_HA: OK, Buffy and others in the B-Line chat room have been attempting to create a signal from a combination of things that they see aligning on small time frame charts.
16:36 @Ensign_HA: Today's example will use the ES #F 75 Range chart as a small time frame chart.
16:37 @Ensign_HA: The template should work on other time frame charts, regardless of whether they are minute, constant tick, constant volume or constant range charts. Some of the template parameters may need adjusting for the particular chart you wish to use the template with.

16:38 @Ensign_HA: This is an example of what the template looks like when applied to a chart with a white background. The two gray bands are created by having 2 Keltner channel studies on the chart with different Multipliers. And the space between the two upper Keltner bands is shaded in gray, and the space between the two lower keltner bands is shaded in gray. The chart has the Auto Trends study tool present with the trend lines hidden.
6:41 @Ensign_HA: The Trends tool is one of the studies tested, and the only visual from the Auto Trends is the Blue Balls seen on swing highs and swing lows.
16:42 @Ensign_HA: The Pesavento Patterns tool is on the chart, with its lines hidden. Again it is tested, and its only visual contribution is the Red Balls on the swing highs and swing lows.
16:43 @Ensign_HA: Finally, big arrows point downward at swing tops of interest, and upward at swing bottoms of interest.
16:43 @Ensign_HA: The primary purpose of the template is to test for various study conditions and show the big arrows when they conditions exist. Now let me start through the individual studies on the chart to show their properties and discuss the visual they contribute.
16:44 @Buffy2: they are not auto buy / sell signals but they are a 'look at me" to see if setup is there.
Keltner Channels

16:45 @Ensign_HA: The first study in the B-Swing template is a Keltner channel study, and you can adjust the Multiplier and the Average to be what you want. This multiplier should be larger than the 2nd Keltner channel we will show next.
16:45 @Ensign_HA: One cleverness for getting the shaded bands was to use the Spread marker with the light gray color you see on the Upper Band.
Settings for Keltner bands for ES in Bline Room:
Keltner 2,20 exp and 4,20 exp or
Keltner 2,30 WMA and 4,30 WMA
16:46 @Ensign_HA: This will shade from this Upper Band to this study's Lower Band.
16:47 @Ensign_HA: Yes, that is more than you expected, but we will use the next Keltner to subtract color in the middle. This is just part of the efficiency I resorted to using instead of adding Alert objects to color between the upper and lower bands.

16:47 @Ensign_HA: This is the 2nd Keltner study property form, and note that its Multiplier is smaller than the first Keltner. Therefore, its upper and lower bands will be inside of the first Keltner bands.
16:48 @Ensign_HA: You can adjust the Multiplier to catch the swing tops and swing bottoms of interest to you..... a smaller value will catch more swing tops.
16:49 @Ensign_HA: Note that the Marker is again the fat spread, and note that the color is the chart background color which is white for my example.
16:49 @Ensign_HA: If you use a different chart background color, then this is the marker color square you need to change to restore your background color in the middle of the keltner bands.
16:50 @Ensign_HA: Any questions about the 2 keltners and how they accomplish the visual of color between the upper bands and the lower bands?
16:51 @Ensign_HA: There are other ways to color the bands using alerts, but I accomplished the band coloring without using alerts doing with way with the 2 keltners.
An Example - (would need one for the reverse):

Heikin-Ashi Bars

16:52 @Ensign_HA: This is my property form for the Heikin-Ashi study, and note the color boxes on the High and the Low lines.
16:52 @Ensign_HA: These two colors will color the Up (high) and Down (low) candles.
16:53 @Ensign_HA: This is a new feature in recent beta versions, and permits your H-Ashi bars to be colored differently than your regular chart candlesticks.
16:53 @Ensign_HA: on my chart, the regular candles use solid green and solid red candle bodies and the HA candles use the cyan and yellow candle bodies.
16:54 @Ensign_HA: The combination of the 4 colors makes for a good visual of which is which.
Change these colors to match your candles if you do NOT want the bars to have 4 different colors.
Auto Trend

(Settings Bline room uses min size 1, min bars 5)
16:55 @Ensign_HA: This is the Auto Trends property form showing that the Trend line style is blank so no line is drawn, yet a Blue ball is to be shown. This blue ball shows on the swing high and swing low points as they develop
16:54 Red: color bars = what setting on your chart?
16:56 @Ensign_HA: Red, Color Bars will be Close vs Open which is the norm for candlesticks.
Pesavento Patterns

(Settings size 0, bars 4)
16:57 @Ensign_HA: This is the Pesavento Patterns property form, and again line style is set to blank so swing lines are not drawn.
16:57 @Ensign_HA: However, Red Ball markers will show at swing highs and swing low points, similar to those drawn by the Auto Trends study.
16:58 @Ensign_HA: Ok, now we have all of the parts in place to do the 5 condition tests for the big arrows. We will use the new Design Your Own study feature to gather all of the conditions together
Apply the Design Your Own study - It may be at bottom or alphabetical


17:00 @Ensign_HA: On the DYO property form, the DYO has been given a name, it plots on the Chart and uses the Chart Scale.
17:02 @Ensign_HA: Line A will test for the Heikin Ashi candle being an Up Candle... that is the 1st condition for a High Swing arrow. Writes to 10.
17:02 @Ensign_HA: Line B, tests the 2nd condition where the regular candlestick needs to be a Down Candle. Writes to 11.
17:03 @Ensign_HA: Line C tests the Auto Trends for the bar being a Swing High Bar. Writes to 12.
17:03 @Ensign_HA: Line D tests the Pesavento Patterns for the bar being a Swing High Bar, meaning this bar has one of the Pesavento balls on it. Writes to 13.
17:04 @Ensign_HA: the 5th condition is done on line E which is the bar high has to be above the inner keltner channel upper band. Writes to 14.
17:05 @Ensign_HA: Lines A through E are reading boolean flags (true or flase) from the studies and writing these boolean flags in Global Variables [10] through [14]
17:05 @Ensign_HA: So when A through E evaluate we will end up with 5 flags in a sequence in the GVs. This lends itself to be used by Line F for the big test for all 5 being True simultaneously.
17:07 @Ensign_HA: Line F reads IF AND[#] and the number is 5 meaning we will do the AND operation on a set of 5 GVs, starting with GV number [10] because the Read GV is set to 10
17:08 @Ensign_HA: Line F is a condition that when True will allow Line G to execute.
17:09 @Ensign_HA: If Line F is a False, then Line G is skipped. We use Line G to get the bar High and add a little offset of 0.5 (adjust for different markets) and use that price to plot the Big arrow.
17:10 @Ensign_HA: So only Line G is plotted, and even that is conditional depending on Line F finding 5 Trues in sequence.
17:11 @Ensign_HA: any questions about the logic for the 5 tests? and how the final test is accomplished??
17:10 @Ensign_HA: now, we have used as 2nd DYO to test the same type of 5 conditions for the opposite, to plot the big up arrow below the swing bottoms.

New Markers
17:12 @Ensign_HA: Now the big arrow is a replacement of the hollow arrows in prior versions. Also, you will find a few new markers on the bottom of the marker drop down list. There is a thin line the width of the bar spacing (as requested) and a couple of fat pointers.
Continuing DYO
17:12 Drwar: Can the DYO chain to different tabs to extend the conditions
17:14 @Ensign_HA: drwar, DYO cannot chain to other tabs, but you can add more DYOs and continue your implementation. In this case I had to use 2 DYOs to do the 10 tests I wanted
17:15 Drwar: But what if I had say 20 conditions. Can a DYO output a GV so at some point the results could be anded or Or'd
17:16 @Ensign_HA: yes Drwar, the GVs are global and hold values from one DYO to the next for your continuation.
17:14 pluto: 6E #F no arrows
17:15 @Ensign_HA: 6E, you probably need a different little offset from the bar high or bar low on line G in both DYO forms. The 0.50 is a nice offset for the ES but way too big for the 6E symbol.
(This adjustment is no longer needed as the markers now have position of Above H 4 and Below Low 4)
DYO Logic
17:15 zol2: re DYO logic, .. Does the logic flow down.. ie, A+B must be true for C to plot? and A+B+C = true for D .. etc?
17:16 @Ensign_HA: no zol, each line was solo to itself and stored its singular boolean result in a different GV. Then Line F looked at the 5 stored booleans starting in [10]
17:17 zol2: got it..
17:40 zol2: there's some signals on that 6e chart that don't have corresponding autotrend or pes patterns, .. doesn't match the dyo study logic does it ?
17:41 @Ensign_HA: zol2, THEY DID at the time the bar with the arrow was a current bar. The trends and the pesavento then moved the balls to lower lows in the downtrend or higher highs in the up trend
17:42 zol2: got it
7:42 @Ensign_HA: great
Variable Quote Page

17:18 @Ensign_HA: for debugging purposes you can go to the quote page and type in Variables as the custom quote page. This will show a special table of all 100 GVs.
17:18 @Ensign_HA: in this example you can see that GVs 20, 22, 23 and 24 are true and 21 is a false (blank)
17:19 @Ensign_HA: so the 5 boolean test for all being true would be a False
17:19 @Ensign_HA: and this is a row from the 2nd DYO which stored in [20]...[24] and the result stored in [25]
17:19 @Ensign_HA: so [25] is correct to be a False right now
GVs - When can use same numbers
17:18 croc: are the GVs global to one chart or global across multiple charts? meaning can I use the same template on multiple charts or do I need to adjust the GV numbers used
17:18 Drwar: croc I found out the hard way its global across workspaces
17:20 @Ensign_HA: croc, GVs are global for the whole program, all charts.
17:20 @Ensign_HA: now the template is self contained, in that it wrote all GVs before it read them
17:20 croc: hmm, so a template using GV's can be used just for one chart, correct
17:20 @Ensign_HA: so the template can safely be applied to any chart and they all can reuse the same [10]..[15] and [20]..[25]
17:21 @Ensign_HA: none of these values needed to be retained between charts for any other chart. The GVs were just a convenient parking place for the boolean flags, so we could do a single AND[5] across 5 of them.
17:22 @Ensign_HA: the test was [10] AND [11] AND [12] AND [13] AND [14] and this result was stored in [15] so it could be viewed on the quote variables page.
17:22 @Ensign_HA: I did not need to store it, however.
17:23 @Ensign_HA: Line F was a True or a False and when True then Line G executed which got a price for the arrow plot position.
17:22 Drwar: Howard I don't understand how the same template on two different charts can use the same GV's
17:23 @Ensign_HA: drwar, it is like a communal bathroom, when chart A is using the bathroom, everyone else is not.
17:24 @Ensign_HA: when A leaves, then B uses the bathroom
17:24 Drwar: OK as long as no values need to be retained
17:24 @Ensign_HA: now you understand correctly - nothing needed to be retained.
17:25 Drwar: If another chart need to read them then there is a problem
17:25 @Ensign_HA: if something needed to be retained between charts or between calculations, then you would have to use unique GV parking positions.
17:25 Drwar: I got it
17:25 @Ensign_HA: great.
17:25 Drwar: Its important to understand that distinction.
17:24 hobo3: Howard on line g the value or number of .5 I don't understand that part, please explain
17:25 @Ensign_HA: hobo, line G is going to plot a marker (the arrow) on the chart scale at some price.
17:26 hobo3: .5 above the last bar?
17:26 @Ensign_HA: Line G creates a good price for the arrow by getting the bar high, but I wanted the arrow ABOVE the bar high. So I added a little offset of 0.50 or a half point distance
17:26 dblue2: Ahhh... so that is how I can adjust marker location up or down?
17:27 @Ensign_HA: yes dblue, just learned a little trick
17:27 @Ensign_HA: and so the offset for the bar low is a NEGATIVE 0.5 so it subtracts and gets a lower price
17:27 @Ensign_HA: anyway, this was a pretty involved project when starting from scratch and you all see the boiled down results of that was finally needed to success. And now that it is all in one place, it looks much simpler than it really was to begin with.
17:29 @Ensign_HA: now you can adjust it for keltner multipliers, colors, etc and tweak it in.
17:30 @Ensign_HA: took me a few hours to narrow it down to the pesavento identification of swing bars, and that is part of the fix behind the scenes to get it to work.
17:30 virt: Howard, I downloaded the beta and now have cyan "tails" on the ha down candles...

17:31 @Ensign_HA: virt it might be you need to uncheck the No Frame box on the Setup | Charts | Candlesticks form. Then the frame will be in the color selected, which is Black for my charts because I use white background.
17:32 virt: thanks
17:32 scooter: thanks for posting candlestick setup, it fixed it
17:33 Drwar: Howard none of my candles are split or colored like they should be
17:34 zol2: Does the msg display when any of the tests are true , have 'show' checked?

Settings for 6E

17:34 @Ensign_HA: for those using this on 6E, it works with 3 changes
17:35 @Ensign_HA: on the Trends go edit the Min Bar to be 0.0001 form current 1
7:35 @Ensign_HA: and edit the DYO line G number from 0.5 to be 0.0005 and -0.0005 for the little offsets. Then it works as shown in my posted picture
Copy Tab
17:35 hobo3: Howard when I copy tabs on dyo, not all the tests are filled in, anything I can do to save all the setting?
17:36 @Ensign_HA: hobo, you copy tabs by clicking on the CopyTab button and then click a tab such as 7.
17:37 @Ensign_HA: the current screen on the property form should not change other than tab 7 now shows it is selected.
17:37 virt: Howard, that did not work....
17:38 @Ensign_HA: what does that refer to?
17:38 dwas: can't get the bars like yours
17:38 virt: my candle colors are all wrong...when I eliminated the frame the colors stayed the same except for no frame
17:39 amg: candles have to be solid for H-A candles to work
17:39 Drwar: I have no splits on my candles

17:41 Drwar: My setup is exactly the same but it does not work
17:43 Drwar: Buffy, Green and red. If I create new chart with candles. I get green and red candles. When I apply template it goes to all Aqua and yellow candles
17:44 saxby: do the candle colors give any additional information?
17:44 @Buffy2: no and the splitter is now programmed in and all that is, is HA bars and PA bars going different ways
17:45 saxby: k
17:45 dblue2: can uncheck show HA candles if you don't like splitters on chart
17:46 amg: good point, dblue...don't show bars but the logic is still there
17:47 dblue2: yes amg... simpler if not used to HA bars
17:45 Rice: what is a splitter?
Rice a splitter is when PA close > open and HA bar is close < open or the reverse.

Pesavento Patterns GV

17:45 moe mentum: Howard, I noticed on the Pesavento pattern properties window there is a space but no box for GV's?
17:46 @Ensign_HA: moe, the GVs are on the form. There are 4 of them and they will hold the swing prices for the last 4 swings. The gvs are not related to the 4 lines they are parked on the form
17:47 moe mentum: ty, I can therefore plot them from a higher tf on a 5min chart?
17:47 @Ensign_HA: why,the gvs have no more to do with Uptrend or Down trend lines than where I chose to show them. Yes, you will be plotting the swing prices
17:48 moe mentum: okay :)
17:48 amg: I kind of like that...sometimes H-A bars throw me, but the logic behind them can be useful (like in this study)
7:48 dblue2: HA bars much easier to understand and visualize now that they can be colored differently
17:49 @Ensign_HA: I agree - and they sit underneath the real bars
17:49 Drwar: The HA bars have to print after the Keltner such that they print on top
17:49 amg: they show on mine, Drwar, but the lines from the kelt overprint
17:49 amg: right - you can turn off the H-A coloring on the H-A form
17:49 @Ensign_HA: need to do keltner first so the spread do not overprint other study results - sequence is important as to who draws first and who draws last
17:50 JackR: I would like my chart to look like ensign-44.png but can't figure it out
17:50 Drwar: When I turn off HA, I see NO bars, Keltner must be hiding them
17:50 @Ensign_HA: jackr start by selecting the White Theme on the chart property form.

17:51 scooter: on that sctr4 I posted shouldn't those 4 colors be combined in 1 chart?
7:52 @Ensign_HA: yes scooter
17:52 scooter: what am I doing wrong? I used your candlestick settings
17:52 @Ensign_HA: ok, too many are throwing out questions about their colors.
17:53 dblue2: need to make sure bars on top of studies?
17:53 @Ensign_HA: good point dblue...
17:53 @Ensign_HA: Drwar you go first and lets get you resolved without everyone typing
17:53 Drwar: I cannot get candles to show properly
17:53 @Ensign_HA: ok show me a chart please

17:54 Drwar: If I delete everything except HA they look correct
17:54 @Ensign_HA: ok, go to menu Setup | Charts and check the box for Studies Behind Bars. Your bars are underneath the Heikin Ashi bars. Need the Studies Behind Bars option checked

17:55 dblue2: ;)))
17:55 @Ensign_HA: viola!!!
17:55 Drwar: WOLA
17:55 scooter: Yahooooo!!!!!! that did it
17:56 JackR: studies behind option. where is that
17:56 @Ensign_HA: jack click menu Setup | Charts
17:55 @Ensign_HA: now if you want the middle zone to be gray, make the color change for the marker on the 2nd Keltner channel
Understanding the B-Swing Template
17:55 XRay: I still need help if you have time? with the problem w/no arrows
17:57 @Ensign_HA: ok xray, your turn, please post a chart picture for me to see


17:58 @Ensign_HA: is this a ES #F 1 min chart?
17:58 XRay: yes
17:58 @Ensign_HA: 1 moment
17:59 JackR: when you can. my arrows vanished. only had top arrows anyway. never got bottom arrows.
18:00 @Ensign_HA: xray, everything is correct, the reason for no arrows is there is never an opposite H-Ashi candle from the regular candle. Do every place you have a potential turn of a blue and a red ball, the HA candle matches the regular candle for direction.
18:02 @Ensign_HA: like just ahead of 13:15 the HA candle is yellow (down) and the regular candle is red (down). Do the test for opposite HA and regular Candles is not a TRUE.
18:02 @Ensign_HA: maybe the idea does not work well on a minute chart.... have lots of opposites on the range charts I have been watching.
18:03 XRay: ok I try a tick chart
18:04 XRay: your right as always thanks
18:04 amg: it would be "nice" if the tops/bottoms of studies (or markers) stayed inside bounds of price area
18:04 @Ensign_HA: amg, you can change chart scale mode to use Range and then when you resize the scale to be wider the markers off the top and bottom will show
8:05 Tricky: true amg, I would be nice to have a up/down margin , like we have for right margin
18:05 amg: yes, that's it Tricky, a sort of top/bottom margin
18:06 amg: using Range works until the range changes, then you have to reset or if scrolling back where range was wider
18:07 Tricky: would be easier to see target coming to ( like fib ext....)

18:04 dblue2: what about circled bar?
18:05 @Ensign_HA: what about it dblue.... high is not in the keltner band so that test failed
18:05 dblue2: yup... sorry forgot that was needed too
Scale Question
18:07 XRay: Howard is the cause of the numbers on the left side of the es chart this started today

8:08 @Ensign_HA: your scale mode is on Percent instead of Price
18:08 @Ensign_HA: press CTRL-P and uncheck the % box in the Chart Type frame
18:08 XRay: thanks again
8:09 @Ensign_HA: welcome.... pictures sure help to resolve the question
18:10 @Ensign_HA: ok, thanks for attending class today..... and enjoy the new template and program features.
18:11 dblue2: Thank You Sir!!!!!! dwas: tks
18:11 Shar: Thank you, Howard. Am wondering which is harder - doing the template or teaching us. lol
8:12 Drwar: Thanks Howard - amg: Thank you, Howard. Very powerful stuff here. - hobo3: ty
An example of the B-Swing template on YM 5R chart

18:14 Shar: Thank you Howard! - JackR: tks Howard - deano: ty Howard - scooter: tks Howard awesome upgrade
18:21 amg: that was it Howard, you made a bunch of folks happy! - JackR: tks Howard
18:21 @Ensign_HA: bye
18:22 Shar: You did an excellent job of explaining the reasoning and explanation of the "whys", Howard.
Room Ramblings after class:
18:38 amg: interesting how the minute charts don't get the conditions to all hit the way the range chts do...
8:39 amg: yeah...I've just tried a bunch of permutations of Keltner, Pesavento and even added a separate alert for splitters (to see them)...and there just aren't that many hits
18:40 XRay: they also do not show up very often on tick charts
18:41 @Buffy2: anyone tried this on volume chart?
18:41 amg: you took the words from me, buffy! oddly enough, I haven't tried them yet, lol...

18:42 amg: but that's a bizarre setting group (remnant of my minute experience)
18:42 amg: perhaps not...let me reset the defaults and start there
18:43 @Buffy2: the 1000V chart I was watching matches the system pretty good
8:43 amg: actually, 2000 was better than 1000, but the kelts may need tweaking
18:43 @Buffy2: yes could very well be - lp and auto look ok first glance

18:44 amg: but that one hi swing hit was nice - those are the default 9ma Kelt w/1.5 & 3
18:45 amg: it adds up 5 conditions in the DYO form...need to just look at that form for it all
18:48 amg: I'm going to play around w/kelt settings on vol bar charts and see if it improves
18:59 Drwar: I just read Howard's article on HA bars. I don't get it. He totally blasts them. So what is the big attraction?
19:00 @Buffy2: it is smoother drwar and when opposite of pa bar says a lot.
:17 sportsrep: Buffy....when u see this and get a second..........No rush......I've gotta step away anyway....I'll scroll back......On this range chart that u just posted with the "snowcones".......if the bars don't represent price.....what price and when are u entering from this chart?.......I'm just not that familiar with range charts....just trying to get a clue here.....thx
19:18 @Buffy2: can do one of two things - run the chart you are used to entering on
19:18 @Buffy2: remember this is a heads up marker or run the 50r and the entry is usually on it - if it isn't pass on the trade
9:20 amg: after not much thought (hee hee) perhaps this works on the Range because the Kelts are exploiting volatility of the range, which in itself changes more for the same # of bars as volatility of minutes or ticks or vol
19:21 amg: so a shift in the volatility of a 75-range *is* significant, vs.
a shift in the volatility of your basic minute, tick or vol charts