|
Gerry
 Veteran
     Posts: 277
Joined: 12/24/2003
Location: Lewiston, Maine 04240
User Profile |
Hi all,
I'm trying to create a scan that will show me that at the close of the current bar, it's close is higher than the close of 2 bars ago !
This is what I'm trying and it's not working, where am I going wrong ?
c > (c,2)[1]
This is not my best area of knowledge
Thanking you in advance,
Gerry
|
|
Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
C > C[2]
|
|
Gerry
 Veteran
     Posts: 277
Joined: 12/24/2003
Location: Lewiston, Maine 04240
User Profile |
Hi Jim,
Thanks a BUNCH !
Gerry
|
|
Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
There are several places "buried" in Help that will get you up to speed with OmniScript. Everyplace it is used (Filter Block, EasyScans, OmniScans, TradePlans) it works the same way.
Look up these:
Help > Contents > Trading Strategies in OmniTrader > Creating & Editing Strategies > Filter Block >
then within that:
Formula Builder
Syntax for Formula Builder
IntelliSense for Formula Builder
Then look up:
Help > Contents > Technical Formula Reference >
and within that:
Operators
Math Functions
Pricing Data
Indicators
Parameters
Then presuming you do have OmniScan, go to Help > OmniScan Help >
and within that:
Creating Scans
Creating Technical Scans
and ... essentially the same as in comparable section in the OT Help
Syntax for Forumula Builder
OmniScan Intellisense
Technical Scan Reference
BUT MOST ESPECIALLY REVIEW AND PLAY WITH: Example Technical Scans
There is one really important thing that is not mentioned anywhere in the Help, but is obvious (IMO) in the examples:
To access the value of "anything" as of:
Yesterday: anything[1]
Two days ago: anything[2]
153 days ago: anything[153]
In this case, "anything" can be a raw data value such as OHLCV, or a function such as SMA(15):
C[3]
SMA(15)[12]
Note that there is a huge diff between paren's and square brackets. When used with a function/indicator such as SMA(), the paren's enclose parameters. Intellisense tells you about the parameters, btw. When used in a formula, (O+C+H+L)/4, the paren's force the stuff within them to be done before the stuff outside. Compare that formula to O+C+H+L/4 ... the second case only divides L by 4 ... the first one divides the sum of O,H,C,L by 4.
Square brackets are ONLY used for "barsago" purposes ...
anything[barsago]
There's a lot more about OmniScript and OmniLanguage that is not in the Help anywhere ... the Help just isn't trying to be a book on programming.
Finally ...
Once you get the OmniScript info down pretty good, then you'll be ready for the real McCoy - OmniLanguage. Presuming you've done the SMART thing and bought OmniTrader Pro, that is. ;~)
To learn about OmniLanguage, refer to:
Help > Manuals > OmniTrader Professional User Guide
The secret to "getting" this manual is to go thru the examples one step at a time, and PLAY WITH little pieces of each "lesson" till you get it. Don't try to read it in one sitting and expect to be good to go.
Plus, I've posted MANY examples in the Pro and TradeTight forums to learn from.
I provide most of my in depth OmniLanguage and OmniScript assistance in the TradeTight.org forum. Or, if you're interested in one-on-one training, contact me offline about it (hvacsage@yahoo.com).
[Edited by Jim Dean on 9/23/2012 6:23 AM]
|
|
RuffTrader
 New User
Posts: 2
Joined: 9/22/2012
Location: newark, NJ
User Profile |
Good stuff Jimmy Dean thanks for sharin bud!
|