Clock in Ensign 10

Q:  I’m using Ensign Windows and starting to learn Ensign 10.  I use a feature in Ensign Windows called the “Clock Toolbar” .   It sits right above one of my charts, nice and prominent, and it is a key feature in helping me make trades. Where is this feature in Ensign 10?

A:  Thank you for evaluating Ensign 10. We think you will like the program a lot as you get more familiar with it.  The clock is on the Setup ribbon, like this.  Click the button to show the clock form, which can be resized and moved around.

Object Files in Time Frame Change

Q:  I have multiple currency charts in a stack. I use a time group to simultaneously switch them all from 20 min to 240 min, daily and weekly.   I add draw tools to each chart in each time frame and because I save the layout often the layout will potentially save all charts in either the 20, 240, daily or weekly timeframe.

I send the layout file to many students and members. They have confirmed that opening the layout file they see my stacks/charts etc BUT only the lines for the timeframe that was visible when the layout file was saved. So, if the layout file was saved showing the 20 min charts then the recipient does indeed see all 20 min lines, pitchforks, commentary etc BUT when they switch to the 240, daily or weekly timeframes they see blank charts.

 I suspect those lines are included in the files in the study folder but I don’t know how to ‘include’ those drawing objects. In short all I am trying to do is share my layout so that members/students can see drawing objects on each time frame.  Can you advise?

I am happy to include studies files or other files/folders in a package which I can share with them if need be. The requirement obviously being that my lines do not wipe out their existing lines in their own layouts.

A: The layout file controls which charts open, where to position them, and how to dress them. That is what you see for the 20 min charts if the layout was saved with the 20 min charts showing.  The work you do on other charts in the symbol or time frame change is not saved in the layout.  However, those objects are saved in other files found in the Study folder. These other files have an ‘_ ‘ character preceding the filename as in this example.

The _ES #F.5 and the _ES #F.30 would be 2 such files that were made by symbol or time frame change while in the layout. You would find similar files for your symbols in the other time frames you mention. Package these files with your layout for distribution to your students. Use the package feature as that method of installation by the students will put the files in the correct folders.

However, installation of your files will overwrite any files the users created for their own objects. I do not have a way for the chart to combine both your draw tools and their own draw tools.

Refresh for IMM Exchange Symbols

Q:  I follow B6H2 from the IMM exchange using the BarChart data feed.   Normally I refresh data from BarChart, but they recently had an outage and refresh data for a few hours is unavailable.  Can I get the refresh I need from DTN Market Access?

A:  DTN Market Access does not have data for the IMM exchange.  However, you might consider refreshing with data from the CME exchange for symbols that are similar.  For example, the CME symbol for the British Pound is @BPH2 .

On the Properties for the chart, select the Data tab and edit the DTN Market Access symbol like this:
Now you can refresh for a couple days to fill in the missing data.  Then I suggest you change the refresh source back to BarChart and refresh again for the same time period.  BarChart will then replace the data that overlaps, and retain data received from DTN which BarChart lacks.  The data refreshed from the CME looks acceptable to me in my testing.
Find CME symbols on the DTN symbol guide that would be substitutes for the IMM symbols you use and do a similar process for other IMM symbols you need to refresh.

Disable Alert Sounds

Q:  There are times when I need to turn off the Alert sounds without turning down my audio volume.  Can this be done?

A:  Uncheck the Enable Sound check box found on the Setup | System form in Ensign 10.

ESPL: Security Name on Chart

Q:  I would like to see the security name at the top left of the chart.  I know it shows in the title, but that is too small.  Can this be done and automated to show in a bigger format?

A:  This ESPL script will add the security name to the chart which has focus.  Click the ESPL button #9 to add a note object containing the security name.   Here is the ESPL script which automates the process.

  if ESPL = 9 then begin
    FindWindow( eChart);
    sSymbol := GetVariable( eSymbol );
    Find( eIQFeed, sSymbol );
    sName := GetData( eName );
    AddNote( sName, 4, -10, -10, 0 );

The FindWindow will locate the chart which has focus.
GetVariable will read the chart’s symbol.
Find will locate the quote record for the symbol.
GetData will read the security name such as is provided by IQFeed.
AddNote will create an object to be owned by the chart.

The 1st parameter is the text string to show.
The 2nd parameter is the tab number used for  properties. Go set up tab 4 to have Pinned unchecked, and select the color and font size for the note.
The 3rd parameter is the horizontal location.  A negative number represents the pixel position on the chart from the left edge. This starts the note at pixel 10.
The 4th parameter is the vertical location.  A negative number represents the vertical pixel position on the chart from the top edge. The example puts the note down 10 pixels.
The 5th parameter is the window location, and 0 selects the chart.

ESPL: Sum Volume for a Swing

Q:  How can I determine the volume for a swing, or the volume between two bars on the chart?

