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.

 
Diamondjag

Legend
100100100100
Posts: 404

Joined: 3/12/2006
Location: Brighton, Colorado

User Profile
 
Subject : RE: Help with Programming Stops
Posted : 6/13/2018 1:27 PM
Post #30071 - In reply to #30070

Jim, I really appreciate the response. I put in the code and get one error. Tried all kinds of things but can't straighten it out. Simple, I'm sure but my coding skill is pretty far down the scale.

myLevel = EntryPrice-1.67*ATR(5)
elseif Signal = ShortSignal then
myLevel = EntryPrice+1.67*ATR(5)

If Signal = LongSignal and C < myLevel then
Signal = ExitSignal
elseif Signal = ShortSignal and C > myLevel then
Signal = ExitSignal
end if

Line: 13; 'ElseIf' must be preceded by a matching 'If' or 'ElseIf'.
Deleting message 30071 : RE: Help with Programming Stops


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