Here you can search through the pages of this Namespace, their attachments and the files uploaded to the system.
Note: the results will only display the items you have permissions to read.
[...] n = domCyc + d;
DB n .Description = "Cycle." + d.ToString();
PlotSeries(dbPane, DB n , Color.Black, LineStyle.Solid, 4);
}
DataSeries ">51"> Raster = new DataSeries[51 ; // SNR Corona chart
ChartPane snrPane = CreatePane(40, false, false );
for( int n = 1; n n = domCyc + d;
Raster n .Description = "SNR." + d.ToString();
PlotSeries(snrPane, Raster n , Color.Black, LineStyle.Solid, 4);
}
DataSeries ">51"> RasterSwg = new DataSeries[51 ; // Swing Corona chart
ChartPane swgPane = CreatePane(40, [...]
[...] Execute()
{
if ( !Bars.IsIntraday )
{
DrawLabel( PricePane, "For use on intraday data", Color.Red );
Abort();
}
// Change scale to Daily
HideVolume();
SetScaleDaily();
Bars dailyBars = Bars;
DataSeries CompBar = new DataSeries(Bars, "Compressed Bar Numbers");
for (int bar = 0; bar bar = bar;
RestoreScale();
dailyBars = Synchronize(dailyBars);
DataSeries GetDailyBar = Synchronize(CompBar); // Initialize an instance of the CamarillaPoint class
Camarilla c = new Camarilla();
double tick = Bars.SymbolInfo.Tick;
bool [...]
[...] #region Plotting
ChartPane adxPane = CreatePane(35,true,true);
PlotSeries(adxPane,adx4,Color.Purple,ls,1);
PlotSeries(adxPane,adx5,Color.Green,ls,1);
PlotSeries(adxPane,adx6,Color.Violet,ls,1);
DrawHorzLine(adxPane,30,Color.Blue,LineStyle.Dashed,1);
DrawHorzLine(adxPane,70,Color.Red,LineStyle.Dashed,1);
ChartPane dipPane = CreatePane(35,true,true);
PlotSeries(dipPane,dip5,Color.Purple,ls,1);
PlotSeries(dipPane,dip8,
[...] WealthLab.Strategies
{
public class MyStrategy : WealthScript
{
Random r = new Random();
private Color RandomColor()
{
Color randomColor = Color.FromArgb(r.Next(255), r.Next(255), r.Next(255));
return randomColor;
}
protected override void Execute()
{
if( Bars.HasNamedDataSeries )
{
ChartPane p = CreatePane( 100, true, true );
foreach( DataSeries ds in Bars.NamedSeries )
PlotSeries( p, ds, RandomColor(), LineStyle.Solid, 1 );
}
else
PrintDebug( Bars.Symbol [...]
[...] static void DrawLinRegChannel(this WealthScript obj, int bar, DataSeries ds, int period, double width, Color color, LineStyle style, int line)
public static void DrawLinRegChannel(this WealthScript obj, int bar, DataSeries series, int period, Color color, LineStyle style, int line)
public static void DrawLinRegChannel(this WealthScript obj, int bar, DataSeries series, int period, double width, Color color, LineStyle style, int [...]
[...] TroughSeries()
public DataSeries TroughBarSeries()
public DataSeries PeakTroughSeries()
public void Draw(Color upColor, Color downColor, LineStyle style, int width)
public void PlotPeakTrough(Color plotColor, int width)
public Dictionary ZZs
ws A WealthScript reference. Pass this reversalAmount The amount of price reversal in percentage or points per the ptmode parameter that determines when a peak or trough as formed. initializeAsTrough Pass true or false to initialize the data series as a peak or a trough. [...]
Syntax
public static void PriceVolumeDist(this WealthScript obj, int Lookback, Color LineColor, Color FillColor) public void PriceVolumeDist( int Lookback, System.Color LineColor, System.Color FillColor );
Parameter Description Lookback Number of bars used in the distribution LineColor Outline color of the distribution bars. For no outline, pass the same color as FillColor FillColor Fill color [...]
Traders' Tip text
Below is the C# code for Wealth-Lab 6 that plots the indicators and does color highlighting used in Barbara Star's TMV template. The Strategy is available for instant download from Wealth-Lab's "Open Strategy" dialog. Keep in mind that the breakout and retracement opportunities suggested by the template are to be found in trending markets. Figure 1. A Wealth-Lab 6.3 chart showing the highlighting according to the TMV template using Daily data of Crude Oil futures contract. The bottom pane visualizes the Volume Oscillator (OscV) featured in [...]
[...] - DIMinus.Series(Bars, 10);
var smi = SMI.Series(Bars, 8, 3, 3); PlotSeries( PricePane, hilo, Color.DarkGreen, LineStyle.Solid, 2);
PlotSeries( CreatePane( 30,false,true), dmi, Color.DarkGreen, LineStyle.Histogram, 3);
ChartPane sPane = CreatePane( 30,false,true);
PlotSeries( sPane, smi, Color.Fuchsia, LineStyle.Solid, 2);
DrawHorzLine( sPane, 40, Color.Green, LineStyle.Dashed, 1);
DrawHorzLine( sPane, -40, Color.Red, LineStyle.Dashed, [...]
[...] WealthScript
{
protected override void Execute()
{
const int c = 6;
const double pct = 7d;
Color ">c"> color = new Color[c ;
color 0 = Color.Blue;
color 1 = Color.Red;
[...] 20, 2);
DataSeries bbL = BBandLower.Series(Close, 20, 2);
PlotSeries(PricePane, ma50, Color.Blue, LineStyle.Solid, 1);
PlotSeries(PricePane, ma100, Color.Red, LineStyle.Dashed, 1);
PlotSeries(PricePane, ma200, Color.Red, LineStyle.Solid, 1);
PlotSeries(PricePane, ma20, Color.Green, LineStyle.Solid, 1);
PlotSeriesFillBand(PricePane, bbU, bbL, Color.Transparent, Color.FromArgb(30, Color.Green), [...]
[...] "Mid Donchian";
ChartPane paneRSI = CreatePane(40,true,true);
PlotSeries(paneRSI, rsi,Color.FromArgb(128,0,128,0), LineStyle.Solid, 1);
PlotSeriesOscillator(paneRSI, smaRsi,80,20,Color.FromArgb(63,0,0,255),Color.FromArgb(63,255,0,0),Color.FromArgb(255,0,0,128),LineStyle.Solid, 1);
DrawHorzLine(paneRSI, 50, Color.Pink, WealthLab.LineStyle.Dashed, 2);
PlotSeries(PricePane,gauss,Color.Gray,LineStyle.Solid,1);
[...]
[...] WealthScript
{
protected override void Execute()
{
const int c = 6;
const double pct = 7d;
Color ">c"> color = new Color[c ;
color 0 = Color.Blue;
color 1 = Color.Red;
[...] BullishHarami; CandlePattern.BullishHarami(this, s, false, out BullishHarami);
HideVolume(); SetBarColors(Color.Silver,Color.Silver);
if( lst != null )
{
DrawLabel(PricePane, string.Format( "Total {0}-percent zigzags: {1}", percent, lst.Count) );
foreach( ZigZag z in lst ) {
if ( z.inPrice == 0.0 )
continue;
DrawLine( PricePane, z.zigBar, z.inPrice, z.zagBar, z.outPrice,
z.isMoveUp ? Color.Blue : Color.Red, LineStyle.Solid, 2 );
}
}
for(int [...]
[...] ;
}
ChartPane vzoPane = CreatePane( 30, true, true );
PlotSeriesOscillator( vzoPane, VZO, 60, -60, Color.Red, Color.Blue, Color.Black, LineStyle.Solid, 1 );
DrawHorzLine( vzoPane, 60, Color.DarkGreen, LineStyle.Dotted, 2 );
DrawHorzLine( vzoPane, -60, Color.Red, LineStyle.Dotted, 2 );
DrawHorzLine( vzoPane, 40, Color.DarkGreen, LineStyle.Solid, 1 );
DrawHorzLine( vzoPane, -40, Color.Red, [...]
[...] HideVolume();
ChartPane paneDecyclerOsc = CreatePane(30,false,true);
PlotSeries(paneDecyclerOsc,do1,Color.Red,LineStyle.Solid,2);
PlotSeries(paneDecyclerOsc,do2,Color.Goldenrod,LineStyle.Solid,2);
PlotSeries(PricePane,sd,Color.Red,LineStyle.Solid,2);
PlotSeriesFillBand(PricePane, sd * 1.005, sd * 0.995, Color.Goldenrod, Color.Transparent, LineStyle.Solid, 2); for(int bar = GetTradingLoopStartBar(125); bar bar > (sd bar * 1.005) )
SetPaneBackgroundColor( [...]
[...] ;
}
ChartPane pzoPane = CreatePane( 30, true, true );
PlotSeriesOscillator( pzoPane, PZO, 60, -60, Color.Red, Color.Blue, Color.Black, LineStyle.Solid, 1 );
DrawHorzLine( pzoPane, 60, Color.DarkGreen, LineStyle.Dotted, 2 );
DrawHorzLine( pzoPane, -60, Color.Red, LineStyle.Dotted, 2 );
DrawHorzLine( pzoPane, 40, Color.DarkGreen, LineStyle.Solid, 1 );
DrawHorzLine( pzoPane, -40, Color.Red, [...]
[...] the charted symbol and the benchmark symbols in a new pane
public void PlotBenchMarkPct(string ">"> bmSymbols, Color[ colors, DateTime fromDate)
{
int bar = Bars.ConvertDateToBar(fromDate, false);
SetBackgroundColor(bar, Color.Pink);
ChartPane cp = CreatePane(60, true, true);
DrawLabel(cp, "Percent Change since " + fromDate.ToShortDateString(), Color.Navy);
int c = 0;
foreach (string sym in bmSymbols)
{
Bars bmBars = GetExternalSymbol(sym, [...]
[...] "S3"; hSM3.Description = "Support Mean value 3";
HideVolume();
PlotSeries( PricePane, hR2, Color.Maroon, LineStyle.Dotted, 1);
PlotSeries( PricePane, hR1, Color.Olive, LineStyle.Solid, 1 );
PlotSeries( PricePane, hPivot, Color.Blue, LineStyle.Solid, 1 );
PlotSeries( PricePane, hS1, Color.Fuchsia, LineStyle.Dotted, 1 );
PlotSeries( PricePane, hS2, Color.Red, LineStyle.Solid, 1 ); bool showSvePivots = paramSwitch.Value == 1;
if(showSvePivots)
{
PlotSeries( [...]
[...] LineStyle.Solid;
ChartPane arPane = CreatePane( 50, true, true ); HideVolume();
PlotSeries( arPane, adaptiveRSI, Color.Blue, solid, 2 );
PlotSeries( arPane, rsi, Color.DarkBlue, solid, 1 );
DrawHorzLine( arPane, 70.0, Color.Red, LineStyle.Dashed, 1 );
DrawHorzLine( arPane, 30.0, Color.Blue, LineStyle.Dashed, 1 );
}
}
} Notice how much responsive can the Adaptive RSI be compared to its traditional 14-bar version on this 30-minute chart of Cisco Systems: Adaptive RSI (CSCO, 30-minute) [...]
[...] );
ChartPane paneCCI_LT = CreatePane( 40, false, true);
PlotSeriesOscillator( paneCCI_LT, CCI_LT, 100, -100, Color.FromArgb( [...]
[...] 50);
HullMA hma4 = HullMA.Series(Close,4);
DataSeries rsiHma = RSI.Series( HullMA.Series(Close,9), 9 );
Color tp = Color.Transparent;
LineStyle ls = LineStyle.Solid; ChartPane paneRsi = CreatePane(35,true,true);
PlotSeries(PricePane,hma4,Color.Blue,LineStyle.Solid,1);
PlotSeries(PricePane,SMA.Series(Close,50),Color.Blue,LineStyle.Solid,2);
PlotSeriesOscillator( [...]
[...] sto_y.FirstValidValue))))); ChartPane sPane = CreatePane( 20, false, true);
PlotSeries( sPane, sto_60, Color.Peru, ls, 1);
PlotSeries( sPane, sto_d, Color.Chartreuse, ls, 1);
PlotSeries( sPane, sto_w, Color.Gainsboro, ls, 1);
PlotSeries( sPane, sto_m, Color.Sienna, ls, 1);
PlotSeries( sPane, sto_q, Color.IndianRed, ls, 1);
PlotSeries( sPane, sto_y, Color.NavajoWhite, ls, 1); DataSeries buyVote = new DataSeries(Bars, [...]
[...] CCI.Series(Bars,14);
var ema = EMAModern.Series(Close,13);
var days = 10;
SetBarColors( Color.Silver,Color.Silver);
var ls = LineStyle.Solid;
var cp = CreatePane( 30,true,true);
var mp = CreatePane( 30,true,true);
var ap = CreatePane( 30,true,true);
PlotSeries( mp, macd, Color.DarkGreen, ls, 2 );
PlotSeries( ap, adx, Color.Red, ls, 2 );
PlotSeries( cp, cci, Color.Black, LineStyle.Histogram, 2 );
PlotSeries( PricePane, [...]
[...] or below its moving average for 11 trading sessions straight were highlighted in bluish and reddish color (see Figure 1). Figure 1. Daily chart of SPY (SPDR S&P 500) with VIX overlay illustrating Trent Gardner’s approach. The additional library is available for download to Wealth-Lab customers from our site www.wealth-lab.com ("Extensions" section). To avoid copy/paste, we suggest that Wealth-Lab users would download the code of the trading strategy (see below) by simply clicking the "Download" button in Wealth-Lab's "Open Strategy" dialog (Figure 2). Figure [...]
[...] FundamentalDataSeries(item);
ChartPane ep = CreatePane( 20, true, true );
PlotFundamentalItems(ep, item, Color.Green, WealthLab.LineStyle.Invisible, 1);
DrawLabel(ep, "Earnings by Zacks");
if( fList.Count == 0 )
{
DrawLabel( PricePane, "Update Zacks Adjusted Earnings data before running the Strategy");
Abort();
}
DrawLabel(PricePane, Bars.Symbol + tab + tab + "Earnings count: " + fList.Count);
DrawLabel(PricePane, "Date" + tab + tab + "EPS" + tab + "Estimate" + tab + "Surprise");
foreach (FundamentalItem fi in fList)
{
DrawLabel(PricePane,
fi.Date.ToShortDateString() [...]
[...] rather classify it as pure momentum trading. Figure 1. A Wealth-Lab Developer 6.2 chart showing the Color-Based System applied to a Daily chart of the SPDR S&P500 ( SPY ). Our C# version of the system allows Wealth-Lab 6 users to easily change the lookback and exit parameters by dragging the parameter sliders in the lower left corner of Wealth-Lab's main workspace. We replaced the default trailing exit with a combination of a profit target and a stop loss, and made the system exit on Red and Orange bars. For traders willing to tweak the rules further, here's a uber [...]
[...] WilsonRSIChannel.Series(ds, rsiPer, emaPer, 30);
PlotSeriesDualFillBand(PricePane, obought, nzu, Color.LightGray, Color.Blue, Color.LightGray, LineStyle.Solid, 1);
PlotSeriesDualFillBand(PricePane, osold, nzl, Color.LightBlue, Color.LightBlue, Color.LightBlue, LineStyle.Solid, 1);
ChartPane rsiPane = CreatePane( 50, false, true );
PlotSeries(rsiPane, [...]
[...] Execute()
{
PlotSeriesDualFillBand( PricePane, SenkouSpanA.Series(Bars), SenkouSpanB.Series(Bars),
Color.FromArgb( 50, Color.Blue ), Color.FromArgb( 50, Color.Red ),
Color.FromArgb( 50, Color.Black ), LineStyle.Solid, 1 );
}
}
}
This example demonstrates a neat WealthScript trick: pushing the price DataSeries back 26 bars to align with the Kumo, so that the Kumo is plotted 26 periods into the future:
using System;
using [...]
[...] SVESmoothedVolatilityBandLower.Series( Bars, average, middleperiod, devfact, lowbandadjust ); SolidBrush shadowBrush = new SolidBrush(Color.FromArgb(50, Color.Violet));
PlotSeriesFillBand(PricePane, HighChannel, LowChannel, Color.Blue, shadowBrush, LineStyle.Solid, 2);
PlotSeries(PricePane, MedianAverage, Color.Blue, LineStyle.Solid, 1);
HideVolume(); // Squeeze and expansion in SveVolatilityBands
var PctWidth = ( ( HighChannel - LowChannel ) / MedianAverage ) * 100; PctWidth.Description = "% Width";
var [...]