Hey
@samer800 excellent job!! I found this script on TV and it seems fairly easy to covert, but I am breaking my head over this. If you could help with this, I would really appreciate it!!! Thank you in advanc!
This is the script:
//Trend Analyzer can be used in gauge the market underlying current.
// Use 3x to 4x higher time frame and trade in direction of the trend.
// e.g. If you are trading on 3 min chart and you can set indicator time frame to 15 min, if you see the indicator is buy, you should look for buy opportunity instead of sell and vice versa.
//@version=3
study("Subhag Ghosh Trend Signal", overlay=false)
ha_t = ticker
col_red = #ff0000
col_green = #00ff00
fast_length = input(title="Fast Length", defval=3)
slow_length = input(title="Slow Length", defval=10)
src = input(title="Source", defval=close)
res_60 = input('15', title="Higher Time Frame 1 ")
trend_60 = security(ha_t, res_60, ((ema(src, fast_length) - ema(src, slow_length))/src)*100)
prev_trend_60 = security(ha_t, res_60, ((ema(src[5], fast_length) - ema(src[5], slow_length))/src[5])*100)
trend_status_60 = trend_60 > prev_trend_60
plot(1, title="Trend Visualizer", color=(trend_status_60 ? col_green : col_red), linewidth=24, transp=0)