Recently I noticed a bookmarked web page, http://stocata.org/metastock/stop_trail_perc.html and decided to test the formula with the VST Custom Strategy. The website has several other MetaStock formula that could be tested with the VST.
As with many indicators they work fine when the chart is trending nicely up or down but perform poorly on choppy or sideways movement.
I needed to use this indicator with the VST and it will not plot +1/-1 so I used the Cross function in MetaStock to create the +1/-1 plot.
Copy and paste the % Stop indicator below into MetaStock using the Indicator Builder.
8888888888888888888888888888888888888888888888888888888888888888
{% Auto stop-go}
perc:=Input("Trailing Loss % :",0,100,14);
loss:=C*perc/100;
trail:=
If(C>PREV AND Ref(C,-1)>PREV,
Max(PREV,C-loss),
If(C
Trail
8888888888888888888888888888888888888888888888888888888888888888
Name the Indicator “ % Auto stop-go “
Plot the “ % Auto stop-go “ indicator in the chart window.
Copy/paste the code below into the “ VST Custom Strategy “ indicator.
8888888888888888888888888888888888888888888888888888888888888
{VST Custom Strategy}
{VST Custom formula entry/exit instructions.
Trade at own risk!
Enter your own formula in the template below.
The formula must plot a +1/-1 on any chart.
Entry/exit formula must end with a semicolon [;] }
entry:= {<- Do not change entry parameter name} {-------Place your entry formula below this line------} Cross(CLOSE,Fml("% Auto stop-go")); exit:= {<- Do not change exit parameter name} {-------Place your exit formula below this line-------} Cross(Fml("% Auto stop-go"),CLOSE); {-------Do not edid below this line------} entry-exit {<- Do not change } 88888888888888888888888888888888888888888888888888888888888 Always REFRESH the chart after any changes. I have purchased the VSTPro so I can now post both the VST Custom and Pro charts.
No comments:
Post a Comment