Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Can someone help to translate Pine Code to Easy Language ?
Updated June 17, 2021
Top Posters
looks_one
Kolnidrei
with 1 posts (0 thanks)
looks_two
Shaban
with 1 posts (0 thanks)
looks_3
Quick Summary
with 1 posts (0 thanks)
looks_4
ernestho
with 1 posts (0 thanks)
trending_up
2,742 views
thumb_up
0 thanks given
group
4 followers
forum
3 posts
attach_file
0 attachments
Can someone help to translate Pine Code to Easy Language ?
March 6th, 2019, 03:48 AM
Kowloon, Hong Kong
Posts: 1 since Mar 2019
Thanks Given: 0
Thanks Received: 0
I found one script from tradingview. It looks interesting. Can someone help to convert Pine Code to EasyLanguage ?
Code
//@version=2
//created by StevenH and SeaSide420
study("TC True Strength Indicator", shorttitle="TSI")
long = input(title="Long Length", type=integer, defval=35)
short = input(title="Short Length", type=integer, defval=35)
signal = input(title="Signal Length", type=integer, defval=13)
linebuy = input(title="Upper Line", type=integer, defval=4)
linesell = input(title="Lower Line", type=integer, defval=-4)
price = close
double_smooth(src, long, short) =>
fist_smooth = ema(src, long)
ema(fist_smooth, short)
pc = change(price)
double_smoothed_pc = double_smooth(pc, long, short)
double_smoothed_abs_pc = double_smooth(abs(pc), long, short)
tsi_value = 100 * (double_smoothed_pc / double_smoothed_abs_pc)
keh = tsi_value>linesell?lime:orange
teh = ema(tsi_value, signal)>linebuy?orange:red
meh = ema(tsi_value, signal)>tsi_value?red:lime
plot(tsi_value, color=keh, linewidth=2)
plot(ema(tsi_value, signal), color=teh, linewidth=2)
plot(linebuy,color=green),plot(linesell,color=red)
plot(cross(tsi_value, ema(tsi_value, signal)) ? tsi_value : na, style = circles, color=meh, linewidth = 3)
hline(0, title="Zero")
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
June 14th, 2021, 02:55 PM
Lyon/France
Posts: 23 since Aug 2012
Thanks Given: 1
Thanks Received: 14
Hi, sometimes one needs some patience to get answers...
Code
Inputs:
price(close),
long(35),
shortt(35),
signal(13),
linebuy(4),
linesell(-4),
Width(10);
Vars:
pc(0),first_smooth_pc(0),double_smoothed_pc(0),first_smooth_abs_pc(0),x(0),
double_smoothed_abs_pc(0),tsi_value(0),keh(white),teh(white),meh(white);
pc = price - price[1];
first_smooth_pc = XAverage(pc, long);
double_smoothed_pc = XAverage(first_smooth_pc, shortt);
first_smooth_abs_pc = XAverage(abs(pc), long);
double_smoothed_abs_pc = XAverage(first_smooth_abs_pc, shortt);
tsi_value = 100 * (double_smoothed_pc / double_smoothed_abs_pc);
x = XAverage(tsi_value,signal);
keh = iff(tsi_value>linesell,colorlime,
iff(tsi_value<linesell,colororange,keh[1]));
teh = iff(x>linebuy,colororange,
iff(x<signal,red,teh[1]));
meh = iff(x>tsi_value,red,
iff(x<tsi_value,colorlime,meh[1]));
Drawline(tsi_value,"tsi",stylesolid,2,keh);
Drawline(x,"ema_tsi",stylesolid,2,teh);
Drawline(linebuy,"buy",styledash,1,green);
Drawline(linesell,"sell",styledash,1,red);
Drawline(0,"zero",styledash,1,yellow);
if tsi_value crosses x or x crosses tsi_value then
DrawSymbol(tsi_value,"cross",SymbolCircle,Width,meh,meh);
June 17th, 2021, 05:31 AM
Turin + Italy
Posts: 194 since Feb 2020
Thanks Given: 24
Thanks Received: 129
In my archive I have found this formula in easylanguage of True Strength Indicator:
{True Strength Indicator}
Input:
length1(34),
length2(8),
length3(5);
If(absvalue(c-c[1])<>0) then begin;
Plot1(100*(xaverage(xaverage(c-c[1],length1),length2)/
(xaverage(xaverage(absvalue(c-c[1]),length1),length2))),"Plot1");
Plot2(xaverage(100*(xaverage(xaverage(c-c[1],length1),length2)/
(xaverage(xaverage(absvalue(c-c[1]),length1),length2))),length3),"Plot2");
Plot3((0),"Plot3");
end;
[img]https://i.postimg.cc/GhXYd3Sp/True-Strength-Indicator.jpg[/img]
Last Updated on June 17, 2021