tsuz / go-pine Goto Github PK
View Code? Open in Web Editor NEWPinescript to Golang
License: MIT License
Pinescript to Golang
License: MIT License
Entry Options
Item | Supported |
---|---|
id | ✅ |
direction | ✅ |
qty | |
limit | ✅ #41 |
stop | |
oca_name | |
oca_type | |
comment |
Why
If values are nil, it should not return a non nil value
Observed vs Expected
a | observed | expected |
---|---|---|
1 + nil | 1 | nil |
2 * nil | 2 | nil |
3 / nil | 3 | nil |
I am researching pine script, your project seems interesting but also confusing. What is the intention of this project? Thank you.
Exit Options
Item | Supported | |
---|---|---|
id | ||
from_entry | ✅ | |
qty | ||
qty_percent | ||
profit | ||
limit | ||
loss | ||
stop | ||
trail_price | ||
trail_points | ||
trail_offset | ||
oca_name | ||
oca_type | ||
comment | ||
comment_profit | ||
comment_loss | ||
comment_trailing |
General Strategy
Item | Supported |
---|---|
Initial Capital | |
Pyramiding | |
Commission | |
Verify Price for limit orders | |
Slippage | |
Margin for long positions | |
Margin for short positions | |
Recalculate after order is filled | |
Recalculate on every tick | |
Recalculate on bar close | |
Use bar magnifier |
Mathematical Operators
Pine Script | Go Pine |
---|---|
math.abs | |
math.acos | |
math.asin | |
math.atan | |
math.avg | |
math.ceil | |
math.cos | |
math.e | |
math.exp | |
math.floor | |
math.log | |
math.log10 | |
math.max | |
math.min | |
math.phi | |
math.pi | |
math.pow | pine.Pow |
math.random | |
math.round | |
math.round_to_mintick | |
math.rphi | |
math.sign | |
math.sin | |
math.sqrt | use pine.Pow(src, 0.5) |
math.sum | pine.Sum |
math.tan | |
math.todegrees | |
math.toradians |
Why
Information is scattered and the formatting is corrupt.
Next action
Order Type
Item | Supported |
---|---|
Market Order | ✅ |
Limit Order | ✅ #41 |
Stop Order | |
Trail Order |
Why
Older code and newer code are making documentation messy and it needs to be cleared up so it's easier to understand.
Why
Out of memory error and high memory usage are blockers to running this in backtest or in live environment. These needs to be addressed to avoid failure scenarios.
Next steps
Item | Issue/PR |
---|---|
Set max values per OHLCVSeries and ValueSeries | #49 |
Re-use OHLCV attr series | #58 |
Remove unused pointer reference | #57 |
Support ta.valuewhen()
Supports ta.atr
and ta.tr
Hi there,
Great project!
I want to make some contribution for it, but wonder is this project still going on.
Support standard deviation series
Candidates
Pine Script | Go Pine |
---|---|
ta.alma | |
ta.accdist | |
ta.atr | ✅ |
ta.barssince | |
ta.bb | |
ta.bbw | |
ta.cci | ✅ #52 |
ta.change | ✅ #25 |
ta.cmo | |
ta.cog | |
ta.correlation | |
ta.cross | ✅ #55 |
ta.crossover | ✅ #55 |
ta.crossunder | ✅ #55 |
ta.cum | |
ta.dev | |
ta.dmi | ✅ #53 |
ta.ema | ✅ |
ta.falling | |
ta.highest | |
ta.highestbars | |
ta.hma | |
ta.iii | |
ta.kc | ✅ #54 |
ta.kcw | |
ta.linreg | |
ta.lowest | |
ta.lowestbars | |
ta.macd | ✅ #28 |
ta.max | |
ta.median | |
ta.mfi | ✅ #51 |
ta.min | |
ta.mode | |
ta.mom | |
ta.nvi | |
ta.obv | |
ta.percentile_linear_interpolation | |
ta.percentile_nearest_rank | |
ta.percentrank | |
ta.pivot_point_levels | |
ta.pivothigh | |
ta.pivotlow | |
ta.pvi | |
ta.pvt | |
ta.range | |
ta.rising | |
ta.rma | ✅ |
ta.roc | ✅ #26 |
ta.rsi | ✅ |
ta.sar | |
ta.sma | ✅ |
ta.stdev | ✅ |
ta.stoch | |
ta.supertrend | |
ta.swma | |
ta.tr | ✅ |
ta.tsi | |
ta.valuewhen | ✅ |
ta.variance | ✅ #27 |
ta.vwap | |
ta.vwma | |
ta.wad | |
ta.wma | |
ta.wpr | |
ta.wvad |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.