StockFetcher Forums · Filter Exchange · Swing trading with shaved butts (Heikin Ashi)<< >>Post Follow-up
xarlor
581 posts
msg #153623
Ignore xarlor
8/17/2020 10:00:44 PM

Here's a filter I threw together today. I noticed SF doesn't have Heikin Ashi displays so I made the next best thing.

This filter shows you the start of each shaved bottom and shaved head, which is a signal to enter. If the trend is up, buy on a shaved bottom and exit on the next shaved head. If the trend is down, short the next shaved head and cover on the next shaved bottom.

Heikin Ashi is a bit of a pain to code in SF as you have to decide the first candle to start at and calculate each day afterward. I went back 5 candles and liked the results when comparing to its true Heikin Ashi chart. The filter catches every first shaved candle in both directions that I've checked.

Enjoy!

Fetcher[
/*
Based on Heikin Ashi candles:
Trending up: Long on shaved bottom, sell on next shaved head.
Trending down: Short on shaved head, cover on next shaved bottom.
*/

symlist(SPY,TLT,QQQ,GLD,AMZN,FB,AAPL,NFLX,GOOG)

set{closeHA5a,open 5 days ago + close 5 days ago}
set{closeHA5b,high 5 days ago + low 5 days ago}
set{closeHA5c, closeHA5a + closeHA5b}
set{closeHA5,closeHA5c / 4}

set{closeHA4a,open 4 days ago + close 4 days ago}
set{closeHA4b,high 4 days ago + low 4 days ago}
set{closeHA4c, closeHA4a + closeHA4b}
set{closeHA4,closeHA4c / 4}

set{closeHA3a,open 3 days ago + close 3 days ago}
set{closeHA3b,high 3 days ago + low 3 days ago}
set{closeHA3c, closeHA3a + closeHA3b}
set{closeHA3,closeHA3c / 4}

set{closeHA2a,open 2 days ago + close 2 days ago}
set{closeHA2b,high 2 days ago + low 2 days ago}
set{closeHA2c, closeHA2a + closeHA2b}
set{closeHA2,closeHA2c / 4}

set{closeHA1a,open 1 day ago + close 1 day ago}
set{closeHA1b,high 1 day ago + low 1 day ago}
set{closeHA1c, closeHA1a + closeHA1b}
set{closeHA1,closeHA1c / 4}

set{closeHAa,open + close}
set{closeHAb,high + low}
set{closeHAc, closeHAa + closeHAb}
set{closeHA,closeHAc / 4}

set{openHA5a,open 5 days ago + close 5 days ago}
set{openHA5, openHA5a / 2}

set{openHA4a,openHA5 + closeHA5}
set{openHA4,openHA4a / 2}

set{openHA3a,openHA4 + closeHA4}
set{openHA3,openHA3a / 2}

set{openHA2a,openHA3 + closeHA3}
set{openHA2,openHA2a / 2}

set{openHA1a,openHA2 + closeHA2}
set{openHA1,openHA1a / 2}

set{openHAa,openHA1 + closeHA1}
set{openHA,openHAa / 2}

set{highHA1,max(high,openHA)}
set{highHA,max(highHA1,closeHA)}

set{lowHA1,min(low,openHA)}
set{lowHA,min(lowHA1,closeHA)}

set{Shaved_bottom,count(openHA equals lowHA,1)}
set{Shaved_head,count(openHA equals highHA,1)}

Shaved_bottom > -1
Shaved_head > -1
]



sandjco
648 posts
msg #153626
Ignore sandjco
8/18/2020 5:11:54 PM

Thanks for sharing Xarlor!

StockFetcher Forums · Filter Exchange · Swing trading with shaved butts (Heikin Ashi)<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.