Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Buy Trigger Trading System for Metastock
over 10 years ago

5 / 5 (Votes 1)
metastock, expert

In this formula, BuyPrice is the close on the date BuyTrigger exceeds your threshold. If you are in a trade and have just received a sell signal, BuyPrice is redefined as a negative, and System Tester is told to close your long position. If you are not currently in a trade, BuyPrice is assigned a zero value and System Tester is told to watch for a new long entry.

Author: Glenn Wallace


Indicator / Formula

Copy & Paste Friendly
{Enter Long:}

{System Tester options are set to enter on the Close}
BuyTrigger:=(MOV(C,10,E) - MOV(C,30,E)) / MOV(C,30,E);
BuyTrigger > 0.05

{Close Long:}

BuyTrigger:=(MOV(C,10,E) - MOV(C,30,E)) / MOV(C,30,E);
BuyPrice:= If(PREV <= 0,
{Then did you go long today?}
If(BuyTrigger > 0.05, CLOSE, 0),
{Else did you exit today?}
If(Close >= PREV*(1+BuyTrigger), -PREV,
BuyPrice < 0


Leave Comment

Please login here to leave a comment.