molecules mal 5 posts msg #162024 - Ignore molecules mal modified |
11/14/2025 12:53:40 PM
I want to build a scanner that lets me find stocks green on the day with a massive wick upwards in proportion to the candle body, but I don't know how to reference HOD. Here's an example of what it might look like:
current price > open*1.05
HOD-current price > (current price - open)*3
open > (close 1 day ago)*1.05
Thanks
|
xarlor 623 posts msg #162025 - Ignore xarlor |
11/14/2025 1:39:35 PM
Always fun writing filters about candle lengths =)
|
molecules mal 5 posts msg #162026 - Ignore molecules mal modified |
11/14/2025 2:18:39 PM
Thank you so much!
I'd like to exclude the case where the candle is a doji, but when I add the line
close > open*1.05
or even
close > open*1.1
I still get a list of dojis for some reason. I don't know why. How can I exclude the doji candles to only have candles with meaningful bodies?
|
xarlor 623 posts msg #162027 - Ignore xarlor |
11/14/2025 3:01:36 PM
The first issue is StockFetcher cannot do more than one operation per line.
close > open*1.05
Is two operations.
1. close > open
2. open * 1.05
You have to split this into set statements as in this example.
set{openx,open * 1.05}
close > openx
As to your doji issue, just make sure the body is not a doji. One way would be like this:
The problem is with such a disproportionate wick, even candles that aren't dojis will look like dojis.
|