A:  I will illustrate 3 ways in my answer.  The first way is to use the Pesavento Patterns study and change the Marker to the VOL selection, which will sum the volume for a swing.  This tool is automatic in picking the swing points.

The 2nd suggestion is to put on a Draw Line with the same VOL marker and the total volume in the bars spanned by the draw line will be printed at the end of the line.  See an example of the draw line’s volume in the next image.

The 3rd suggestion is to use the ESPL programming language, and sum the volume in a loop between two index locations on the chart.  The example will use two index points from the Pesavento Patterns study.  Any two index points could be used.

Line 12 finds the chart.  Line 13 finds the Pesavento Patterns study.  Lines 14 and 15 find the two indexes for the prior swing.   Line 16 writes the total volume to the output window.

The total volume is summed by the Function SumVolume which loops through the bars between the two indexes passed as parameters and adds each bar’s volume to the total.

Square the Chart Value

Q:  I’m experimenting with “Square Charts”. It would be helpful to add some geometric drawing tools to determine best fit and know the points/bar value for use with “Square Chart”.

A:  The tool to use is the Gann Fan with the Slope showing at the vertex.  Use that value as the Pts/Bar on the Square Chart.  This slope shows the rate of change of the 1×1 line.

In this example, the Gann Fan placed manually shows a slope of 0.22 pts/bar down.  A good value for squaring the chart would be the nearest multiple of price interval, which would be 0.25 pts/bar.

ESPL: Event Redirection

Q:  How can ESPL be notified when the Ensign program is closing so that information can be saved before the program closes?

A:  Redirect the OnCloseQuery event for the main Ensign form to an ESPL procedure which performs the clean-up tasks such as saving information.  The main Ensign form is referenced with the component named   frmMain.   This example will print a message in the Output window when Ensign closes.

procedure ShutDown;
  if ESPL = 3 then
    frmMain.OnCloseQuery := 'ShutDown';
Cick ESPL button 3 to establish the redirection of the OnCloseQuery event.  Then when Ensign exits, the OnCloseQuery event fires and executes the ESPL ShutDown procedure which displays ‘Exiting’ in the Output window.  Ensign continues its exit process and closes down.

Chart Objects Not Preserved in Layout

Q:  I opened a 5-minute chart, added some lines, changed time frames to a 30-minute chart,  added lines to the 30-min chart and then saved as a layout.   On opening the layout the 30-min chart shows the lines, but when changing time frames to the 5-min chart, the lines are missing.  What happened?

A:  The issue is whether lines were saved BEFORE or AFTER the chart was saved as a layout.   When you added lines to the 5-minute chart, you were working with solo charts, and they save their objects in the Study folder using the chart symbol and time frame as the file name.   For the sake of discussion we will call this file  AA.

When you saved the layout, the program set a LAYOUT flag which changes the object filenames to add a ‘_’ prefix character.  That way layout files do not compete with or overwrite the files used by solo charts.  For the sake of discussion we will call this file BB.

When you open the layout, it loads the layout file and that shows the 30-min chart and how it was last dressed.  When you change to the 5-min file, it looks for its BB file and not its AA file.  The BB file does not exist and that is why the lines you added are missing.  The 5-min chart lines were saved in the AA file, because they were saved before a layout was started.

The way to avoid this issue is to save or open a layout so the Layout flag is set, and then add your studies and lines.  The objects will be saved in the BB files which have the ‘_’ prefix.  Also save the layout after making changes to any charts.   

The objects saved in solo chart mode might still be recoverable for use in a layout in this manner.

Look at the Study folder which holds the objects.  There you will find two types of files, the  AA  names referred to in this discussion are the non-layout files for solo charts.  The BB names referred to in the discussion have a prefix of ‘_’  ahead of the symbol and time frame.  The red arrows point to two examples.  

Names without ‘_’ prefix were saved before you entered layout mode.   You could possibly recover your solo chart objects for use in a layout by appending the ‘_’ to the name by using Windows Explorer and selecting Rename on the pop-up menu.

Paul Coghlan, of Coghlan Capital, recorded a 5-minute video which describes the process and has given permission for his video to be included in this blog article.  Thank you Paul.

Click this link to watch Paul’s video:   Recover Objects 

Hot Keys for Draw Tools & Studies

Q:  I used to be a ~~~ user and while Ensign is far superior in nearly every way the one thing I miss is the ability to use hot keys.  I know you have some hotkey functionality for studies but for my particular needs I would want them for drawing tools.  I wonder if this functionality could be add to your to do list? 

A:  Your request has been implemented in the latest version of E10.  Go to Setup | Charts to assign the hot keys you want for Draw Tools and Studies.

The example shows upper case L is now assigned to initiate a Draw Line tool.   You would press L and then move the mouse and click on the tool’s construction points.
And here are the default key assignments for Studies, but now they can be changed by the user.