| QnA DYO Continuation Example, DYO Above Below Example w/Alerts, OP Method |
August 3 , 2005
16:33 @Ensign_HA: Hi, welcome to today's training class.
16:33 @Ensign_HA: I do not have any particular topic in mind, and so we can have a question and answer session - so, does someone have a question to start the discussion
16:33 IFCI1601: the correct way to default all charts the same. How do you set the default size?
16:33 @Ensign_HA: IFC, set your chart defaults on the Setup | Charts form
16:33 @Ensign_HA: This will be the default used by all new charts that you open for charts that already exist you can press CTRL-P keys and click the Reset Defaults button and then the chart will adopt the default settings\
16:34 @Ensign_HA: Windows controls the size of child windows that open. If you use a workspace the workspace will open the chart, and then change its size to the size it was when it was saved. And for a chart that opened by itself there is a property on the CTRL-P property from for Remember chart position and when checked the chart will reopen in both the location and the size it had when it was last closed as an individual chart.
6:36 @Ensign_HA: IFC, if you have a lot of charts you want to reset to default and do not want to go through the CTRL-P process, you could erase the private chart property files using the Windows Explorer program and then the chart will read the defaults because it looks to the program like this is the first time the chart is being opened.
16:37 @Ensign_HA: 1 moment and I will tell you the folder when these default files reside. IFC, the folder with the chart property files is C:\Ensign\Property and all the files in this folder could be erased, and that will cause a universal use of your chart defaults when you open any chart, because they will all appear to be new charts. Upon closing the chart it will then store the properties as a new private file in the \Property folder.
16:38 Elroch: Howard, your presentation of the opening price method was interesting. Did you do any more statistical analysis? (such as comparing to the "always enter at end of first hour" system)
16:40 @Ensign_HA: Elroch, I have been super busy with programming projects and not had time to investigate any more Opening Price Principle ideas or statistics. I intend to revisit that issue as time permits in August to prepare another article for the newsletter and Larry Pesavento wants some statistics for different groups of stocks where the grouping is by range of their Beta
16:41 Elroch: I think it was a very good example of testing a straightforward system
16:41 Shar: Howard, when you get the chance. I had good IB close and opens for maintenance times until the last two upgrades - both using Debug versions. Now it's opening and closing sometimes 20 minutes early, sometime opens and closed up to 45 minutes after set closing times. No consistency even. Any suggestions? Was working fine until then.
16:41 @Ensign_HA: Shar, doubt it is an Ensign issue. I assume you have not changed the Reconnect time on the Setup | Connection form. you might want to look at the Disconnect time in the TWS configuration and check that your computer system clock is not running ahead or behind what is the current time.
16:42 Shar: ok. thanks. was just suspect since it worked ok once. No, I didn't. ok thanks again. Yes, solved refresh problem by doing that, remember? :-)
16:42 pavoni: any idea on a time frame for accessing the one week of historical data that IB now offers?
16:43 @Ensign_HA: pavoni, it is a high priority to implement support for IB tick refresh and I intend to work on that project next as time permits in the month of July. The current project I am working on is support for new chat room features that Mike has come up with. The chat project could take 1-2 weeks, and then the IB refresh is the top priority project to tackle.
16:44 Elroch: Have the stability problems with the server been identified?
16:45 @Ensign_HA: no elroch, do not know the reason for current stability problems with chat server side
16:45 Kip: In Larry's Opening Price template Can one be set up so the opening gaps count as the true High or Low rather than the high or low for the first hour?
16:45 Elroch: (kip, you could try it on a selection of stocks and find if it works)
16:45 @Ensign_HA: yes Kip, you could evolve OPP template to make that range consideration. Including opening gap might really change some days from being Red to Green, or vice versa. Do not know whether the statistics will be better or worse by doing so, but that is the reason for researching out an idea like that.
16:46 Elroch: Absolutely
16:47 Kip: Yes, a gap is like a big bar one way or the other. Are the tools there to modify the existing template easily?
16:48 @Ensign_HA: yes, you can modify away or do I perceive you are making the suggestion and hoping I have time to go do it for you?
16:49 Kip: Now that you ask! LOL
16:49 @Ensign_HA: well it is fine to suggest/ask, but your ideas will have to be lower priority than my own ideas, which I have not had time to investigate
16:50 Kip: Well, OK. I'll see if I can do it.
16:50 @Ensign_HA: I see Larry has taken a liking to the OPP template and has been using it on e-mail lists for OPP charts he is starting to send out after the first hour, and that is great that he likes and uses the template.
16:39 scooter: I have a request not really a question, can you add the initial balance to the price histogram. I see the poc there but not the initial balance?
16:54 @Ensign_HA: scooter, what do you mean by initial balance?
6:54 scooter: for ex. in the ES on a 30 minute histogram it would be the range of the first 2 30 minute bars,the first hours range.it varies for different commodities.
16:55 @Ensign_HA: scooter, you can put that kind of thing on with a DYO. An example would be the Opening Price Principle template which does similar thing of finding range of first 60 minutes. You can use that as example and change the # parameter to be 120 minutes
www.ensignsoftware.com/tips/tradingtips67.htm
16:56 @Ensign_HA: see Line C and D of the first DYO example and you can plot those lines simply by checking the Show box and have a line marker in a color
16:57 scooter: yep - can I draw a vertical line along the side of the histogram somehow of the initial balance?
16:57 @Ensign_HA: scooter, cannot think of way to draw a vertical line in a DYO
16:58 scooter: can a put in a line to find the difference also?
16:58 scooter: it would be nice to have a vertical line on the side of the histogram, I can post an example for you,for the future, I know you are busy so np. but to put in a file :)

