public BBandUpper(DataSeries source, int period, double stdDevs, string description) public static BBandUpper Series(DataSeries source, int period, double stdDevs) public static double Value(int bar, DataSeries source, int period, double stdDevs)
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators;namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { PlotSeries( PricePane, BBandUpper.Series( Close, 10, 1.50 ), Color.DarkBlue, LineStyle.Solid, 2 ); SetBarColors( Color.Silver, Color.Gray ); // Flag bars that have penetrated the upper BBand for(int bar = 10; bar < Bars.Count; bar++) { if( Bars.Highbar > BBandUpper.Series( Close, 10, 1.50 )bar ) SetBarColor( bar, Color.DeepPink ); } } } }
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.