|
Vinay
Regular
Posts: 70
Joined: 1/18/2012
Location: Planet Earth
User Profile |
My strategy fires MOC Entries which I want to take at the close of the next trading day. So if I get a entry signal (MOC) today I want to take the trade just before the close of next day.
I know that it is possible to enter the trade the next day on MOO basis but instead of MOO I want MOC entries the following day. Basically I want to delay the entries by 1 day. Is it possible to achieve this in a strategy. If yes then how?
Thanks in advance.
|
|
Jim Dean
Sage
Posts: 3433
Joined: 3/13/2006
Location: L'ville, GA
User Profile |
Four possible methods, with most reliable/sure listed first:
Best is to modify the System so that the signal fires one day later - can do for OLang systems but can't do for canned systems. My normal approach to stuff like this.
Another possibility that you can try is set up the Trade Plan with a Condition attached to the MOC Entry order ... that is, when the Signal fires, the first Step is initiated ... if the Condition is Nbar=1, then in theory that should delay the execution of that step for one extra day. HOWEVER, I've found many problems in the past when trying to apply Conditions to Entry orders, so be sure to check this one out carefully. Hopefully it will work.
Another possibility is to attempt to write the Condition as a Stop in OLang ... again, my prior testing using OLang conditions for entries has had a poor success rate ... OT needs some tuning up in this area. Hopefully the canned N-bar approach above will work for you.
FINALLY ... maybe there is some way using the Confirm block with the very same System enabled, but fiddling with the Before or After inputs, to delay the trade that one day. But there is apparently sometimes a problem with the "After" inputs, so again, check carefullyl.
|
|
Vinay
Regular
Posts: 70
Joined: 1/18/2012
Location: Planet Earth
User Profile |
Thanks Jim for your detailed response. Appreciate it.
1. I am using Nirvana systems, so the modification is out of question.
2. As suggested by you I tried Nbar+1 entries in the Trade Plan, but unfortunately as you mentioned they work erratically. Sometimes they enter next day, sometimes after delay of 3-4 days.
3. I have not tried writing the Condition as a Stop in OLang, because that is beyond my competence.
4. Your suggestion regarding using Confirm Block with the very same System enabled is interesting, but how you do that? If we use the same System then it will fire on the same bar and it will pass on the entry signal on the same bar. How we can cause it to delay the entry signal by one bar?
Thanks once again.
[Edited by Vinay on 9/26/2014 12:37 PM]
|
|
Jim Dean
Sage
Posts: 3433
Joined: 3/13/2006
Location: L'ville, GA
User Profile |
Hi Vinay -
Re #4 - I really don't know. I thot if it as I was typing. It would take some experimentation time to see if it could be done. I put it last in the list on purpose.
Please submit the example you tried re Nbar condition for entry. I have been trying to convince N that this kind of erratic behavior with conditional entries is important to fix. If you can post a full example that they can duplicate, with snaps, that would help I think.
If you need some OLang programming done for the OLang stop, you can email me. But since it also is an entry condition I can't guarantee it will work as it should.
|
|
Jim Dean
Sage
Posts: 3433
Joined: 3/13/2006
Location: L'ville, GA
User Profile |
I've provided a long discussion and some possible solutions, ... here ...
|