New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.
Doji crosses

in Scanning
What’s wrong with this? errors
and [[Dragonfly Doji X sma(20 , close)] or [(close/open-1 >=.005) X sma(20,close)]]
and [[Dragonfly Doji X sma(20 , close)] or [(close/open-1 >=.005) X sma(20,close)]]
0
Comments
-
and [[Dragonfly Doji X sma(20 , close)] or [(close/open-1 >=.005) X sma(20,close)]]
try this for the first part:
and [
[
[Dragonfly Doji is TRUE]
and [close x sma(20,close)]
]
Dragonfly Doji is true/false, while sma is numerical; you can't (edited from "can") compare true/false to a number.
for the second part
or [(close/open-1 >=.005) X sma(20,close)]]
the left hand side is not valid because it's a complete expression, not a recognized variable;
instead, maybe
or
[
[close/open-1 >=.005]
and [close x sma(20,close)]
] ]
Also, you might need to clarify the close/open operation; and use brackets, not parens, which are reserved for built-in functions, like sma( ).
is it
[[close/open] - 1] >= .005]
(i.e. divide the close by the open, then subtract 1 from the result)
or is it
[close/[open - 1] >= .005] ?
(i.e. subtract 1 from the open and divide the result into the close)
I know there is an order of precedence for operations, but I can never remember what it is, so the brackets help make it clear what you are asking for.0 -
Thanks MARKD...Ill will try your recomendation0
Categories
- All Categories
- 2.3K StockCharts
- 395 SharpCharts
- 146 Other Charting Tools
- 69 Saved Charts and ChartLists
- 1.5K Scanning
- 73 Data Issues
- 177 Other StockCharts Questions
- 218 Technical Analysis
- 155 Using Technical Analysis
- 2 InterMarket and International
- 19 Market and Breadth Indicators
- 42 Market Analysis
- 109 Trading
- 109 Trading Strategies
- 163 S.C.A.N the StockCharts Answer Network forum
- 65 Using this StockCharts Answer Network forum
- 98 s.c.a.n. archives
- 5 Off-Topic
- 6 The Cogitation & Rumination Emporium
- Forum Test Area