Can anyone help convert this pine script to EasyLanguage? - futures io
futures io

Can anyone help convert this pine script to EasyLanguage?

Discussion in EasyLanguage Programming

    1. trending_up 258 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 0 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

Search this Thread

Can anyone help convert this pine script to EasyLanguage?

(login for full post details)
  #1 (permalink)
Posts: 2 since Oct 2020
Thanks: 0 given, 1 received

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")

Reply With Quote
The following user says Thank You to jmi8844 for this post:

futures io Trading Community Platforms and Indicators EasyLanguage Programming > Can anyone help convert this pine script to EasyLanguage?

Last Updated on September 14, 2021

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada),
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts