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: Nbar stop with condition
Posted : 2/11/2016 2:56 PM
Post #25008 - In reply to #25007

#Stop
#param "Delay", 2, 1, 10
dim Bcnt as integer = 0

if Bcnt >= Delay then
if Signal = LongSignal then
if C < EntryPrice then Signal=ExitSignal
else
if C > EntryPrice then Signal=ExitSignal
end if
end if

Bcnt += 1

... not tested but it should work OK
Deleting message 25008 : RE: Nbar stop with condition


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