OmniTrader Forum OmniTrader Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
Jim Dean

Sage
20001000
Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: OT Buy&Hold Strategy: backtestPortfolio Simula
Posted : 2/16/2014 3:12 AM
Post #30952 - In reply to #30951

If the logic is simply "buy the stock on a certain date and sell it at the HRE", the Entry can be done with the All Longs System, and a Filter Block rule that says:

BarYear() = 1234 and BarMonth() = 56 and BarDayOfMonth() >= 78
… fill in the date you want - avoid picking dates within 2-3 days of the end of the month due to weekend and holiday issues.

To Exit at HRE, set up a Trade Plan Market order exit using the "OmniScript" checkbox (very bottom of the list), then type the formula:
Bar = Numrec-1

You will of course have to make sure that adequate bars are loaded.


[Edited by Jim Dean on 2/16/2014 3:16 AM]

Deleting message 30952 : RE: OT Buy&Hold Strategy: backtestPortfolio Simula


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.