OPEN-SOURCE SCRIPT
AVG position price

This is a simple script that can show the average price of your position.
You can use up to 5 levels of averaging.
Use sum or amount setting - default - amount - you must enter price and amount - for example, your first purchase was - 0.1 bitcoin at 47000, second one - 0.2 btc at 45000 , so you must use this numbers.
Or you can choose "sum" - For example, you want to see what the average price of your position will be if you buy bitcoin for $ 1000 at the level of 47000 and later buy in addition for 2000 at the level of 46000 and another 2000 at the level of 43000.
__________________________________
Скрипт, показывающий среднюю точку входа в позицию.
В настройках необходимо выбрать:
- "amount" если вы знаете точное количество приобретаемого актива - например покупаете 0.1 биткоина на уровне 47000, далее докупаете 0.2 биткоина на 45к итд.
- "sum" если расчет идет исходя из суммы покупки - например взяли на 1к по 47000, дальше на 2к по 45к и еще на 2к по 40000
You can use up to 5 levels of averaging.
Use sum or amount setting - default - amount - you must enter price and amount - for example, your first purchase was - 0.1 bitcoin at 47000, second one - 0.2 btc at 45000 , so you must use this numbers.
Or you can choose "sum" - For example, you want to see what the average price of your position will be if you buy bitcoin for $ 1000 at the level of 47000 and later buy in addition for 2000 at the level of 46000 and another 2000 at the level of 43000.
__________________________________
Скрипт, показывающий среднюю точку входа в позицию.
В настройках необходимо выбрать:
- "amount" если вы знаете точное количество приобретаемого актива - например покупаете 0.1 биткоина на уровне 47000, далее докупаете 0.2 биткоина на 45к итд.
- "sum" если расчет идет исходя из суммы покупки - например взяли на 1к по 47000, дальше на 2к по 45к и еще на 2к по 40000
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。