TradingView
Blockunity
5 feb 2024 15:05

Blockunity Level Presets (BLP) 

Bitcoin / TetherUSBinance

Descrizione

A simple tool for setting performance targets.

Level Presets (BLP) is a simple tool for setting upside and downside levels relative to the current price of any asset. In this way, you can track which price the asset needs to move towards in order to achieve a defined performance.

How to Use
This indicator is very easy to use, you can set up to 5 upward and downward targets in the parameters.

Elements
The main elements of this tool are upward (default green) and downward (default red) levels.

Settings
Several parameters can be defined in the indicator configuration.

In addition to configuring which performance value to set the level at, you can choose not to display it if you don't need it. For example, here we display only two levels:



You can also choose not to display the labels:



Also concerning labels, you can choose not to display them in currency format, but in numerical format only (for example, if you're viewing a non-USD pair, such as ETHBTC):



Finally, you can modify design elements such as colors, level widths and text size:



How it Works
Here's how upside (_u) and downside (_d) levels are calculated:
source = close level_1_u = source + (source * (level_1 / 100)) level_1_d = math.max(source - (source * (level_1 / 100)), 0)

Note di rilascio

  • Correction of downward label values.
Commenti
d.umesh
Hi, it's working in equity/index NSE..?
Blockunity
Hello @d.umesh, yes of course, but we'll have to lower the default values a bit to better suit the market :)
vinikumar72
Why its float . How can I understand that...
Blockunity
@vinikumar72, Hey, what are you talking about? :)
vinikumar72
@Blockunity, lines are not stable. Lines float when prices go up or down..
Blockunity
@vinikumar72, Yes, that's the goal... how do you want a static mode?
vinikumar72
@Blockunity, yes in static mode..
Blockunity
@vinikumar72, But how? If you explain your idea of how to make it, we can code it. But to do that, apart from basing the calculation on an input in the parameters (which would then be global to all the assets... so that's no good), I don't see how to do it right now.
vinikumar72
@Blockunity, I have no idea bro. Because I have no knowledge about pine script.
Altro