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: SysTriggerLine - Reversing Signals(how to?) #S
Posted : 12/31/2014 6:49 PM
Post #23259 - In reply to #23258

If you try to do:
Signal = LongSignal
or
Signal = ShortSignal
... in a STOP, as a separate assignment line, it is IGNORED.

But you normally will use one or both of them in a SYSTEM.

The only signal assignment (ie setting) you can do in a STOP is:
Signal = ExitSignal

====

You can "test" the direction of the active trade in a STOP by:
if Signal = LongSignal then ...
or
if Signal = ShortSignal then ...

But you can't change the direction of the signal in a Stop routine ... you can only end the active trade.

===

If you saw Long/ShortSignal "assignments" in OLang STOP routines before, then probably those routines were faulty. You probably are remembering their use in SYSTEM routines.



[Edited by Jim Dean on 12/31/2014 6:51 PM]

Deleting message 23259 : RE: SysTriggerLine - Reversing Signals(how to?) #S


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