An example of how to implement Ichimoku in other scripts using my `lib-hlm`. You can copy and paste this code into any `\\@version=5` indicator to add Ichimoku to it.
'Study forloop' pinescript Program to print star Triangle The Program Logic For example, the following Pinescript programme will need two nested for loops. The outer forloop is for rows and the inner forloop is for columns or stars. to create a triangle shape.
This is an example script for checking how far the current bar has progressed towards it's completed state. This works for any time frame, eliminating extra logic calls and conversions for each timeframe.period. It is not intended to be a standalone indicator, but rather as a resource for additional logic triggers on the real time bar of a pine script. The main...
In the v5 version of PineScript, casting a string to a float - float(x) - does not appear to work, in spite of the reference manual seemingly indicating that it should. The simplest test case that I could generate "float('4750.0')" would result in a "Cannot call 'float' with argument 'x'='4750.0'. An argument of 'literal string' type was used but a 'const float'...
Ever wish you didn't have to rapidly flip between 6 different intervals to get the full picture? Yeah, me too. Do you also wish that you kind of understood how the shift / unshift function works for arrays? Yeah, I did too. Both of those birds are taken care of with one stone! The Consolidated Interval Display uses the new Array structure and security to display...
A simple example showing how to create a gradient in a array.
EXPERIMENTAL: Practical example of how to create a shared function instance.
This is an old and incomplete script that is being pulled up and dusted off as per request. The sole purpose of this script was to provide code snippets allowing one to easily convert their own script/strategy to include incremental order sizes. More control over your pyramiding orders. **It may repaint, and was not intended for trading but more as an attempt...
Example how to color the trigger bar of the condition and n-1 prior bars using only 1 barcolor() function. Currently when offsets are used in barcolor(), bgcolor(), plot(), plotarrow(), plotchar(), or plotshape(), the offset only works with a simple (static) integer. If series (dynamic) integers are used instead, there is not an error, but the series values are...
Pinescript v3 Compatibility Framework (v4 Migration Tool) This code makes most v3 scripts work in v4 with only a few minor changes below. Place the framework code before the first input statement. You can totally delete all comments. Pros: - to port to v4 you only need to make a few simple changes, not affecting the core v3 code functionality Cons: - without...
functions using the new line functions in V4 to draw multiple geometric shapes.
An example script describing the basic template needed to add customization to a TV indicator script using the input variable.