logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
patchau  
#1 Posted : Friday, July 23, 2010 7:27:58 PM(UTC)
patchau

Rank: Member

Groups: Registered, Registered Users
Joined: 1/25/2010(UTC)
Posts: 13

Was thanked: 1 time(s) in 1 post(s)
I contacted Jose Silva regarding a blog that would make it easy for me to post VST charts and comments, and also requested a free VST version that would allow the input of the users own entry/exit formula.

Jose agreed to the blog and has now made available the Visual Strategy Trader (VST) - v1.0 (custom version).

The link to this new VST version with basic instructions is available to download at my blog site.

http://vstcharts.blogspot.com/

If forum members wish to ask questions I am happy to try my best to answer. I am about to take a long weekend break and will not be back to the computer till next Wednesday.

David
thanks 1 user thanked patchau for this useful post.
dimpledbrain on 4/3/2015(UTC)
Laisze  
#2 Posted : Saturday, July 24, 2010 7:14:11 AM(UTC)
Laisze

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 11/18/2007(UTC)
Posts: 96
Location: HK

Thank you, David. May I make a request for testing John Carter's Milk Money Trade?
patchau  
#3 Posted : Wednesday, July 28, 2010 4:57:51 PM(UTC)
patchau

Rank: Member

Groups: Registered, Registered Users
Joined: 1/25/2010(UTC)
Posts: 13

Was thanked: 1 time(s) in 1 post(s)
Lai, apologies for the delayed reply.

Place the MetaStock code into the "VST Custom Strategy" indicator and then apply the "VST Custom Strategy" template to the chart.

I will post charts later today at VST Charts blog.

{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:=AO<Ref(AO,-1);

{Setup Long}
entry:=Cross(lower,L);
exit:=Cross(H,EMA);
init:=Cum(IsDefined(entry+exit))=1;
setup:=ValueWhen(1,entry-exit<>0 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

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


Mark17  
#4 Posted : Thursday, July 29, 2010 6:00:36 AM(UTC)
Mark17

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/25/2010(UTC)
Posts: 55

Did you include transaction fees? From your data I get a profit factor of 1.33 on the long trades and 0.84 on the short trades. Is this something you trade both long and short? While you didn't post how many long/short trades there were, I should hope not because there probably wouldn't be much profit left.
Laisze  
#5 Posted : Thursday, July 29, 2010 6:13:23 AM(UTC)
Laisze

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 11/18/2007(UTC)
Posts: 96
Location: HK

Thank you very much David! The transaction fees are set to 0.10% by default in the VST and I imagine it is the same with the VSTpro. As far as I know the most important factor to consider is the Profit to Risk ratio, and this is awful for the Milk Money Trades system. After trading this system I guess there won't be much loose change left to buy any milk! Lai
patchau  
#6 Posted : Thursday, July 29, 2010 8:01:18 PM(UTC)
patchau

Rank: Member

Groups: Registered, Registered Users
Joined: 1/25/2010(UTC)
Posts: 13

Was thanked: 1 time(s) in 1 post(s)
Hi Mark17,

Transaction costs are included by the default settings. The default is set to [ Total Transaction Costs (brokerage + slippage) % 0.10]. This can be adjusted.

The " Milk Money" system was posted at the request of Laize as a test for the VST.
I do not trade this system.

Place your own entry/exit formula into the VST and check the results.
If the test results are not so good go back over the trades and check to see if you would have taken the trade. Many systems require the user to use their own discretion as part of the rules when taking the entry/exit signals.

I posted some charts with info on using the VST Custom platform to VST Charts blog

david



Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.