Rank: Member
Groups: Registered, Registered Users Joined: 11/10/2008(UTC) Posts: 22
|
I am trying to write a simple trading system for the Enhanced System Tester that will Buy at the Open (under special conditions) and Sell at the *same day* Close (unless a stop has been reached).
Is there a trick to doing this? I have successfully gotten the BUY triggers to work, and when I run the Enhanced System tester I see a list of BUY orders that match exactly what I want. But... how do I get it to SELL that same day? I tried a simple command like: Sell if Close > 0 (i.e. it will always sell at the Close if a stop has not been reached). Unfortunately, it is always selling it at the NEXT day's Close, not the current day...
How do I get it to sell on the *current* day at the Close and not hold it to the next day?
Thanks!
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 11/10/2008(UTC) Posts: 22
|
Actually I solved it using a combination of tricks from other posts. For anyone having the same problem, here it is:
Set your Buy trigger to look 1 day ahead at the Open conditions you are interested in, but then set Strategic Delay to +1 day. The Buy then happens at the Open of the day you want.
Example Buy formula: Ref([your entry condition],+1)
Then set your Sell trigger to be at the Close with zero Strategic Delay. Bingo, it sells out at the Close of the same day!
|
|
|
|
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.