|
Description |
This function identifies whether a candlestick is a literal Doji:
|
|
|
Formula |
StarForm(instrument, targetBar)=begin retval = FALSE cOpen = GetPrice(instrument, BATE_OPEN, targetBar, 0) cClose = GetPrice(instrument, BATE_CLOSE, targetBar, 0) if cOpen == cClose then retval = TRUE retval end |
|
|
Parameters |
instrument An instrument.
targetBar The index of the bar you want to evaluate. 0 is the current bar, 1 is the first bar back, etc. |
|
|
Return Value |
TRUE or FALSE |
|
|
Examples |
RickshawMan(INPUT, CentsDifference=.02)=begin retval = NONUM targetBar = 0 rbHigh = RealBodyHigh($1, targetBar) tQtr = BodyTopQuarter($1, targetBar) bQtr = BodyBottomQuarter($1, targetBar) if StarForm($1, CentsDifference) then begin if
tQtr > rbHigh AND bQtr < rbHigh then retval = end retval end |
|
|
Comments |
See also DojiForm() |
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.