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

Notification

Icon
Error

Options
Go to last post Go to first unread
endrju  
#1 Posted : Friday, May 5, 2006 12:55:44 AM(UTC)
endrju

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 3/1/2006(UTC)
Posts: 8

I had would wanted to system closed position if price with any day is about 3 % lower np from the highest price before three,four and five days. I tried to apply function REF in such way : REF(C,-X) > C * 1.03. System does not see this formula unfortunately.The REF any position did not was closed in result of use. What will you advise ??
StorkBite  
#2 Posted : Friday, May 5, 2006 1:15:06 AM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
What about something like this? signal:=C<HHV(C,5)*0.97; signal
endrju  
#3 Posted : Tuesday, May 9, 2006 12:06:03 AM(UTC)
endrju

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 3/1/2006(UTC)
Posts: 8

Thanks g_stockman !! This easy formula is really useful, but I have one problem. I operate on data 60 - one-minute, therefore 1 day = 8 candles. So happens also that price will fall about 3 % in cycle of first 8 candles, however I want to system ignored with first day situation. Function HHV(C,X) does not let this. Is some solution ??
StorkBite  
#4 Posted : Tuesday, May 9, 2006 12:17:59 AM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
I'm not sure I understand... The HHV() function includes the current day. If you want to ignore the current day, you could use ref(). Maybe something like this: x:=HHV(C,5)*0.97; signal:=C<ref(x,-1); signal You might have to play with it. Let me know how it turns out. :=)
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.