TradingView
IntelTrading
21 ноя 2021 г., 18:08

ST_trailing 

Bitcoin / TetherUS PERPETUAL CONTRACTBinance

Описание

The trailing indicator. If ohlc4 becomes "Percent activate trail" above the entry price set by the value and entry date, then the trailing function is activated, which is considered as the maximum ohlc4 for the time in the position minus "Percent activate trail" multiplied by "koeff trail"
Комментарии
AdamZurich
Perfect work!
eliyoung7979
I mean same goes with the suggestion. If you you like your script the way it is dont use it... If you think it make since add it. :)
eliyoung7979
It definitely needs a good amount of work , but here is a minor adjustment to at least get it going

pr = input(defval= 0, type= input.price, title = 'Price enter', group= "a", inline= "b", confirm= true)
date = input(defval= 0, type= input.time, title="Date and time enter", group= "a", inline= "b", confirm= true)
IntelTrading
@eliyoung7979, I have a video instruction for this indicator (in Russian), exactly how to use it, so users have no difficulties using the indicator. The question of the optimality of the code can be raised, but why? If you don't like it, you don't have to use it, if you like it, you can use it, if you want to use it but don't like it - modify it to suit your needs, the code is open.
Ещё