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.
[...] TASC_2018_08()
{
paramMode = CreateParameter( "A/D/ ATR/ ADX" , 0, 0, 2, 1);
paramLength = CreateParameter( "Length" , 4, 4, 10, 2);
paramADX = CreateParameter( "ADX Trigger" , 30, 5, 40, 5);
paramConsTimeout = CreateParameter( "Cons. timeout" , 4, 2, 20, 2);
paramConsFactor = CreateParameter( "Cons. factor" , 0.75, 0.25, 0.75, 0.25);
paramEntryBreakout = CreateParameter( "Brkout/Pullback" , 0, 0, 1, 1);
}
protected override void Execute()
{
int mode = paramMode.ValueInt;
int Length = paramLength.ValueInt, ADXTrigger [...]
[...] private StrategyParameter paramThresh;
public ZeroLag1011()
{
paramLength = CreateParameter( "Length" , 32, 2, 100, 1);
paramGain = CreateParameter( "Gain Limit" , 22, 2, 100, 1);
paramThresh = CreateParameter( "Threshold" , 0.75, 0.5, 2, 0.25);
}
protected override void Execute()
{
int Length = paramLength.ValueInt;
int GainLimit = paramGain.ValueInt;
double Thresh = paramThresh.Value;
// Data series
EMA ema = EMA.Series( Close , Length, EMACalculation.Modern );
EC [...]
[...] StrategyParameter paramWeeklyLength2;
public MyStrategy()
{
paramDailyLength1 = CreateParameter( "Daily Length 1" ,12,2,300,20);
paramDailyLength2 = CreateParameter( "Daily Length 2" ,26,2,300,20);
paramWeeklyLength1 = CreateParameter( "Weekly Length [...]
[...] = CreateParameter( "Exit after" , 20, 1, 50, 1);
paramDailyLength1 = CreateParameter( "Daily Length 1" ,12,2,300,20);
paramDailyLength2 = CreateParameter( "Daily Length 2" ,26,2,300,20);
paramWeeklyLength1 = CreateParameter( "Weekly Length [...]
[...] private StrategyParameter paramPeak;
public Leavitt()
{
paramLength = CreateParameter( "LcP Length" , 50, 10, 50, 10);
paramPeak = CreateParameter( "LcSlope Peak" , 50, 5, 50, 5);
}
protected override void Execute()
{
bool reachedPeak = false , changedSign = false ;
int peakBar = -1, signBar = -1;
int peakBars = paramPeak.ValueInt; int Length = paramLength.ValueInt;
var LeavittProjection = LinearReg.Series( [...]
Syntax public TruncatedBandPass(DataSeries ds, int period, double bandWidth, int length, string description) public static TruncatedBandPass Series(DataSeries ds, int period, double bandWidth, int length) Parameter Description ds A DataSeries [...]
[...] randomColor;
}
protected override void Execute()
{
DataSeries Price = Close ;
int Length = 2, Level = 10;
List<DataSeries> lst = new List<DataSeries>();
lst.Add( SMA.Series(Price, Length) ); // Rainbow Charts
for ( int i = 1; i < Level; i++ )
{
DataSeries ds = SMA.Series( lst[lst.Count - 1], Length );
ds.Description = string .Format( "Rainbow({0})" , i );
lst.Add( ds );
PlotSeries ( PricePane , ds, RandomColor(), LineStyle.Solid, [...]
[...] system's Net Profit. On a 3D optimization graph we plot the system's Net Profit on axis Z, and the RSI Length and Fixed Bars parameters on axes X and Y respectively (Figure 3). The best Net Profit $ came from the 8-period RSI Length which suggests that there may be a 16-bar cycle period in the Dow 30 stocks. However, the 3D graph indicates there's a sharp peak around this value. The smooth area of the curve nearby suggests a stable and profitable zone with multiple adjacent parameter values which lead to more consistent results. Hence we'd [...]
[...] MACDEx_Histogram3 Series(DataSeries ds, int period1, int period2, int period3)
Parameter Description period1 Length used to calculate the first moving average period2 Length used to calculate [...]
[...] (!sr.EndOfStream)
{
string source = sr.ReadLine();
// Skip empty lines and garbage
if (source.Length <= 1)
continue ;
// Treat the CSV comma-separated line as an array
value = source.Split(',');
// Resize the array to add space for the Symbol column
Array.Resize( ref result, newColumns);
// Insert the parsed row
Array.Copy(value, 0, result, 1, value.Length);
// Add the ticker to the very beginning
result[0] = ticker;
DateTime [...]
EC — 3.3%
Syntax public EC(DataSeries ds, int Length, int GainLimit, string description) : base (ds, description) Parameter Description ds Source DataSeries
[...] Series(DataSeries ds, int period1, int period2, int period3)
Parameter Description
period1
Length used to calculate the first moving average
period2
Length used to calculate the second [...]
[...] where
mtm = close today – close yesterday
EMA(mtm,r) = exponential moving average of mtm with period length = r
EMA(EMA(mtm,r),s) = exponential moving average of EMA(mtm,r) with period length [...]
ATR — 2.2%
[...] Close ,20)))
BuyAtMarket (bar+1);
}
}
}
}
} This example plots ATRs in decreasing length if increasing blue intensity: 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 ) / 100 * 28.4 ),
( int )Math.Floor( ( WS4Color % 100 ) / 10 [...]
[...] string description)
Parameter Description
bars
The Bars object
smooth
The length of smoothing
period
Indicator period
Description StochD returns the Stochastic %D indicator. StochD is a smoothed version of the Stochastic %K, StochK . Specify the length [...]
[...]
period
The number of bars to use when calculating the indicator
ma_period
The length of the moving average to use
Description TII is the Trend Intensity Index. It measures the strength of a trend by tabulating the deviation of price and its moving average. Specify the number of bars to use when calculating the indicator in the Period parameter, and the length [...]
[...] KVOSeries( Bars bars, int period1, period2) Parameter Description bars A Bars object period1 The length of the faster EMA of the volume force period2 The length [...]
[...] MACDEx Series (DataSeries ds, int period1, int period2)
Parameter Description
period1
Length used to calculate the first moving average
period2
Length [...]
[...] DEMA(DataSeries ds, int period1, int period2) Parameter Description ds DataSeries period1 Length used to create the EMA period2 Length [...]
[...] instead of the exponential average in Wilder's original formula. Consequently, Cutler's RSI is not data length dependent, and returns consistent results regardless of the length [...]
[...] MACDEx_Histogram Series(DataSeries ds, int period1, int period2)
Parameter Description
period1
Length used to calculate the first moving average
period2
Length [...]
[...] MACDEx_Signal Series(DataSeries ds, int period1, int period2)
Parameter Description
period1
Length used to calculate the first moving average
period2
Length [...]
[...] for each value of lag
for ( int Lag = 0; Lag <= 48; Lag++)
{
//Set the averaging length as M
M = AvgLength;
if ( AvgLength [...]
[...] but the key difference is that there's no fixed lookback period. WLMA's lookback period is variable-length and is determined by the Adaptive Lookback [...]
WMA — 1.1%
[...] heavily weighted, and contributes more to the final WMA value. WMA excludes price data outside the length of the moving average, Period. WMA = ( P 0 [...]
[...] Bellies (CME)
// Food/Fiber
CC Cocoa (NYBOT)
CT Cotton No. 2 (NYBOT)
KC Coffee C (NYBOT)
LB Random Length Lumber (CME)
OJ Frozen Concentrated Orange [...]
[...] moves the "current" price move after time P*t is compared against the StdDev of a number of moves of length t. This means the CTI Indicator gives a rather [...]
[...] atrPeriod, double atrMult) Parameter Description
bars
The Bars object
smaPeriod
Length used to calculate the center line
[...]
[...] Parameter Description
ds
The source DataSeries
tcLength
The Trend Cycle length/period
avgPeriod1
The fast average [...]
[...] Parameter Description
ds
Data series to be smoothed with a moving average
period
Length used to calculate the moving average (center [...]