some1o1

Heikin-Ashi Simple Strategy

370 2 20
*Not complete strategy*
Posted for sharing purposes
Remove from Favorite Scripts Add to Favorite Scripts
strategy("Heikin-Ashi Color change Strategy ",shorttitle="HAS color change ",overlay=true)
/////////////////////////////////////////////////////////////////////////////

res = input(title="Resolution", type=resolution, defval="60")
//Heikin ashi taken from trading view's funciton and resolusion added 
ha_t = heikinashi(tickerid)
ha_open = security(ha_t, res, open)
ha_close = security(ha_t, res, close)


golong = ha_close > ha_open 
goshort = ha_close < ha_open 

////////////////////////////////////////////////////////////////////////////

strategy.entry("Buy",strategy.long,when = golong and year > 2015)
strategy.entry("Sell",strategy.short,when = goshort and year > 2015)


ok..got it. it understood the strategy.
but as you have mentioned that it is not a complete strategy. Can you please share the complete one.
Reply
Hi, the performance reports are impressive in many stocks. Its a good work. Thank you for posting the strategy
Can u please elaborate the buy & sell conditions of the strategy given above in simple words. I am not good at coding, so not able to understand.
Moreover, as you have mentioned that it is not a complete strategy. Can you please share the complete one.
Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
Việt Nam
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out