TradingView Pine Script Indicator Creation
Budget: $10 – $30 CAD
Project Description for Pine Script Indicator
I want you to create a Pine Script indicator for TradingView with the following features:
Draw Rectangular Blocks:
The script should check each candle.
If the current candle's closing size (close - open) is greater than or equal to 20% of the previous candle's body size, then:
Draw a rectangular block that encloses the previous candle (from its high to low).
The block should be drawn in blue color.
Mitigation Detection:
If in the future any candle touches or closes inside that blue block (meaning price reaches that zone), the block is considered mitigated.
Change the block’s color to grey once it's mitigated.
Script Requirements:
Should work on any stock, forex pair, or crypto coin.
Should be compatible with any timeframe.
2) Fair Value Gap (FVG) Pine Script Requirement
I need a Pine Script for TradingView that detects and draws Fair Value Gaps (FVGs) as follows:
Detection:
Look at 3-candle sequences.
If the low of the third candle is higher than the high of the first candle, it forms a bullish FVG.
If the high of the third candle is lower than the low of the first candle, it forms a bearish FVG.
Visualization:
When a valid FVG is detected, draw a rectangle (box) from the high of the 1st candle to the low of the 3rd candle:
Use blue color for unmitigated FVGs.
Label or distinguish if needed as “FVG”.
Once price touches or trades inside the box (mitigated), change the color of the box to grey.
Requirements:
Should work on all symbols (stocks, forex, crypto).
Should work on all timeframes.
Rectangles should remain on chart until mitigated (use var or arrays if needed).
No repainting.
Add input options to turn on/off bullish and bearish FVGs separately.
I want you to create a Pine Script indicator for TradingView with the following features:
Draw Rectangular Blocks:
The script should check each candle.
If the current candle's closing size (close - open) is greater than or equal to 20% of the previous candle's body size, then:
Draw a rectangular block that encloses the previous candle (from its high to low).
The block should be drawn in blue color.
Mitigation Detection:
If in the future any candle touches or closes inside that blue block (meaning price reaches that zone), the block is considered mitigated.
Change the block’s color to grey once it's mitigated.
Script Requirements:
Should work on any stock, forex pair, or crypto coin.
Should be compatible with any timeframe.
2) Fair Value Gap (FVG) Pine Script Requirement
I need a Pine Script for TradingView that detects and draws Fair Value Gaps (FVGs) as follows:
Detection:
Look at 3-candle sequences.
If the low of the third candle is higher than the high of the first candle, it forms a bullish FVG.
If the high of the third candle is lower than the low of the first candle, it forms a bearish FVG.
Visualization:
When a valid FVG is detected, draw a rectangle (box) from the high of the 1st candle to the low of the 3rd candle:
Use blue color for unmitigated FVGs.
Label or distinguish if needed as “FVG”.
Once price touches or trades inside the box (mitigated), change the color of the box to grey.
Requirements:
Should work on all symbols (stocks, forex, crypto).
Should work on all timeframes.
Rectangles should remain on chart until mitigated (use var or arrays if needed).
No repainting.
Add input options to turn on/off bullish and bearish FVGs separately.
Related categories:
PHP
C Programming
JavaScript
Metatrader
C++ Programming
Financial Analysis
Pine Script
Cryptocurrency