Add C# functions to Skender.Stock.Indicators to include 2 functions from Pine Script

Job ID: 36449984

Budget: $10 – $30 USD

I am looking for a skilled C# programmer to add two functions currently available on Pine Script to Skender.Stock.Indicators. The project has no strict deadline, so you can work at your own pace. The ideal candidate should have experience with the following:

- C# programming language
- Pine Script functions - you must be able to at least read the code. You need to replicate the code from "https://TradingView.com".
- Skender.Stock.Indicators - https://github.com/DaveSkender/Stock.Indicators - This is a financial market technical indicator library.
- an understanding of financial indicators.

The 2 functions that you need to create and add to Skender.Stock.Indicators (https://github.com/DaveSkender/Stock.Indicators) is:

1. Linear Regression:
Within Pine Script version 5, Linear Regression is called with this function "ta.linreq"
The example below will create a new series called "linearRegressionSeries", from the closing price.

linearRegressionSeries = ta.linreg(close, length, offset).

You will have to create a function with C# that does the same, however that will return data as IEnumerable<LinRegResult>.

2. ZeroLagSMA - Zero Lag SMA
On TradingView the code can be found within the indicators by searching for "ZeroLagSMA - Zero Lag SMA by veryfid"
The Pine Script code is below:
/////////////////////////////////////////////
//@version=4

study(title = "ZLSMA - Zero Lag LSMA", shorttitle="ZLSMA", overlay=true, resolution="")
length = input(title="Length", type=input.integer, defval=32)
offset = input(title="Offset", type=input.integer, defval=0)
src = input(close, title="Source")
lsma = linreg(src, length, offset)
lsma2 = linreg(lsma, length, offset)
eq= lsma-lsma2
zlsma = lsma+eq

plot(zlsma, color=color.yellow, linewidth=3)
/////////////////////////////////////////////

This C# function should return IEnumerable<ZlsmaResult>.

One think you need to notice from the code above is that "lenreg" is called twice. Once with the closing price, and once with the result from the previous linreq call.

Feel free to ask questions.
Related categories: C# Programming Financial Markets