Joined: Apr 25, 2006
Posted: Mar 29, 2007 08:30 AM
Msg. 2 of 4
The easiest way to do this is to create your study on the chart, right click on the chart line, left click on your studies properties, and change the element to high, intead of close and then click ok.
Let me know if you need help with this.
Edited by DTN_Tim Walter on Mar 29, 2007 at 09:16 AM
-VP, Product Operations-
Joined: May 3, 2004
DTN IQFeed/DTN.IQ/DTN NxCore
Posted: Mar 29, 2007 08:33 AM
Msg. 3 of 4
You can use the standard moving average and change the Element to have it calculate on the High instead of the close.
Or, as a formula, it would be MOV(SERIES,PERIOD,VertShift,HorShift,Method,Element)
Series = Symbol (leave the word SERIES in the parameter so it uses the base symbol of the chart)
Period = Lookback period
VertShift = Vertical offset
HorShift = Horizontal Offset
Method = (Standard, Exponential, Weighted, Running) => (0,1, 2, 3).
Element = Field to use (Close, High, Low, Open) => (0,1,2,3).
Thus, a formula such as MOV(SERIES,20,0,0,0,1) would allow you to create a simple MA of the high for 20 bars.
If you build a User Custom Study with this formula, you can then create Parameters and name them yourself. For example, I would put "PERIODS" instead of 20 in the formula. Then, in the dialog for the User Custom Study, I would create a Parameter called PERIODS and use a value of 20 (which will become the default). You can then change this Parameter whenever you apply it to a chart.
DTN - Trading Markets