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 anyone help convert this pine script to EasyLanguage?
Updated March 24, 2022
Top Posters
looks_one
Kolnidrei
with 1 posts (0 thanks)
looks_two
Virrat
with 1 posts (0 thanks)
looks_3
jmi8844
with 1 posts (1 thanks)
looks_4
muhfayaz12
with 1 posts (0 thanks)
trending_up
7,973 views
thumb_up
1 thanks given
group
4 followers
forum
2 posts
attach_file
2 attachments
Can anyone help convert this pine script to EasyLanguage?
September 14th, 2021, 01:34 PM
Chicago
Posts: 2 since Oct 2020
Thanks Given: 0
Thanks Received: 1
It seems like its a variation of a channel breakout but having trouble with the exact conversion. Thanks
length = input(30, minval=1)
Value = input(30, minval=0)
highsma = sma (high, length)
lowsma = sma(low, length)
swing = iff(close > highsma[Value], 1, iff(close < lowsma[Value], -1, 0))
mah = highest(high, length)
mal = lowest(low, length)
stop = iff(swing==1, mal, iff(swing==-1, mah, stop[1]))
linecolor = iff(stop < low, green, red)
plot(stop, style=line, linewidth=2, color=linecolor)
len1 = input(1, "Base Length")
src = input(close, "Source")
sma1 = sma(src, len1)
longcondition = crossover(sma1,stop)
shortcondition = crossover(stop,sma1)
plotshape(longcondition, style = shape.triangleup, color = green, location = location.belowbar, text = "Long", size = size.small)
plotshape(shortcondition, style = shape.triangledown, color = red, location = location.abovebar, text = "Short", size = size.small)
alertcondition(longcondition, "Long", "Long")
alertcondition(shortcondition, "Short", "Short")
The following user says Thank You to jmi8844 for this post:
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
September 26th, 2021, 05:15 PM
Lyon/France
Posts: 23 since Aug 2012
Thanks Given: 1
Thanks Received: 14
hi
Code
Inputs:
src(close), //"Source"
length(30, 1),
lookback(30, 0),
len1(1); //"Base Length"
Vars:
highsma(0),lowsma(0),swing(0),mah(0),mal(0),stopp(0),sma1(0),
longcondition(false),shortcondition(false),linecolor(white);
highsma = AverageFC(high, length);
lowsma = AverageFC(low, length);
swing = iff(close > highsma[lookback], 1, iff(close < lowsma[lookback], -1, 0));
mah = highest(high, length);
mal = lowest(low, length);
stopp = iff(swing=1, mal, iff(swing=-1, mah, stopp[1]));
linecolor = iff(stopp < low, green, red);
plot1(stopp, "stop", linecolor, default, 2);
sma1 = AverageFC(src, len1);
longcondition = sma1 crosses above stopp;
shortcondition = stopp crosses above sma1;
if longcondition then begin
value1 = Text_New(D, T, L, "é");
Alert( "Long" ) ;
end;
if shortcondition then begin
value2 = Text_New(D, T, H, "ê");
Alert( "Short" ) ;
end;
the arrows here should be activated with the wingdings
depending on the software you use...
March 24th, 2022, 11:13 AM
Pakistan near Afghanistan
Posts: 1 since Mar 2022
Thanks Given: 0
Thanks Received: 0
can anyone convert these to easy language script to pine script that i would like be able to use trading veiw
Last Updated on March 24, 2022