Hi, TraderMaj. I can see you are using wealth lab pro. I think you might have far greater results with Superbands, with Linear Regression Analysis:
All Trades Long Trades Short Trades Buy & Hold
Starting Capital $1,000,000.00 $1,000,000.00 $1,000,000.00 $1,000,000.00
Ending Capital $33,396,941.40 $33,396,941.40 $1,000,000.00 $35,011,756.09
Net Profit $32,396,941.40 $32,396,941.40 $0.00 $34,011,756.09
Net Profit % 3,239.69% 3,239.69% 0.00% 3,401.18%
Annualized Gain % 21.81% 21.81% 0.00% 22.13%
Exposure 6.87% 6.87% 0.00% 103.13%
Total Commission ($415,936.00) ($415,936.00) $0.00 ($3,354.41)
Return on Cash $0.00 $0.00 $0.00 $0.00
Margin Interest Paid $0.00 $0.00 $0.00 $0.00
Dividends Received $0.00 $0.00 $0.00 $0.00
Number of Trades 25,996 25,996 0 100
Average Profit $1,246.23 $1,246.23 $0.00 $340,117.56
Average Profit % 1.39% 1.39% 0.00% 1,535.09%
Average Bars Held 2.00 2.00 0.00 3,591.95
Winning Trades 16,062 16,062 0 95
Win Rate 61.79% 61.79% 0.00% 95.00%
Gross Profit $62,742,509.83 $62,742,509.83 $0.00 $34,063,429.86
Average Profit $3,906.27 $3,906.27 $0.00 $358,562.42
Average Profit % 4.45% 4.45% 0.00% 1,618.62%
Average Bars Held 2.00 2.00 0.00 3,673.80
Max Consecutive Winners 159 159 0 76
Losing Trades 9,934 9,934 0 5
Loss Rate 38.21% 38.21% 0.00% 5.00%
Gross Loss ($30,345,568.44) ($30,345,568.44) $0.00 ($51,673.77)
Average Loss ($3,054.72) ($3,054.72) $0.00 ($10,334.75)
Average Loss % -3.55% -3.55% 0.00% -51.99%
Average Bars Held 2.00 2.00 0.00 2,036.80
Max Consecutive Losses 108 108 0 1
Maximum Drawdown ($3,671,744.41) ($3,671,744.41) $0.00 ($25,218,049.42)
Maximum Drawdown Date 11/20/2008 11/20/2008 12/2/1991 10/7/2002
Maximum Drawdown % -11.54% -11.54% 0.00% -65.56%
Maximum Drawdown % Date 11/20/2008 11/20/2008 9/14/2009 10/7/2002
Wealth-Lab Score 280.74 280.74 0.00 7.39
Sharpe Ratio 1.40 1.40 0.00 0.84
Profit Factor 2.07 2.07 0.00 659.20
Recovery Factor 8.82 8.82 0.00 1.35
Payoff Ratio 1.25 1.25 0.00 31.13
And, here's the program in .NET code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;namespace WealthLab.Strategies
{
public class SuperBands : WealthScript
{
protected override void Execute()
{
// Define data series
BBandLower bbL = BBandLower.Series( Low, 10, 1.5 );
BBandUpper bbU = BBandUpper.Series( Close, 10, 1.5 );
DataSeries UpperBand = BBandUpper.Series( High, 10, 1.5 ) * 1.3; // misc
WealthLab.LineStyle solid = WealthLab.LineStyle.Solid;
double f = 0.945; // Plot Indicators
PlotSeries( PricePane, bbL, Color.Black, solid, 1 );
PlotSeries( PricePane, bbU, Color.Black, solid, 1 );
PlotSeries( PricePane, UpperBand, Color.Chocolate, solid, 1 ); for(int n = 10; n > 0; n--)
{
DataSeries LowerBand = BBandLower.Series( Close, 10, 1.5 ) * f;
PlotSeries( PricePane, LowerBand, Color.Chocolate, solid, 1 );
f -= 0.0025;
}
for(int bar = 20; bar < Bars.Count-1; bar++)
{
double l = LineExtendX( bar-10, LinearReg.Series( Close, 10 )[bar-10],
bar-1, LinearReg.Series( Close, 10 )[bar-1], Close[bar] );
if (IsLastPositionActive)
{
Position p = LastPosition;
if (bar + 1 - p.EntryBar >= 1 )
SellAtMarket( bar+1, Position.AllPositions, "Time-based");
}
else
{
if( Close[bar] > 5.0 ) // filter out low-priced stocks
{
f = 0.945;
for(int n = 10; n > 0; n--)
{
if( l > ( BBandLower.Series( Low, 10, 1.5 )[bar] * f ) )
{
if( Open[bar+1] > ( bbL[bar] * f ) )
{
//if( BuyAtLimit( bar+1, bbL[bar] * f ) != null )
if( BuyAtLimit( bar+1,
( BBandLower.Series( Low, 10, 1.5 )[bar] * f ) ) != null )
LastPosition.Priority = n;
f -= 0.0025;
}
}
}
}
}
}
}
}
}
The problem I see with your current version is a sparse amount of data. Not to mention we're only talking about a 10% annualized system, when I can assure you there's far greater systems out there, and you should know by now. At least you have a system to show, but you still have a lot to learn about Wealth Lab.
This is on the NAZ100 with a $1,000,000 starting capital and 1% of equity position sizing with 2:1 leverage.