Convert tradingview pine script to C# , including source code

Closed Posted 4 years ago Paid on delivery
Closed Paid on delivery

Hello everyone,

I need a tradingview pine script convert to C# code. My C# coding skills are OK, but I don't understand pine script. That's why I need help. I would like the source code though. The end result has to work. No missing functions. Here's the script :

//@version=3

//////////////////////////////////////////////////////////////////////////

// Settings for 5min chart, BTCUSDC. For other coins : change the parameters

//////////////////////////////////////////////////////////////////////////

study(title="Dolphine", overlay=true)

// Source

src = input(defval=close, title="Source")

// Sampling Period

// Settings for 5min chart, BTCUSDC. For other coins : change the parameters

per = input(defval=100, minval=1, title="Sampling Period")

// Range Multiplier

mult = input(defval=3.0, minval=0.1, title="Range Multiplier")

// Smooth Average Range

smoothrng(x, t, m)=>

wper = (t*2) - 1

avrng = ema(abs(x - x[1]), t)

smoothrng = ema(avrng, wper)*m

smoothrng

smrng = smoothrng(src, per, mult)

// Range Filter

rngfilt(x, r)=>

rngfilt = x

rngfilt := x > nz(rngfilt[1]) ? ((x - r) < nz(rngfilt[1]) ? nz(rngfilt[1]) : (x - r)) : ((x + r) > nz(rngfilt[1]) ? nz(rngfilt[1]) : (x + r))

rngfilt

filt = rngfilt(src, smrng)

// Filter Direction

upward = 0.0

upward := filt > filt[1] ? nz(upward[1]) + 1 : filt < filt[1] ? 0 : nz(upward[1])

downward = 0.0

downward := filt < filt[1] ? nz(downward[1]) + 1 : filt > filt[1] ? 0 : nz(downward[1])

// Target Bands

hband = filt + smrng

lband = filt - smrng

// Colors

filtcolor = upward > 0 ? lime : downward > 0 ? red : orange

barcolor = (src > filt) and (src > src[1]) and (upward > 0) ? lime : (src > filt) and (src < src[1]) and (upward > 0) ? green :

(src < filt) and (src < src[1]) and (downward > 0) ? red : (src < filt) and (src > src[1]) and (downward > 0) ? maroon : orange

filtplot = plot(filt, color=filtcolor, linewidth=3, title="Range Filter")

// Target

hbandplot = plot(hband, color=aqua, transp=100, title="High Target")

lbandplot = plot(lband, color=fuchsia, transp=100, title="Low Target")

// Fills

fill(hbandplot, filtplot, color=aqua, title="High Target Range")

fill(lbandplot, filtplot, color=fuchsia, title="Low Target Range")

// Bar Color

barcolor(barcolor)

// Break Outs

longCond = na

shortCond = na

longCond := ((src > filt) and (src > src[1]) and (upward > 0)) or ((src > filt) and (src < src[1]) and (upward > 0))

shortCond := ((src < filt) and (src < src[1]) and (downward > 0)) or ((src < filt) and (src > src[1]) and (downward > 0))

CondIni = 0

CondIni := longCond ? 1 : shortCond ? -1 : CondIni[1]

longCondition = longCond and CondIni[1] == -1

shortCondition = shortCond and CondIni[1] == 1

//Alerts

plotshape(longCondition, title = "Buy Signal", text ="BUY", textcolor = white, style=[login to view URL], size = [login to view URL], location=[login to view URL], color = green, transp = 0)

plotshape(shortCondition, title = "Sell Signal", text ="SELL", textcolor = white, style=[login to view URL], size = [login to view URL], location=[login to view URL], color = red, transp = 0)

alertcondition(longCondition, title="Buy Alert", message = "BUY")

alertcondition(longCondition, title="Buy Alert", message = "BUY")

alertcondition(longCondition, title="Buy Alert", message = "BUY")

alertcondition(shortCondition, title="Sell Alert", message = "SELL")

C# Programming Trading Python Pine Script

Project ID: #22469205

About the project

10 proposals Remote project Active 4 years ago

10 freelancers are bidding on average $203 for this job

esalem

Hi, I am interested in your project and like to handle it. Let us talk about the details in messages.

$277 USD in 7 days
(53 Reviews)
7.9
umg536

Hi there, Being an expert in Python and matlab programming I can do this project for you. please leave a message on my chat so we can discuss the budget and deadline of the project. Also, have a look at my profile for More

$250 USD in 3 days
(17 Reviews)
6.4
buildorbust

hi.........................................................................................................................................................................

$140 USD in 3 days
(84 Reviews)
6.0
dinhfreedom

Dear sir. Your project attracted my attention at first glance, because I've extensive experience in this field. I'm really confident about your project, and very eager to join your project. If we have a chance to coope More

$140 USD in 7 days
(41 Reviews)
6.0
fanstar1996

Thank you for your posting job. I read your project description and I'm very interested in this project. As you can see via my profile, I have expertise skills to build web & mobile app. If you hire me for this project More

$140 USD in 7 days
(18 Reviews)
5.1
adamkut

hello , if you really want to work with professional team , so I can do help you , contact with me for details , thx

$350 USD in 7 days
(2 Reviews)
5.2
rexzetsolutions

i can Convert tradingview pine script to C# ready to strat work from now

$200 USD in 2 days
(25 Reviews)
5.8
AnastasiaMalko

Hi. Dear I read your job description in detail and feel I can help your project. I have full experience and skills for C#, C++ and .NET Framework and Database Management etc. I have done the many project as same as yo More

$140 USD in 7 days
(3 Reviews)
2.6
VladimirGerasimo

Hello. I have read your requirement kindly and I though that I can do it perfectly. I have over 8 years of experience on UNITY. I not only enjoy playing games but also I have extraordinary hobbies in making game. https More

$250 USD in 7 days
(1 Review)
2.6