Log in to see Cloud of Tags

Wealth-Lab Wiki

Search Engine

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.



Filter by Category

















This search, performed through 4.04 MB (775 documents, 11955 words), completed in 0.0 seconds and yielded 30 results.

TASC 2008-11 | Corona Charts (Ehlers) — 27.8%

[...] new ArrayHolder[61 ; for( int n = 12; n n = new ArrayHolder(); double domCycle = 0d; string s = ds.Description + ")"; DataSeries ">61"> DB = new DataSeries[61 ; DataSeries domCyc = new DataSeries(Bars, "DC(" + s); domCycMdn = new DataSeries(Bars, "DomCyc(" + s); snrSer = new DataSeries(Bars, "SNR(" + s); psnSer = new DataSeries(Bars, "Swing Position(" + s); tvSer = new DataSeries(Bars, "Trend Vigor(" + s); // Create and plot the de

TASC 2008-03 | Measuring Cycle Periods (Ehlers) — 12.3%

[...] Initialize arrays ArrayHolder ">51"> ah = new ArrayHolder[51 ; for( int n = 8; n n = new ArrayHolder(); Color ">21"> color = new Color[21 ; DataSeries ">51"> DB = new DataSeries[51 ; double domCycle = 0d; string name = ds.Description; DataSeries result = Close - Close; result.Description = "Dominant Cycle(" + name + ")"; // Create and plot the decibel series - change the colors later ChartPane dbPane = CreatePane(40, false, false ); for( int [...]

TASC 2012-03 | Swami Stochastics Heat Map (Ehlers) — 4.6%

[...] // Initialize array ArrayHolder ">49"> ah = new ArrayHolder[49 ; for( int n = 4; n n = new ArrayHolder(); // Create and plot the heatmap series (change bar colors later) HideVolume(); HidePaneLines(); ChartPane swPane = CreatePane(50, false, false ); for( int n = 4; n n = swStoch + n; swamistoch n .Description = "SwamiSto." + n.ToString();

TASC 2016-09 | Measuring Market Cycles (Ehlers) — 2.4%

[...] int n = 0; n n = new DataSeries(Bars,n.ToString()); for( int bar = 0; bar n bar = n; PlotSeries(tp, ds n , Color.Black, LineStyle.Solid, 16); } HideVolume(); for( int bar = 0; bar ">70"> Corr = new double[70 ; double ">70"> CosinePart = new double[70 ; double ">70"> SinePart = new double[70 ; double ">70"> SqSum = new double[70 ; double [...]

MS123 IndexDefinitions - Home — 2.0%

[...] in such a way that it is often a leading indicator of price change. Formula: Demand index = Sum of n-day upside volume / Sum of n-day downside volume Interpretation: Demand Index Dysart Positive/Negative Volume (DPNV) Paul Dysart's Positive/Negative Volume is similar to Granville's OBV. More in Wikipedia . Eliades New TRIN (ETRIN) The Eliades New TRIN is a smoothed version of Arms Index (TRIN). Gap Index (GAP) The Gap index is a market breadth indicator that measures the number of symbols that gapped up and down. For each bar, the [...]

Correlation — 1.7%

Syntax public static double Correlation(this double ">"> x, double[ y, int n) public double Correlation(double ">"> x, double[ y, int n) Parameter Description x Array of double values (first data series) y Array of double values (second data series) n Correlation lookback period Description Calculates Pearson Correlation. Uses code from ALGLIB project . Example The following example demonstrates how well correlated were CMO and RSI: Example using C# extension methods: using System; using [...]

TASC 2010-06 | Fractal Dimension (Ehlers) — 1.6%

[...] namespace WealthLab.Strategies { public class FractalDim : WealthScript { StrategyParameter _n; StrategyParameter _per; public FractalDim() { _n = CreateParameter("N", 30, 10, 60, 2); // An even number _per = CreateParameter("Average Period", 20, 10, 55, 1); } protected override void Execute() { HideVolume(); int N = _n.ValueInt; int avPer = _per.ValueInt; DataSeries avg = AveragePrice.Series(Bars); DataSeries smooth = FIR.Series(avg, [...]

Fractal Buy/Up (Bill Williams) — 1.4%

[...] Convert.ToChar(0x00D9).ToString(); string _dnFractal = Convert.ToChar(0x00DA).ToString(); for(int n = 5; n n > fractalupbars n-1 ) { int fbar = (int)fractalupbars n ; AnnotateBar(_upFractal, [...]

Fractal Sell/Down (Bill Williams) — 1.4%

[...] Convert.ToChar(0x00D9).ToString(); string _dnFractal = Convert.ToChar(0x00DA).ToString(); for(int n = 5; n n > fractalupbars n-1 ) { int fbar = (int)fractalupbars n ; AnnotateBar(_upFractal, [...]

WilderMA — 1.4%

[...] Moving Average . Compared to other moving averages, WildersMA responds slowly to price changes. A n-period WilderMA gives similar values to a 2n period EMA . For example, a 14-period EMA has almost the same values as a 7-period WilderMA. Interpretation WilderMA can be interpreted in the same way as other moving averages. The WilderMA is like a EMA with half number of periods. See the EMA indicator for more information. You should use a WilderMA when calculating other Wilder's indicators to ensure consistent results with other systems and users. If you are after a [...]

Volatility — 1.3%

[...] Then take the ROC of this value over a period specified by rocPeriod . CV = ( HLAve) / ( HLAve n days ago) where, CV = Chaikin's Volatility value n = number of ROC periods Example using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators; namespace WealthLab.Strategies { public class MyStrategy : WealthScript { // Thank you fundtimer public Color WS4ColorToNET( double WS4Color ) { return Color.FromArgb( (int)Math.Floor( ( WS4Color % 1000 ) / [...]

WilliamsR — 1.3%

[...] rise. This is a swing failure, it show the sellers are weakening. Calculation Wm%R = 100 * [...]

Data | Data Tool — 1.3%

[...] certain operations on entire DataSets which would otherwise take certain effort: Truncate last or first N bars (or N days of intraday data) Wipe the entire DataSet data (to help mass reload) Remove inactive (dead) symbols Remove selected symbols Remove bad bars (e.g. weekends) Fix OHLC out of bounds Change symbol Check data for validity Compatibility Supported are static data providers that rely on Wealth-Lab to maintain their data in the local storage of .WL files. Only their DataSets will appear in the DataSets tree on the left and allow [...]

TASC 2009-10 | Volume-Weighted MACD Histogram (Hawkins) — 1.1%

[...] false; for (int n = bar; n > bar - 5; n ) { if( vmacdh bar bar ; } DrawLabel(PricePane, "VMACDH: " + vwCount); DrawLabel(PricePane, "MACD: " + maCount); PrintDebug(vwCount [...]

WMA — 1.1%

[...] value. WMA excludes price data outside the length of the moving average, Period. WMA = ( P 0 * n + P 1 * [...]

AroonDown — 1.1%

[...] crosses above the AroonUp, then a new downtrend may soon start. Calculation AroonUp : 100 * ( n - ( Num. of bars since highest [...]

TASC 2011-03 | Three-Bar Inside Bar Pattern (Prathap) — 1.1%

[...] if (patternBars > 1) { int p = patternBars - 1; for (int n = bar - 1; n >= bar - p; n--) {

TroughBar — 1.1%

[...] WealthScript { protected override void Execute() { // Flag bars that are 5% Troughs int n = -1; int nPrev = -1; for(int bar = 0; bar -1 ) ) { DrawCircle( PricePane, 6, n, Low n , Color.Green, LineStyle.Solid, 2, true ); nPrev = n; } } } } } [...]

FAQ | Position Sizing, Extensions, Miscellaneous — 1.1%

[...] price so that the basis price is the same as the execution price Position BuyAtMarket(int n, string sigName = "") { if (n >= Bars.Count) return base.BuyAtMarket(n, sigName); // create market order alert else return BuyAtLimit(n, Open n , sigName); } When I run a strategy in a Raw Profit mode, a warning message tells me that some trades were dropped because of insufficient funds. Why? It is possible in Raw Profit mode [...]

Quandl provider suite — 0.9%

[...] Bars.FindNamedSeries("Neutral"); DataSeries s = Bars.FindNamedSeries("Bull-Bear Spread"); if(bu != null && be != null && n != null && s != null) { ChartPane p1 = CreatePane( int.MaxValue, true, true ); ChartPane p = CreatePane( int.MaxValue, true, true ); PlotSeries( p, bu, Color.Green, LineStyle.Solid, 2 ); PlotSeries( p, be, Color.Red, LineStyle.Solid, 2 ); PlotSeries( p, n, Color.DarkBlue, LineStyle.Solid, 1 ); PlotSeries( p1, s, Color.Blue, LineStyle.Histogram, 2 ); } } else PrintDebug( Bars.Symbol + " does not contain named [...]

CumDown — 0.8%

[...] override void Execute() { // Highlight extreme moves down double n = 0; for(int bar = 0; bar bar ); if( n > 9 ) n = 9; SetBarColor( bar, WS4ColorToNET( n*100 ) ); } } } } [...]

TASC 2011-11 | Put/Call Ratio Indicators (Vervoort) — 0.8%

[...] pane as fastPCRI int n = Bars.Count - 1; DataSeries slowT = TransformSeries(slowPCRI, Lowest.Value(n, slowPCRI, n - 30), Highest.Value(n, slowPCRI, n - 30), [...]

Copy to Clipboard — 0.8%

[...] + "Open" + sep + "High" + sep + "Low" + sep + "SMA bar \n"; for(int i = sma.FirstValidValue; i i .ToShortDateString() + sep + Open i + sep + High i + sep + Low i + sep + Close i + sep + Bars.FormatValue( sma i ) + "\n" ); } this.CopyText( s ); } } } Advanced example Copying formatted text and chart image to clipboard and creating a new RTF document (open in Wordpad or Word): using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators; using

Hilbert Transform | HTPeriod — 0.8%

[...] AveragePrice.Series( Bars ) ); DataSeries DynSMA = Close-Close; int n = 0; ChartPane HTPeriodPane = CreatePane( 50, true, true ); PlotSeries( HTPeriodPane, htp, Color.Blue, LineStyle.Solid, 1 ); for(int bar = 40; bar bar ); if( n bar = SMA.Series( AveragePrice.Series( Bars ), n ) bar ; } PlotSeries( [...]

Win Increases (Equity momentum) — 0.8%

[...] the position size by the user-selected percentage if the equity curve had certain gain over the past N bars (i.e. the "equity momentum"). Otherwise it sets the position size to an initial size. As with most other PosSizers, the basic position size can be determined using either fixed dollar, percent of equity, or maximum risk percentage approach. The "equity momentum" can be either the N-trade momentum of the equity curve or the [...]

TASC 2011-12 | Stoch IFT Strategy (Vervoort) — 0.8%

[...] int n = Bars.Count - 1; DataSeries slowT = TransformSeries(slowPCRI, Lowest.Value(n, slowPCRI, n - 30), Highest.Value(n, slowPCRI, n - 30), 0, 100); [...]

CumUp — 0.8%

[...] override void Execute() { // Highlight extreme moves up double n = 0; for(int bar = 0; bar bar ); if( n > 9 ) n = 9; SetBarColor( bar, WS4ColorToNET( n*10 ) ); } } } } [...]

StochRSI — 0.8%

[...] essentially a StochK of the RSI . See both StochK and RSI for more information. StochRSI = ( RSI(n) - RSI [...]

VMA — 0.6%

[...] active, and stock is being sold, go short. Calculation VMA = ( V 1 * P 1 + V 2 * P 2 + ... + V n * P n ) / ( V 1 + V 2 + ... + V n ) where, [...]

StdDev — 0.6%

[...] enum. Steps to calculate Standard Deviation for n periods Calculate the mean price by summating the price for n periods and divide by n. From each period's price subtract the mean, this gives you the deviation for each period. Find the sum of the squares of all deviations. Divide the sum [...]

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.