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.
[...] differently colored ranges: from yellow at the maximum amplitude to black as ice cold. Figure 1 shows how the measured cycle periods change over time on the Daily chart of AXP (American Express).
Revision A 08/01/2016 using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators; namespace WealthLab.Strategies
{
public class TASC201609 : WealthScript
{
private StrategyParameter paramEnhance; public TASC201609()
{
paramEnhance = CreateParameter("Enhance Resolution", 0, 0,
[...] already) the library from the www.wealth-lab.com site to its latest version 2013.04 or higher. Figure 1. A Wealth-Lab 6 chart pinpoints Engulfing, Downstep and Upstep patterns that occurred at reversal points on a chart of AAPL (Apple Inc).
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
using WealthLab.Rules.Candlesticks;
using TASCIndicators; namespace WealthLab.Strategies
{
public class IRSTS_StepPattern : WealthScript
{
private StrategyParameter paramPercent;
private StrategyParameter [...]
[...] the ADX is below its threshold for a trending market, the system would enter the trade. Figure 1. Bearish divergence between the SRSI and price which formed in January 2014 triggered a short trade in KO (Coca Cola). After updating the TASCIndicators library to v2015.06 or later, the SRSI indicator can be found under the TASC Magazine Indicators group. You can plot it on a chart or use it as an entry or exit condition in a Rule-based Strategy without having to program a line of code yourself.
using System;
using System.Collections.Generic;
using System.Text;
using [...]
[...] Trades from the short side are deliberately not taken as their performance seems poor. Figure 1. Bullish divergence between the MFO and price formed in June 2015 triggered a long trade in KO (Coca Cola). After updating the TASCIndicators library to v2015.09 or later, the MoneyFlowOscillator indicator can be found under the TASC Magazine Indicators group. You can plot it on a chart or use it as an entry or exit condition in a Rule-based Strategy without having to program a line of code yourself.
using System;
using System.Collections.Generic;
using System.Text;
using [...]
[...] application to spot medium-term divergences on the chart if you run enclosed C# Strategy code. Figure 1 . A divegence in Procter & Gambler stock (PG) with three tops that formed in a year. C# Code
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
using TASCIndicators; namespace WealthLab.Strategies
{
/*
Divergence: price sets a lowest low but the indicator fails to confirm the new low and turns up
*/
public class WDMACD_Divergence : WealthScript
{
private StrategyParameter [...]
[...] Strategy rules: Enter long next bar at open if following conditions are met:
Stock price greater than $1 50-day simple moving average of volume is greater than 100,000 Yesterday’s close was less than the day before Yesterday’s close was less than its open Today’s open is greater than yesterday’s close Today’s close is greater than yesterday’s open Today’s open is less than yesterday’s open As of yesterday’s close, price had been closing lower for three days Sell short next bar at open if following conditions are met: Stock price is greater than $10 50-day simple moving [...]
[...] choose any type of trade: inside S3/R3, outside S3/R3, and breakouts from S4/R4 levels. Figure 1. This 5-minute chart of QQQ illustrates the application of the multi-timeframe Camarilla Points breakout & reversion trading system. The two trades was caused by the market opening inside S3/R3 thresholds. The system's unabridged C# code for Wealth-Lab can be found below. On a closing note, motivated traders may also want to explore “Woodies Pivots” – whose difference from the rest of the breed (floor trader pivots, Camarilla points or Fibonacci pivots) is that they [...]
[...] WealthScript can be found in the TASC Traders’ Tips section at the Wealth-Lab.com Wiki site. Figure 1. The Trend Vigor’s ominous corona in June provided a good warning that MSFT’s March-April rally had lost its steam.
Strategy Code Revised: 20090611
Thanks to Wealth-Lab.com user "htg1", the calculation for the Trend variable used for "Trend Vigor" is now correct. Additionally, the starting loop variable was changed from 12 to 51, and DataSeries initializations have been simplified. // WAS:
double Trend = ds bar - ds cycPeriod ;
// SHOULD BE (IS):
double Trend [...]
[...] of our example Strategy, we take a standard Renko chart and use Daily prices. Despite using the same period, the HA-based average always lags behind due to added smoothing. The rules are: When the 8-period “fast” average crosses above the “slower” counterpart of the same period, a long position is established. When the 8-period “fast” average crosses below the “slower” average of the same period, the long position is closed. Figure 1. [...]
[...] setups aimed at identification of the start of a trending move and top/bottom-picking. ''Figure 1. Weekly chart of PFE (Pfizer) illustrating the application of the TAC-DMI approach.
WealthScript Code (C#)
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators; namespace WealthLab.Strategies
{
public class TAC_DMI_Strategy : WealthScript
{
#region Convergence functions
double Average(List lst)
{
double total = 0.0;
double average = 0.0;
int period [...]
[...] catches bullish divergences of Asymmetric RSI with price based on the 2nd approach. As seen on Figure 1, two potentially profitable opportunities could be taken as a result of timely signaling from the 14-period ARSI, which in its turn seems to be really responsive -- as much as the half-period RSI.
Figure 1. Illustrating on a long trade in OIH ETF, the ARSI turns out to signal two timely bullish divergence trades. Traders might like to explore the ARSI crossovers and crossunders, [...]
Syntax public ARSI(DataSeries ds, int period, string description)
public static ARSI Series(DataSeries ds, int period)
Parameter Description
ds
The source DataSeries
period
The indicator period.
Description The ARSI (Asymmetrical RSI) indicator from the October 2008 issue of Stocks & Commodities magazine.
Open Issues
(18427) FirstValidValue after Synchronize is incorrect for ARSI
Example /* WealthScript from Oct 2008 Traders' Tip [...]
Bars, Loops, and Bar + 1
Original article by Robert Sucher in the legacy Knowledge Base here .
Wealth-Lab Developer has features such as order slippage and variable commissions to bring trading simulation as close to reality as possible. Likewise, your task as a trading system designer is to express your system in C# code that validly recreates security orders as they would have been and will be executed in real life. Bar Definition
A bar is any interval of time that has an open, high, low, and closing price, whose values may be different or equivalent. These [...]
[...] prematurely. We found that using a loose Chandelier stop as the only exit criteria with an arbitrary Fibonacci period of 55 and an ATR coefficient of 3.0 increased profitability of trading 1 contract (8.1% vs. 6.7% APR) and win rate (63.5% vs. 52.1%) while decreasing number of trades (63 vs. 71) and drawdown (6.13% vs. 6.55% based on $100K Starting Equity). Figure 1 illustrates how the new exit strategy generally helped to keep trades active longer with a well-defined [...]
[...] purpose. The Equity Curve for the Portfolio Simulation with $100,000 starting equity is shown in Figure 1. As a reminder, Wealth-Lab users should install the CBOE Provider extension from Wealth-Lab.com to easily access and update Put/Call Ratio data directly from the CBOE website.
Figure 1. The strategy was able to avoid Buy & Hold’s large drawdown in 2008 (blue) by trading from the short side (red), which compensated the drawdown in long positions (black).
Note: The indicator was added to the TASCIndicators library, version 2011.11.0.0 [...]
[...] right will change between the six choices and make the chart update with backtested trades.
Figure 1. Sample entries on a Daily chart of QLD. Data provided by Yahoo! Finance. For example, Figure 1 illustrates a bearish and two bullish key reversal trades created on the next open following the pattern and exiting 3 days after. Through another parameter slider you can control exits after N bars in a trade. To avoid copy/paste, hitting Ctrl-O and choosing “Download…” in Wealth-Lab gets you the downloadable Strategy under the “Chart patterns” [...]
[...] profit factor for the last 6 years of trading on the Dow 30 and Nasdaq 100 index components.
Figure 1. Representative trades from the sample Strategy. WealthScript Code (C#)
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators; namespace WealthLab.Strategies
{
public class EmpiricalModeDecomp : WealthScript
{
StrategyParameter _period;
StrategyParameter _delta;
StrategyParameter _fraction;
public EmpiricalModeDecomp()
{
_period [...]
[...] MADXY;
StrategyParameter chnlLength;
public MyStrategy()
{
D1DXY = CreateParameter("DX LRSlope Period", 25, 10, 50, 1);
D2SNL = CreateParameter("Snl LRSlope Period", 12, 5, 25, 1);
LRSDXYSELL = CreateParameter("DX LRSlope", 0.3, 0.1, 0.8, 0.1);
LRSNLSELL = CreateParameter("Snl LRSlope", -0.8, -1.2, -0.5, 0.1 );
MASELL = CreateParameter("Soybean EMA
Traders' Tip text
The IRSTS 1-2-3 rule, presented by author Sylvain Vervoort in June 2013 issue, originates from classic swing trading philosophy. With our simplified rendition of Vervoort’s quite complex system in our C# code, based on fixed percentage swings, we laid out a framework for detecting the 1-2-3 waves. The system marks each Wave on the chart, connecting them with colored lines, and enters on pullbacks in the direction of the primary trend (Wave 1). Its exits are simple profit target and stop [...]
[...] first 100 bars, the initial trades can still be sensitive to the length of the seed data. Figure 1. The strategy presciently reversed near the top and held the Aussie short from July - Dec 2008. Download the attachment for the ASCII Data used for the article and the Strategy below. (Attachments are available only to registered Wealth-Lab Pro/Developer customers). If using your own data, be sure to make the secondary symbol changes in the code as required. Strategy Code
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using [...]
[...] risk management explore if “clumping” of MTR spikes has effect on system's profitability
Figure 1. A Wealth-Lab 6 chart illustrates the sample system's performance on the Daily chart of American Express (AXP).
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators; namespace WealthLab.Strategies
{
public class ModifiedTrueRange : WealthScript
{
private StrategyParameter paramPeriod; public ModifiedTrueRange()
{
paramPeriod = CreateParameter("Period", [...]
[...] programmed the long-only Tr&nd stop strategy for Wealth-Lab 5 in C#. You can use the sliders to adjust the Period and atrFactor Strategy Parameters to eyeball an optimization, or using WLP 5.4 you can now run full Exhaustive and Monte Carlo optimizations. A portfolio simulation ($5000 size, $8 1-way commissions) on the Dow 30 symbols over the last 6 years yielded the 2-Parameter optimization curve in Figure 1. Figure 1. While the optimization didn’t inspire confidence in the strategy’s [...]
[...] sensitivity by triggering a trading signal after one, two or three divergences on the same bar. Figure 1 illustrates the application of the system's rules on the Daily chart of QQQ. The lower pane shows the 5-, 8-, and 13-day linear regression slope of the recent close price.
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators; namespace WealthLab.Strategies
{
enum Side { Buy = 1, Sell = -1, NA = 0 }
public class TASC201406_Kaufman [...]
[...] while still reaping a good profit with a better Recovery Factor and less market exposure. Figure 1. Here's how the rating technique avoids taking investing decisions in downtrends - as can be seen on this chart of GS (Goldman Sachs). To execute the included trading system, Wealth-Lab users need to install (or update) the latest version of two indicator libraries, TASCIndicators and Community Indicators , from the Extensions section of our website and restart Wealth-Lab. Figure 2 . For DAX stocks, the optimum trade duration was between roughly 2 to 5 months [...]
[...] 0.0000001, as for the JPY base currency (JPY/other). Fractional Pip: Forex pricing shown in tenths of 1 Pip, allowing greater transparency into electronic markets and cost savings on a forex transaction. Tick: The same as a pip. Point: Sometimes the same as a pip. Sometimes the same as a change of one percent of price (Big Point). Big Point: The same as a "point" The Symbol Info Manager uses its own terminology which stems from futures trading: Tick: The smallest amount a price can change. This is the pip of a forex symbol. Point Value: This is the "dollar" [...]
Adaptive Lookback period finder: Indicator Documentation
Syntax
public AdaptiveLookback(Bars bars, int howManySwings, bool UseAll, string description)
public AdaptiveLookback(Bars bars, int howManySwings, bool UseAll, bool fastSwing, string description)
public AdaptiveLookback(Bars bars, int howManySwings, bool UseAll, bool fastSwing, bool preciseDetection, string description) public AdaptiveLookback(Bars bars, bool fastSwing, string description)
public AdaptiveLookback(Bars bars, bool fastSwing, bool preciseDetection, string description) public static AdaptiveLookback [...]
[...] depending on the phase angle. We define an uptrend when the CorrelationAngleÆs state ôflatlinesö at 1 for 2 bars (or -1 for a downtrend). The logic is simple. An uptrend switches the system into trend following mode, with entries and exits made via channel breakout. If permitted, short trades are done in the same manner in a downtrend -- yet with a shorter lookback period for the channel. An absense of trend directs the system to take cyclic trades: buying small dips and selling at the high of the channel. Here [...]
[...] process considered intraday data instead. As a result, our aggregate voting indicator polls for the 21-period Stochastic readings on 60-minute, Daily, Weekly, Monthly, Quarterly and Yearly time frames. The code below requires intraday data which you can get for free or on a subscription basis from different providers such as Tiingo, Alpha Vantage or DTN IQFeed. We use a modified version of author’s Example 2 which can take multiple positions in the same symbol. Strategy rules: Long setup : Buying pressure >= 5 Buy tomorrow at open each time when selling pressure is [...]
[...] Strategies as an entry or exit condition without having to program a line of code yourself. Figure 1 shows the Strategy Builder’s Conditions tab with a group of rules for General Indicators. To attach a rule for SZO: Simply drag and drop one of the general conditions on an entry or exit (specifically, “Indicator crosses above/below a Value), and then Click where indicated to select the SZO from the Indicators dialog. Figure 1. Building a SZO crossover/crossunder Strategy from Rules as indicated in “SZO trading tactics” in Wealth-Lab [...]
[...] Daily scale and then save the information in the Intraday scale so that it can be charted. Figure 1 illustrates the usual “floor trader” pivots as well as the new “SvePivots”
Code using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators; namespace WealthLab.Strategies
{
public class SvePivots : WealthScript
{
private StrategyParameter paramSwitch;
public SvePivots()
{
paramSwitch = CreateParameter("Show SvePivots?", 1, 0, 1, [...]