Jim Dean![]() Sage ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3433 Joined: 3/13/2006 Location: L'ville, GA ![]() | 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] ![]() |