Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "pinescript"
-
PineScript is absolute garbage.
It's TradingView's scripting language. It works, but it's worse than any language I have ever seen for shoddy parsing. Its naming conventions are pretty terrible, too:
transparency? no, "transp"
sum? no, cum. seriously. cum(array) is its "cumulative sum."
There are other terrible names, but the parser is what really pisses me off.
1) If you break up a long line for readability (e.g. a chained ternary), each fragment needs to be indented by more than its parent... but never by a multiple of 4 spaces because then it isn't a fragment anymore, but its own statement.
2) line fragments also cannot end in comments because comments are considered to be separate lines.
3) Lambdas can only be global. They're just fancy function declarations. Someone really liked the "blah(x,y,z) =>" syntax
4) blocks to `if`s must be on separate lines, meaning `if (x) y:=z` is illegal. And no, there are no curly braces, only whitespace.
There are plenty more, but the one that really got me furious is:
98) You cannot call `plot()`, `plotshape()`, etc. if they're indented! So if you're using non-trivial logic to optionally plot things like indicators, fuck you.
Whoever wrote this language and/or parser needs to commit seppuku.rant or python? pinescript or fucking euphoria? or ruby? why can't they just use lua? or javascript? tradingview17 -
Just joined a company 1 week ago and I was tasked to build a cryptocurrency bot in trading view using pinescript. The problem here is that I have zero knowledge in trading, charts , indicators etc and Pinescript is such a miserable language and I am so bored of this.
On top of that, nothing here makes sense. Tried learning trading on my own and it is simply boring and I don't understand many things here such as RSI, ATR etc . Sometimes I feel like quitting this job because I feel that I cannot deliver and at the same time I am afraid that I am quitting too soon before even giving a try.22 -
Guys should I quit my CURRENT job ? I feel like I should find another job because of the following reasons
a. I suck. I know I can't complete the task given. The task given is to build a trading bot. I can't complete it because of my incompetent trading knowledge and i find it difficult to understand trading logic and I tried my level best even paying someone to private tutor me but the tuition fees are too high and I still don't understand. Btw I am from a web development background
b. It has been 3 months in this company. I feel like I am not doing anything. I feel like a loser who has been eating free salary without contributing anything. Sure I have managed to write few strategies on pinescript.
c. I dread everyday to even do anything. I use to feel accomplished in my previous job. Nowadays I cant hope to feel like a complete idiot.
d. I don't have the motivation or fire that I use to have when I was a web developer. I just hate looking at code nowadays.
e. Algo Trading is too difficult for me. I don't feel like I am progressing anywhere.
f. Nobody in my company knows how to build a bot or have any knowledge on this.
g. Python dataframes , plots, charts bores me to death and I am really no interested to even look at it.
I am just so frustrated as I am typing this and I am becoming tired and exhausted to go to work everyday because everyday I am so clueless on what to do. You need at least some idea where to go to but I don't. Everyday I feel like a complete clueless moron.9