Rank: Advanced Member
Groups: Registered, Registered Users Joined: 4/27/2005(UTC) Posts: 130
|
Patrick,
You made this formule from this month TASC-
**********************************************************
Steve Palmquist's article in this issue, "Shorting Moving Average Pullbacks", introduces a new trading system. The MetaStock code and instructions for entering this sytem are as follows:
1. Select Tools>The enhanced system tester.
2. Click on New.
3. Enter a Name for the system.
4. Select the "Sell short order" tab and type the following formula:
voltarget:=2000;
setup:=hhv(c,5)<ref(llv(C,20),-20) AND Ref(Sum(C<Mov(C,35,S),15)=15, -1) AND ((Mov(C,35,S)-C)<(0.01*C)) AND C>15 AND Mov(V,50,S)>Voltarget;
Ref(Setup,-1) AND Stoch(5,3) < 80 AND L<Ref(L,-1)
5. Select the "buy to cover order" tab and enter this formula:
simulation.currentpositionage >=3
6. Click on ok to close the system editor.
Note the first line of the "sell short order" formula:
the value of 2000 is correct for locally stored data, if you are using online data you will need to change this value to 200000 to get the correct results.
Thanks to William Golson of Equis International for this system.
********************************************************
My question is what and where did you get the "simulation.currentpositionage" from?
It looks pretty cool but I don't see any ref. to it in the user manual. Can you tell me a little more about this and if there is anymore call-out that can be used in the back tester like this one?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Well there are a lot of these functions ...
To see a list, click on tools, indicator builder, click on new, click on functions, on the left column select "simulation".
I don't know what many of them do but I'm sure they are pretty straight forward ...
Now here is my warning, disclaimer of the day for everyone.Please do not ask me why it does not do anything or it does not work in your exploration or expert or indicator ...
[color=red:3b05b579b6]
THESE FUNCTIONS ONLY WORK IN A SYSTEM TESTER[/color]
Patrick :mrgreen:
|
|
|
|
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.