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: omni language parameters and data types
Posted : 1/24/2019 8:30 PM
Post #30271 - In reply to #30269

1. Params default to integer if their default and range specs are integers. If any of those four are floating, Params become single. (You can Dim integer, single, double, string, Boolean, and limited object. The integers are long integers btw (14 sig fig)
2. Does omnilanguage support select/case? Yes - and most of the nuanced dotNet case specs.
3. Does omnilanguage support enumerated types? No - but you can define a constant in a dim using = “string” or = value, etc.

OL’s greatest limitation from a programming standpoint is the inability to declare arrays. Actually, in the underlying dotNET code, all declared variables are arrays which have a one dimensional size equal to the number of bars loaded. But OL is designed to prevent users from accidentally or on purpose referencing the “future” subscripts (ie later bars) of any of those implicit arrays.

[Edited by Jim Dean on 1/24/2019 11:07 PM]

Deleting message 30271 : RE: omni language parameters and data types


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