Log in to see Cloud of Tags

Wealth-Lab Wiki

Syntax

public BearPowerVG(Bars ds, string description)
public static BearPowerVG Series(Bars ds)
public static double Value(int bar, Bars ds)

Parameter Description

Bars The symbol's Bars object

Description

The BearPower component of the BBB indicator from the October 2003 issue of Stocks & Commodities magazine. BBB is constructed by subtracting smoothed BullPowerVG from smoothed BearPowerVG, and smoothing the result.

Example

This example illistrates how to create and plot the BBB indicator
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
using TASCIndicators;

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { DataSeries bullpower = SMA.Series(BullPowerVG.Series( Bars ), 10); DataSeries bearpower = SMA.Series(BearPowerVG.Series( Bars ), 10); DataSeries bbb = SMA.Series(bearpower - bullpower, 10); bbb.Description = "BBB(10)"; ChartPane cp = CreatePane(40, true, true ); PlotSeries(cp, bbb, Color.Green, LineStyle.Histogram, 2); } } }

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.