17:00 scooter: ok, I will go that route, thanks.here is what I was trying to do sctr7
17:01 scooter: ah got it ,thanks Howard
16:56 Kip: Is there a maximum/minimum function in DYO?
16:58 @Ensign_HA: kip, answer is Yes, there are Min and Max functions with a [#] parameter to find MIn and Max in a set of Global Variable. There are also Min and Max functions to operate on any of the chart bar data items, and that is useful for finding highest high of last 20 bars, as an example. There are several DYO examples in the Knowledgebase that would do the Min/Max on the chart bars
http://www.ensignsupport.com/email/521.mhtml
(Just refresh if you are unable to read the above link.)
17:01 Kip: The true high for the first hour would be the Max of the previous close and the high of the first hour, that would be easy to find?
17:01 @Ensign_HA: kip, the posted example for the Ichimoku chart has the Min and Max in the first DYO
17:05 @Ensign_HA: kip you can add DYO lines to get Yesterday's close and then test if it is higher than the 1st hour high or lower than the 1st hour low, and extend the 1st hour range accordingly then you have your True Range 1st hour range. Yes, easy to find and do Kip,
17:06 Kip: That's what I was thinking to do, but don't think I'll have enough lines
17:06 @Ensign_HA: you will have the same Line C and Line D in the DYO for the Opening Price Principle.
17:07 @Ensign_HA: 1 moment Kip, and this True Range thing will be a training example for the class - let me show you with a DYO
17:07 Kip: Super!

17:11 @Ensign_HA: Kip, lets discuss the changes in the DYO example posted. I needed 3 lines to do the True Range so I bumped the prior bottom 3 lines off and they will just have to be added to the 2nd DYO because we still need them for calculating half of yesterday's range.
17:12 @Ensign_HA: OK, lets discuss, and correct my mistake
17:12 @Ensign_HA: LIne C gets first hour high and the 1st hour high was in [10].
7:13 @Ensign_HA: Line D gets yesterday's close and puts it in [11]
17:13 @Ensign_HA: LIne E will get the max of these two, because [#] number parameter is 2 and the Read GV starts with [10]
17:14 @Ensign_HA: So line E returns the Max of [10] and [11] and puts result back in [10]
17:14 @Ensign_HA: Line F gets 1st hour Low and put it in [12]
17:14 @Ensign_HA: Line G is the mistake, and the selection should be the MIN[#] function, not the Max function but you get the right idea, find the Minimum of [11] and [12]
17:15 scooter: cool I can use some of this for what I wanted to do.thanks Howard
17:15 @Ensign_HA: and this time put the Minimum in [11] which is where we originally has the 1st hour Low - then the rest of the DYO continues as before
17:16 Kip: So the last three line that were bumped need to be in a second DYO. How do you get them to continue?
17:16 @Ensign_HA: just a reminder the 3 lines we bumped off the bottom need to be added to the 2nd DYO which has spare lines for them to be inserted at the top of the DYO. Open 2nd DYO and click on Line A and then click on the Insert LIne button 3 times to push current lines down the form to give you 3 blank lines at the top

17:19 @Ensign_HA: like this, and then enter the 3 bumped lines on A, B and C
17:19 @Ensign_HA: now you will also need to edit the Label on the new line G and H because the [D] and [E] references have changed to be [G] and [H] because of inserting 3 lines at the top.
17:20 @Ensign_HA: ok, Kip, that should be a sufficient answer to your True Range question and now that you see the solution, it was not that bad after all was it.
17:20 Kip: Bravo! And I got to see how to handle the continuation problem
17:22 @Ensign_HA: Did another person have a question for discussion?
17:22 pavoni: Howard, any idea why my Ensign charts don't always print high/low price of day. IB's TWS has HOD today at 1248.50 near 11:30 a.m. CST, but the charts only printed 1248.25. This happens often. Even my Custom Quotes Page within Ensign has the HOD at 1248.50, and the minute charts print 1248.50, but all tick charts only show 1248.25
7:25 @Ensign_HA: pavoni, the High of 1248.50 might have been set by a single tick that was not on the IB data feed and thus the charts built from the seen ticks lack the .50 high.
17:26 pavoni: but TWS had it and my custom quotes page had it and my minute charts had it
17:26 @Ensign_HA: their bars on the intra-day might have been correct to show the data at .50
17:29 @Ensign_HA: by the way, pavoni, several had problems in getting IB feed today, so IB was having problems, the details of which I do not know
17:29 pavoni: don't want it fixed, as it has a 100% accuracy for holding high or low of day so far :-)
17:30 @Ensign_HA: so today was an example of a day where it is nice to have the back up of a refresh from another source. Being able to refresh from DTN Market Access made the problems with the IB feed more tolerable. Now this is the first time in a really long time that IB has had any problem, so do not make a mistake to bad-mouth IB feed. They have been a very dependable feed, as good as any of them. All of them will have an occasional problem, that is the nature of delivery over the Internet and using computers. Not even the space shuttle with its smart people and big budgets and great care to be reliable are spared from having an occasional problem.
17:33 GregW: quick question, I have a GV stored in [80] and want to alert when in crosses 80/ 20, I have set it up over and over again in study alert but it will not display
17:33 @Ensign_HA: show me your Alert property form please
17:34 GregW: ok

17:36 @Ensign_HA: thanks Greg
17:37 @Ensign_HA: Greg, cannot use a GV that way because for a CROSS condition we need to see the prior value too for the test and the GV has no prior value. It only has a current value in [80]. So lets back up one step. How did a value get in [80]? what is it?
7:38 GregW: it's a combination of things, gets calculated I use about 20 GV to get there
17:39 @Ensign_HA: and it is the crossing condition you need?
17:39 GregW: yes
17:39 @Ensign_HA: would the relationship of just being above 80 be sufficient to mark?
17:39 GregW: that is what I have done - it works
17:40 @Ensign_HA: ok, the work around is this. You can have this Alert do a relationship test of A below B instead of the A cross Below B. Then you will need to use another Alert that references this alert and the 2nd alert will use the Study Flag test of Flag Goes True - that will be your crossing test
17:42 @Ensign_HA: 1 moment, let me see if we can combine both alerts back into a single alert
17:45 @Ensign_HA: Greg, the implementation for a single alert would have to have a little help from the DYO or Alerts that made the calculation for storing in [80] - This is the suggestion for the little help, and that is on a line prior to writing the [80] value, you need to read the [80 and write it to another GV such as [81], so [80] will have current value and [81] will have the prior value. Then the Alert in panel A can test for Global Flag | Value < # | # is set to the level 80 | Read GV is set to 80 and panel B is similar with Global Flag | Value > # | # is 80, and the Conditions is A and B. That way you test for current value to be below 80 and prior value to be above 80. oh, panel B GV reference is [81]. The cross condition is True when the prior value and the current value straddle the # level
17:48 GregW: ok
17:48 @Ensign_HA: Prior needs to be above 80 and current needs to be below 80. Ok, you get the idea of how the place you store 80 needs to move 80 to 81 before 80 is updated.
18:37 @Ensign_HA: you can always learn a little more from watching what others are doing.
18:37 sniffy 2: question H ?? its quick
18:37 @Ensign_HA: ok sniffy
18:38 sniffy 2: can we please have a simple line that can be drawn at any angle with a simple arrowhead at the end ?
18:39 @Ensign_HA: will have to put that on the To Do list as well
18:39 sniffy 2: k thx H
18:40 @Ensign_HA: am thinking it would best to be a new smart marker selection to have on left or right side of the current draw line tool
18:40 @Ensign_HA: ok bye, and thanks for attending class
18:41 sniffy 2: thx H
18:41 terry3: thx Howard
8:42 @Buffy2: thanks Howard
18:44 Sportsrep2: good suggestion sniffy
18:45 sniffy 2: thx Sports