Rank: Newbie
Groups: Registered, Registered Users Joined: 6/22/2005(UTC) Posts: 8 Location: England
|
Afternoon All
Just wondered if someone could give me a helping hand - I want to test a timed entry and exit system but am unable to get the buy and sell orders to trigger correctly
Basically the system takes set an buy entry order 20 pips above the 12noon open and a sell entry order 20 pips below the 12noon open.
40pip stop and closes the posistion at 3pm
This is what i have so far
Buy Order
hour()=12 minute()=00
Limit or stop price = open +20
Sell order
hour()=15 minute()=00
opposite for the sell short order
But it does not work - i've tried almost every option and am backing my head against a wall - I know the formula must be very simple but am struggling to find it.
Any assistance would be greatly appreciated.
Regards
Doug
|
|
|
|
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)
|
Sorry here is a quick attempt ...
Buy Order
Cross(C,ValueWhen(1,hour()=12 and minute()=00,C+20))
and (Hour()<15 or (Hour()=15 and minute()=00))
Sell order
hour()=15 and minute()=00
opposite for the sell short order
Let me know if this is closer to what you wanted.
Patrick :mrgreen:
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 6/22/2005(UTC) Posts: 8 Location: England
|
Patrick you are a star and your help is appreciated.
Now i have worked backwards through the formula i understand alot more about formula construction.
The mist is lifting and i thank you for that.
Keep up the great work
Regards
Doug
|
|
|
|
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.