OmniTrader Forum OmniTrader 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
20001000
Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Omniscript Stop with $SPX
Posted : 9/15/2020 8:47 AM
Post #47507 - In reply to #47505

If you are trying to exit a trade on some other symbol than $SPX, then in OLang, you assign a variable to GetClose(“$SPX”), and use that variable in your calcs for the stop conditions, in place of Close. (Similar GetHigh, GetLow, GetOpen, GetVolume).

Most native OT functions allow “overloading” the param list so you can spec the use of any variable rather than the default C. To see this, in the OLang editor, type the name of the function and open paren … a help popup will appear, usually with more than one option, showing the param’s the function uses.

If you don’t have OT Pro, then you can do this in OScript as well without assigning a variable - just write out the GetClose(…) expression longhand.

[Edited by Jim Dean on 9/15/2020 8:49 AM]

Deleting message 47507 : RE: Omniscript Stop with $SPX


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