| Optimizing a Buy / Sell Pressure template with Howard - Dblue |
October 2 , 2006
16:51 Ensign Howard: Ask your question dblue.

16:52 dblue3: Those are DYO's of buy/sell pressure averages. I am curious why they scale differently. Both are 0 data centerline. One on right is several dyo's. One on left is all done with one DYO. Presentation basically the same, but prefer the display on right which takes more memory as it is multiple DYOs
16:58 Ensign Howard: So are you looking at chart scale or the Pressure window scale?
16:58 dblue3: Pressure
16:58 Ensign Howard: They are the same scale for the plot. Looks like left example has more data and somewhere the data goes higher or lower so the window is rescaled to include it. For just the portion of the last 2 dozen the bars the pressure has been gentler and the +1000 to -1000 includes it all
16:59 dblue3: Scaled just for visible bars?
16:59 Ensign Howard: Yes, it scales for visible bars
17:00 dblue3: Both charts about the same
17:00 Ensign Howard: OK, left side may have scrolled leftward that higher value that extended the range at one time. If you go to property form, the chart will redraw and recalculate needed scale. We extend scales as needed but we do not shrink them automatically as the higher values move out of the view
17:02 dblue3: Think it is something other than that...if I add a dyo with the blue gray histo ahead of DYO on left chart it scales like the right chart

17:03 dblue3: Histogram is deeper. Also.. if I "turn off" some of the lines in the DYO, it rescales

17:10 Ensign Howard: ok. The host DYO will look at all the data needing to plot in its 10 lines. Unchecking some of those lines is removing them from consideration for setting the panel's scale range
17:11 dblue3: Seems to change when I turn on the 1ma marker
17:12 Ensign Howard: OK, show me the DYO property form

17:13 Ensign Howard: Discuss Line A please. Buy Pressure-Bid Volume is practically the same thing. You would be plotting nearly a zero
17:14 dblue3: whoops - should be K
17:14 Ensign Howard: Do you mean Ask Volume
17:15 dblue3: Buy Sell pressure
17:16 Ensign Howard: ok, so are you changing the [$B] to be [$K]

17:17 dblue3: That is with line H turned off - turn it on and it rescales.
17:17 Ensign Howard: ok, 1 moment

17:18 Ensign Howard: now line B you want a 2 color fill to the Ave 10
17:18 dblue3: y
17:18 Ensign Howard: So line C is just for 2nd color. Does it still look same is you change C to be Always True selection?
17:19 dblue3: yes
17:19 Ensign Howard: ok, please make that change for efficiency

17:19 Ensign Howard: now Line D is just doing a diff color outline of the curve
17:20 Ensign Howard: Line B, please use Write GV as a 1
17:20 Ensign Howard: Then Line D would be more efficient to use Expression | Value and Read GV 1
17:20 Ensign Howard: And change E to Always True too
17:20 dblue3: k
17:20 Ensign Howard: Is the visual still the same?
17:21 dblue3: sec - not sure how you want D - global value/read1?
17:22 Ensign Howard: D is Expression | Value with Read GV 1 to get info Line B wrote to GV 1
17:22 Ensign Howard: B is write 1
17:22 Ensign Howard: D is read 1
17:23 dblue3: Leave rest of D the same though?
17:23 Ensign Howard: yes the marker is the same

17:24 dblue3: like that
17:24 Ensign Howard: Selection is Value - Number is 0 on Line D
17:25 dblue3: sec

17:25 Ensign Howard: ok, is the visual unchanged still?
17:25 dblue3: yes same
17:26 Ensign Howard: Great, this is all more efficient
17:26 dblue3: But scale is better if I turn off H
17:26 Ensign Howard: Now for clarity I personally would change the markers on Line C, E and G to be blank as they are not used. We are still getting there and I am not done helping you
17:26 dblue3: ;)))
17:27 Ensign Howard: Now Line H is not needed and can be deleted. If you want this line plotted you can use a marker on Line A. You would check Show on Line A and change color to Orange. Line H can be deleted
17:27 dblue3: That puts it behind others
17:28 Ensign Howard: ok, that is good reason
17:28 dblue3: k
17:28 Ensign Howard: Now a more efficient is to have Line A write GV, such as [2] and then Line H be Expression | Value Read [2] instead of the Ave Line A selection

17:29 dblue3: done
17:30 Ensign Howard: Excellent OK, now to line I. This is duplicated with Line F, so more efficient to store Line F in GV [3] and then Read it again by Line I with Expression | Value and Read [3] keeping the same marker.
17:30 dblue3: k and change to expression?
17:31 Ensign Howard: yes, Expression | Value on Line I

17:32 Ensign Howard: ok visual should be unchanged, yet the speed of execution be half as many CPU cycles as before. Now the issue of H changing the scale is understandable
17:33 dblue3: cool
17:33 Ensign Howard: It is a plot of the raw values which all of the other lines are averaging. We know averages always swing lower than the raw values
17:33 dblue3: yes so should be 2nd DYO?
7:33 Ensign Howard: If you put the pressure line H in a separate DYO then it could plot on an independent scale. That way the averages could swing full scale and the pressure could also swing full scale on a different scale.
17:34 Ensign Howard: Was this exercise helpful
17:35 dblue3: Extremely!!!
17:35 Ensign Howard: ok, my pleasure to have helped
17:35 dblue3: thanks much.. down to two DYO from 4 ;))
17:35 Ensign Howard: Perhaps others will read this discussion and learn a tip or two as well
17:35 Ensign Howard: have a good evening
17:35 dblue3: which I almost had, but not as efficient
17:35 dblue3: Thanks Howard!!!