TradingView
NeoButane
27 ตุลา 2020 เวลา 6 นาฬิกา 20 นาที
Simple Truncation Function
OANDA:EURUSD
30
EUR/USD
OANDA
คำอธิบาย
⋅
27 ตุลา 2020 เวลา 6 นาฬิกา 20 นาที
Main utility: legibility in alerts where certain values are not truncated.
It may prove helpful if tostring() is unavailable for use as well.
Bears Power
pinescript
ความคิดเห็น
syrinxflunki
⋅
28 ตุลา 2020 เวลา 18 นาฬิกา 54 นาที
Thanks I needed this..
NeoButane
⋅
28 ตุลา 2020 เวลา 19 นาฬิกา 18 นาที
@syrinxflunki
, Of course! I noticed a lot of high quality scripters liked this script, I feel pretty proud of it hahaha
Note: something I had to do as a workaround when using a ternary operator in a series for plot() was to create a hidden plot to reference.
Example:
---
plot(true ? out : na, "Won't work")
plot(out, "Will work", display=display.none, editable=false)
alertcondition(change(time), title="null", message="{{plot("Won't work")}}"
alertcondition(change(time), title="good", message="{{plot("Will work")}}"
---
เพิ่มเติม