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

Notification

Icon
Error

Options
Go to last post Go to first unread
Dan A  
#1 Posted : Friday, May 13, 2011 4:59:29 AM(UTC)
Dan A

Rank: Member

Groups: Registered, Registered Users
Joined: 4/13/2011(UTC)
Posts: 15
Location: Manchester, UK

Hi all, I have a system I am testing, but I don't want it to make any trades around a particular period - as the security was rebased, so skewing results from around this period. Thus I am trying to ask it to close any bets open on a particular bet - so extending my sell and buy to cover short code by adding an OR statement on to the existing. I can't see a date() function. so have tried all sorts of combinations of dayofweek() month () and year() functions, along with AND and OR statements - to tell my system to close any open bets on a particular day, but I'm not getting any joy. The closest I've got is that it removes all bets from the day of the week, all bets from the month and all bets from the year I specify - ie if I want it close bets on 15/4/1998 it closes all bets on the 15th, all April bets, and all 1998 bets - it seems to be treating my code as an OR statement when it says AND. Anybody got any ideas?
MS Support  
#2 Posted : Thursday, May 26, 2011 12:07:47 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 91 times
Was thanked: 155 time(s) in 150 post(s)
Try adding this to the end of you exit formula:

OR
(DayofMonth() = 15 AND Month() = 4 AND year() = 1998)
Dan A  
#3 Posted : Wednesday, June 22, 2011 3:07:27 PM(UTC)
Dan A

Rank: Member

Groups: Registered, Registered Users
Joined: 4/13/2011(UTC)
Posts: 15
Location: Manchester, UK

Hi, Thanks for your tip - I'll give it a try!
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.