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.


This message cannot be deleted. It is the first message of the thread.
Administrators or moderators may choose to delete the entire thread


 
John J

Regular
252525
Posts: 90

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…

Deleting message 24822 : Declare new Olang variables


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