AdjustIntradayForSplit

Modified on 2020/07/30 09:45 by Eugene — Categorized as: Community Components

Syntax

public static void AdjustIntradayForSplit(this WealthScript ws, string item = "Split (Yahoo! Finance)")

Parameter Description

itemA fundamental item for splits. "Split (Yahoo! Finance)" is by default and can be skipped.

Description

Intraday data (e.g. or IQFeed or AlphaVantage) may intentionally be not split-adjusted to keep the prices as is. If for some reason you prefer the data to be adjusted for splits, see example below.

Example

Having updated the fundamental data, pass on any fundamental item for split instead of default value which is "Split (Yahoo! Finance)". For example, "Split (Wealth-Data)" if you're a W-D user:

Image

Example using C# extension methods:

using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators;

namespace WealthLab.Strategies { public class AdjustIntradayForSplitDemo : WealthScript { protected override void Execute() { this.AdjustIntradayForSplit("Split (Yahoo! Finance)"); //this.AdjustIntradayForSplit("Split (Wealth-Data)"); } } }