Hello All, This script shows Indicator panel in a Table. Table.new() is a new feature and released today! Thanks a lot to Pine Team to add this new great feature! This new feature is a game changer! The script shows indicator values for each symbol and changes background color of each cell by using current and last values of the indicators for each symbol....
High probability reversal pattern best used for scalping on lower time frame charts like the 15 second chart. very basic script for those just starting to learn pine
Pinescript - Common Label & Line Array Functions Library by RagingRocketBull 2021 Version 1.0 This script provides a library of common array functions for arrays of label and line objects with live testing of all functions. Using this library you can easily create, update, delete, join label/line object arrays, and get/set properties of individual label/line...
Hello, This code may be useful for Pine script coders only. Arrays were welcomed in Pine script, as they are a foundation for coding properly many useful things, like studies and strategies here in TradingView :) TradingView recently released new functions for arrays, like array.median and more, but the "PRODUCT" function was still missing, so I created it....
Standard Array Functions Library by RagingRocketBull 2021 Version 1.0 This script provides a library of every standard Pinescript array function for live testing with all supported array types. You can find the full list of supported standard array functions below. There are several libraries: - Common String Functions Library - Common Array Functions Library ...
Common String Functions Library by RagingRocketBull 2021 Version 1.0 Pinescript now has strong support for arrays with many powerful functions, but still lacks built-in string functions. Luckily you can easily process and manipulate strings using arrays. This script provides a library of common string functions for everyday use, such as: indexOf, substr, replace,...
This is just a script to exercise the use of arrays on pine script. I think we could say that every for loop we had in pine script before the arrays, is eligible to become an array. Our script will get more efficient and more reliable. As every "if" case is elegible to became a function I confess I was addicted to use if, else if, else in my codes, but recently...
Simple Price Momentum Strategy ( SPM ) The term momentum was borrowed from Newton’s first law of motion. The law states that where an object in motion tends to stay in motion until an external force is applied to it. Like in the law of physics, a market in motion tends to stay in motion rather than reverse. This is the reason why a momentum indicator strategy is...
Using the new Pine Script array built-ins to join string elements together for label text. The array is sliced to remove extraneous elements.
Main utility: legibility in alerts where certain values are not truncated. It may prove helpful if tostring() is unavailable for use as well.
Demo Encode a string to an ascii array and decode the ascii array to a string. Reads ascii 32 to 126. Takes a long time to execute. You may get the "Loop is too long (> 200 ms)" execution error. You can change the loop to iterate fewer times thereby shorten the string length. OR you can limit the characters converted. THIS IS AN ABSOLUTE KLUDGE. Just showing...
What do you think of Pine Script? Here's your chance to let off some steam if your frustrated with the limitations of Pine Script. This script stores a text string in a array. Unfortunately tradingview doesn't think anything useful can be done with strings. This is merely a demo of storing a string in an array. There currently seems to be no way to get an...
A label function for display an arbitrary value above or below the chart. There is no convenient way to display the value of a variable in pinescript. This is most convenient way I found. It will follow the current bar (the position is calculated with highest/lowest and atr value, as such it will never display over the chart) In this script we display ATR for...
FundCandlesV1sloth288 is an indicator I decided to put together so I can track how funds are doing on $GVT Genesis Vision. Using a standard MACD or RSI indicator you can change source to use the FundsCandles values to determine if its a good time to enter or exit different funds on the platform. What you need to know... Currently all securities need to pair the...
Horizontal line for previous daily, weekly or monthly high. By default : Green Label - previous 1 day high Yellow Label - previous 1 week high Red Label - previous 1 month high Each number and color can be change in setting.
Round function in PineScript is very simple and allows you to round numbers only to the closest integer number. This is a bit irritating because I very often have to round numbers to some decimal places and not integer. So I created 2 functions I use all the time and now sharing them with you. roundn - rounds the values in its first argument to the...
This is just published for visibility as a public service until the Pine devs are able to fix or document this behavior. The barssince() function returns different values when inside a conditional context. As long as it can be documented (and relied upon), this could be a pretty cool feature, but right now this is now how I read the help documentation to...
This is a developer friendly solution to the current PineScript limitation of not being able to easily configure presets for multiple timeframes. If you're developing multi-timeframe strategies then you've no doubt done battle with built-in `input` function which only allows for a single default value. You've probably come up with all kinds of fancy workarounds,...