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
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.