Trading Strategies from Active Trader Magazine

Experimenting with Exits

Because this system uses an entry signal that can be true for several bars in a row, MetaStock version prior to 8.0 can not accurately count how long the trade has been active. Therefore, the formulas for this system are only valid in the MetaStock 8.0 and later. To create the system test, open the tester under the Tools menu. Select new test and enter the following formulas in for the specific orders.

Buy Order:
h>ref(hhv(h,55),-1)

Sell Order:
x:= Simulation.CurrentPositionAge;
l<ref(llv(l,55),-1)*((0.1*ATR(20))*x)