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.


  Current location        Thread information  
OmniTrader Professional Forum
Feature Requests
Declare new Olang variables
Last Activity 8/10/2018 4:58 PM
1 replies, 616 viewings

Jump to page : 1
Now viewing page 1 [25 messages per page]
 
back reply
Printer friendly version

^ Top
John J

Regular
252525
Posts: 85

Joined: 12/20/2011
Location: Leduc

User Profile
 
Subject : Declare new Olang variables
Posted : 11/25/2015 5:43 PM
Post #24822

I realise that a lot of suggestions for revamping Olang have been put forward throughout the years, especially by Jim Dean. Granted, it’s a major undertaking and some of the suggestions may break backward compatibility with older code. Hence, it's understandable that Nirv might be reluctant to do anything about it due to all the other important ongoing projects.

What I’m suggesting in this tread though, has nothing to do with the code itself, but merely a request to expose more read-only variables derived from the symbol database. Also, some variables found under the Focus List Wrench -> Intraday Tab for instance, are not even declared in Olang. Here are some variables I would like to see added;

- Previous Day High/Low/Close – Important for calculations derived from the daily bar when working in an intraday time frame (i.e 5, 15, 60 min etc.)
- Average Daily Trading Range (ADTR) – Display daily ATR when working in an intraday time frame (i.e 5, 15, 60 min etc.)
- Option Strike Price Interval – Important for calculating the probability of a price crossing the next strike price (i.e a $1 strike price interval on a $50 stock requires a 2% move to cross the strike price, whereas a $0.5 strike price interval on a $50 stock requires a 1% move to cross the strike price)
- Number of Bars since trade was entered – Self-explanatory (if no active trade, return -1).
- Entry Price – Self-explanatory (if no active trade, return -1).

Feel free to add your own suggestions to this thread…

^ Top
Jim Dean

Sage
2000100010025
Posts: 3142

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Declare new Olang variables
Posted : 11/25/2015 5:57 PM
Post #24823 - In reply to #24822

All but the Option Strike Price interval can be derived in a fairly simple manner within existing OLang capabilities. EntryPrice is already a reserved word that you can use in Stop code.

Imho the thing we need "exposed" the most, is the current Account Equity - and derivative info re what pct of equity is tied up in long vs short positions, and a couple of other related things.

Jump to page : 1
Now viewing page 1 [25 messages per page]
back reply

Legend    Action      Notification  
Administrator
Forum Moderator
Registered User
Unregistered User
E-Mail this thread to a friend
Toggle e-mail notification


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