OmniTrader Professional Forum OmniTrader Professional 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
2000100010010010010025
Posts: 3433

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Help on Trade Plan
Posted : 2/26/2010 12:21 PM
Post #15555 - In reply to #15539

Duxx ... I've discovered a piece of info (thanks Matt!) that clarifies the strange operation.

If you set up a "level" related to a L, SM, or SL order by using the dropdowns and the input fields on the right side of the pane, then that level does NOT update with each new bar.

That is, the level for the Limit Order is established on the FIRST bar ... based (in your case) on the H of the prior (Signal) bar ... and that level remains as-is for as long as that condition-row remains in force.

Furthermore, as I mentioned earlier, the Periods in Force is questionable at this time ... Matt is not sure that it is working properly.

So ... there are two viable solutions:

1. Just write the code in a OLang #Stop routine, and use a VIRTUAL level with your L or SM input, and that level has the ability to be set at whatever you want, based on bars that come before the bar the level is applied to. A lot more explan is coming with the big writeup.

2. You can also do it without using a #Stop routine. What you need is to set up a second Condition row in the first step, based on an Nbar Stop set to 1, then create another Step just like the first Step, and so forth, for five successive bars. See the attachment for the full picture.



[Edited by Jim Dean on 2/26/2010 12:24 PM]

Attached file : Duxx Entry.png (83KB - 1684 downloads)

Deleting message 15555 : RE: Help on Trade Plan


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