logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
ralphharper1  
#1 Posted : Saturday, November 24, 2012 2:08:42 PM(UTC)
ralphharper1

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
mstt  
#2 Posted : Saturday, November 24, 2012 2:23:08 PM(UTC)
mstt

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
wabbit  
#3 Posted : Sunday, November 25, 2012 2:51:20 AM(UTC)
wabbit

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]
ralphharper1  
#4 Posted : Sunday, November 25, 2012 11:30:13 PM(UTC)
ralphharper1

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
ralphharper1  
#5 Posted : Sunday, November 25, 2012 11:41:45 PM(UTC)
ralphharper1

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.