|
Description |
This formula decrements a bar reference. The Chart() function orients the current bar to -1. Many formulas are written to refer to the current bar as 0. To use such formulas in Aspen, use this function to decrement the value appropriately. |
|
|
Formula |
GetBar(targetBar)=targetBar-1 |
|
|
Parameters |
targetBar This parameter specifies the index to the bar you want to retrieve. 0 is the current bar, 1 is the first bar back, etc. |
|
|
Return Value |
A decremented index to a bar. |
|
|
Examples |
LongWhiteForm(instrument, targetBar)={ return = FALSE if BodyPercent(instrument, targetBar) > CLONG then { if RealBody(instrument, targetBar) > CLONGREAL then { if vchart(instrument.last[GetBar(targetBar)]) > vchart(instrument.open[GetBar(targetBar)]) then return = TRUE } } return } |
|
|
Comments |
NA |
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.