Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
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]
|