Rank: Newbie
Groups: Registered, Registered Users Joined: 11/18/2012(UTC) Posts: 5
|
I'm trying to learn the metastock formula language for use in the the enhanced system tester. I wrote a buy signal when certain conditions were met. That worked. My sell signal was simply ref(c,+1). That worked. However when I rewrote the sell signal ref(c,+5) it still sold on the next day instead of the 5th day. What is wrong. In fact if I rewrite the sell signal for any other day but the next day it still sold on the next day. I need some help
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi Ralph
Use negative values for the Ref() function to create a delay. Positive values reference future prices or values.
Roy
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
A simple way to exit an EST trade after a period of time is to employ the inactivity stop; no code or tricks required.
wabbit [:D]
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 11/18/2012(UTC) Posts: 5
|
thanks. your advice pointed me in the right direction. I really appreciated your help
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 11/18/2012(UTC) Posts: 5
|
maybe i misunderstood your solution but i couldn't get your advice to work. Anyway wabbit pointed me to a solution that works. Thanks for trying to help
|
|
|
|
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.