Log in to see Cloud of Tags

Wealth-Lab Wiki

End-of-Day Scaling Provider

RSS

What it is

This is a static data provider that allows you to scale Daily DataSets from any other provider in one of the following ways:
  • n-Day Bars
  • Day-of-Week Weekly Bars
  • Day-of-Month Monthly Bars

How to use it

Step 1. Create a new DataSet and select the EOD Scaling Provider.

Step 2. Select the desired option:
Image

Step 3. Choose the parameter, and select the Daily DataSet to use:
Image

Step 4. Name the new DataSet. The Wizard will suggest to use the same name as the "parent" DataSet, but also adds the parameters selected.

n-Day Bars

Conflates n Daily bars into one.

Warning! This provider does not align the resulting bars so that the nth bar will consistently fall on the same calendar day. Consequently, depending on how you load the data, or if there are missing bars, the final set of bars can change. For consistent results, use the Data Range option to load data, specifying the Starting Date.

Day-of-Week Weekly Bars

Returns weekly bars ending on the specified day of the week. For example, if you select Monday, the weekly bars will consist of an opening price on the first trading day after Monday and closing on the next Monday. If Monday is a holiday, then that week's bar will end on the previous trading day.

Day-of-Month Monthly Bars

Returns monthly bars ending on the specified day of the month. For example, if you select "15", the monthly bars will consist of an opening price on the first trading day after the 15th of the month and closing on the 15th of the next month. If the 15th is a holiday, then that month's bar will end on the previous trading day.

Usage notes, General

  1. Incompatibilities are expected when using Wealth-Lab native scaling functions, accessing external symbols, and any other function that requires synchronization. (We'll work on solutions if demand calls for it.)
  2. The provider will always return the last bar, complete or incomplete. For example, if you're scaling Day-of-Week bars on Wednesday, and the date is 9/30/2011 (a Friday), the final bar will end on 9/30/2011 with only Thursday's and Friday's data. You should know that if you're trading a Strategy with this DataSet that you should only pay attention to the Alerts after Wednesday's update.
  3. For the new scaled DataSet to work properly, you must use Wealth-Lab's native "Daily" scaling, even for Day-of-Week Weekly or Day-of-Month Monthly Bars. Selecting "W" or "M" chart scaling will produce undesired results.
  4. Because "Daily" will appear in the chart's label, this provider adds a @(Scale, Parameter) code to the Bars.Symbol. If your strategy needs to access the actual symbol, perform a split operation, as follows:

/* Assumes that the base symbol does not contain an @ character */ string[] symbol = Bars.Symbol.Split('@'); string theRealSymbol = symbol0;

How data is stored

The EOD Scaling Provider does not store data. When the "parent" DataSource is updated, this provider's accesses that data.

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.


ScrewTurn Wiki. Some of the icons created by FamFamFam.