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.

 
Sergey

Member

Posts: 6

Joined: 2/11/2016

User Profile
 
Subject : RE: Nbar stop with condition
Posted : 2/11/2016 8:24 PM
Post #25009 - In reply to #25008

Thank you Jim. It works but not as I want. This stop continues to follow the position after 2nd bar so it can close position on 3rd, 4th or any other following bars. My idea is to wait 2 bars after position opening and if it non profitable at this time then close it. But if it profitable at 3rd bar then leave it to go no matter where the market will go after. Anyway your stop almost correct in my situation, I just change "if Bcnt >= Delay" to "if Bcnt = Delay" and now it work exactly the way I want.
Thank you very much one more time for help.
Deleting message 25009 : RE: Nbar stop with condition


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