Can anyone help convert this pine script to c# or vb? - futures io
futures io futures trading



Can anyone help convert this pine script to c# or vb?


Discussion in MultiCharts

Updated by jmi8844
    1. trending_up 234 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,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 c# or vb?

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

Can anyone help convert this pine script to c# or vb? I would like to backtest it in multicharts Net. Thanks in advance.

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


futures io Trading Community Platforms and Indicators MultiCharts > Can anyone help convert this pine script to c# or vb?


October 14, 2020


Upcoming Webinars and Events
 

Order Flow Tools w/MotiveWave & Zytrade Brokerage

Oct 22
 

Technical Analysis Workshop w/NinjaTrader

Oct 27
 

Bookmap

Oct TBD
 

SharkIndicators

Oct TBD
 

Carley Garner

Oct TBD
 

GruttePier

Oct TBD
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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