VST (custom ver.) changing to the "VST" ATR band strategy



Place the VST template on any chart, open the "VST Special Properties" window by clicking the ATR bands, change the inputs - close - REFRESH chart to see the results in a visual display.

Always REFRESH the chart after making any changes.

VST Custom "Milk Money Trade" strategy charts S&P500


Placing the "Milk Money Trade" code into MetaStock.

The blue text on the chart explains how to place the code into the Indicator Editor.

If for some reason a problem occurs with the VST Custom Indicator or Template just re-install.

VST (custom ver.) "Milk Money Trade" strategy test

This post contains the MetaStock code for the "Milk Money Trade" strategy.

The "VSTPro" test results are towards the end of the post.

The next post will display charts with added text on using the VST (custom ver.) template to chart the Milk Money Trade stratey.


{Milk Money Trade strategy.

http://www.thinkmoney-digital.com/thinkmoney/2010springred#pg30

Coded by Jose Silva at
http://www.metastocktools.com }

{User Inputs}
pds1:=Input("EMA periods",1,260,20);
shift:=Input("EMA Envelope shift %",0,20,4);
pds2:=Input("Awesome Oscillator pds1",1,260,5);
pds3:=Input("Awesome Oscillator pds2",2,260,21);
plot:=Input("[1]Long [2]Short [3]MAE [4]Awesome Osc",1,4,1);

{EMA}
EMA:=Mov(C,pds1,E);

{MAE bands}
upper:=EMA*(1+shift/100);
lower:=EMA*(1-shift/100);

{Awesome Oscillator}
AO:=Mov(MP(),pds2,S)-Mov(MP(),pds3,S);
up:=AO>Ref(AO,-1);
dw:=AO0 OR init,entry);

{Signals Long}
entry:=up*setup;
init:=Cum(IsDefined(entry+exit))=1;
bin:=ValueWhen(1,entry-exit<>0 OR init,entry);
entry:=bin
*(Alert(bin=0,2) OR entry*Cum(entry)=1);
exit:=(bin=0)*(Cum(bin)>0)*Alert(bin,2);
long:=entry-exit;

{Setup Short}
entry:=Cross(H,upper);
exit:=Cross(EMA,L);
init:=Cum(IsDefined(entry+exit))=1;
setup:=ValueWhen(1,entry-exit<>0 OR init,entry);

{Signals Short}
entry:=dw*setup;
init:=Cum(IsDefined(entry+exit))=1;
bin:=ValueWhen(1,entry-exit<>0 OR init,entry);
entry:=bin
*(Alert(bin=0,2) OR entry*Cum(entry)=1);
exit:=(bin=0)*(Cum(bin)>0)*Alert(bin,2);
short:=entry-exit;

{Display}
If(plot=3,upper,0);
If(plot=3,EMA,If(plot=4,AO*up,0));
If(plot=1,long,If(plot=2,short,
If(plot=3,lower,AO*dw)))

---8<----------------------------------------


Backtest results using the VSTpro:

----------------------------------------------------------

Milk Money Trade Long - S&P500 stocks, 12 years' EOD data

P/Rratio 0.5
Tprofit% 23.55
MaxRisk% 53.75
Win% 62.5
Leverage 0.6
PosSize% 55.85
W/Lratio 0.8
Avg Prds 10.3
T trade% 18.45
Tprofit% 7.3
T loss% 11.25


Milk Money Trade Short - S&P500 stocks, 12 years' EOD data

P/Rratio 0
Tprofit% -15.85
MaxRisk% 62.4
Win% 58.3
Leverage 0.5
PosSize% 48.1
W/Lratio 0.6
Avg Prds 10.7
T trade% 23
Tprofit% 7.7
T loss% 15.1

----------------------------------------------------------

Visual Strategy Trader (VST) - v1.0 (custom version)

Visual Strategy Trader (VST) - v1.0 (custom version)
===========================

This add-on requires the VST platform to be already installed on MetaStock v8.0 or above. VST is free and is only available from:Download here


Please note that past performance is no guarantee of future results. Trade at your own risk!


Setup
-----

Before installing this custom version of the VST, please make sure that MetaStock is closed.

Download Visual Strategy Trader (VST) - v1.0 (custom version) here

This will install the following into MetaStock v8.0 or higher versions:


2 Indicators:
"VST Custom Strategy" - place your custom strategy code within this indicator
"VST Special" - Bands and signals based on 30 strategy combinations

1 Template:
"VST Custom Strategy.mwt" - VST custom chart Template.


Usage
-----
After installing the above, open any chart and apply the "VST Custom Strategy.mwt" chart template.
Place your custom strategy code within the "VST Custom Strategy" indicator for an instant Profit/Risk backtest on that chart.

Please make sure that the Expert Commentary window is open and docked: MetaStock -> View -> Expert Commentary.
Click on the chart bands to access the original VST indicator user input global parameters, and refresh chart after any changes.
Click on the VST Profit long to access the profit/risk global parameters, and refresh chart after any changes.

The Expert Commentary window displays current settings.
Always refresh chart after any changes in any parameters. This will also immediately change Expert signals and commentary, as well as the profit and risk indicator outputs.

My first test with the VST

I downloaded the free VST in early June, and after about 6 weeks of viewing charts using the ATR band entry/exit template, I decided to subscribe to LearnMetaStock web site. I down loaded the VST-LMS version which would allow the entry of my own entry/exit formula.

Being able to use your own criteria for entry/exit signals opened up the VST, and I am now able to test a vast range of indicators and instantly view the results.

Some of the test results were surprisingly bad.

After double checking the VST results manually with a pen, paper and calculator the VST was spot-on. I then looked at the chart’s buy/exit signals a little closer, and found some charts had one to several, large losing trades. (Would the trader have taken these losing trades? Looking at some of the charts and the price action at the time the trade was taken, I think not.)

Some systems require discretion by the user, and are not 100% mechanical. I viewed a video presentation at the LearnMetaStock web site on how to trade with the RMO, and it explains how to use your own discretion when taking the buy/sell signals-very helpful.

I will post charts to this blog as I test different strategies.

The starting point.

PremiumData
I am using PremiumData to supply data in MetaStock format.

Official MetaStock forum
Assists with problems and formula. Please use the forum search facility first, as you may find your question has been asked previously.

MetaStock
Equis web site, the main hub for MetaStock information.

MetaStockTools.com
Web site of Jose Silva, creator of the “Visual Strategy Trader”. The site content includes MetaStock formula, charts, useful links and comprehensive information about the VST.

LearnMetaStock
Excellent MetaStock training with extra VST download and additional video instructions, subscription required.

ASX ETFS GOLD - 7 year/12 month charts


Left click chart to expand.

This VST template is using the default ATR Band parameters. (6/1)

The leverage in the "VST Profit Long" indicator has been changed from (1) to (3)

Leverage increases profits and also RISK
 
Design Credit Best Blogger Tips | Best Blogger Templates | Best Social Icons