PROTECTED SOURCE SCRIPT
מעודכן

Omnisphere Universe

124
For those who likes stars in their chart :)
Fits pretty well to my Omnisphere PREMIUM indicator.

Cheers!
IncrediBull
הערות שחרור
Added many user inputs
Turned almost everything into customizable settings in the TradingView panel:
- Enable/disable
- Max number of stars
- Lifetime, fade-in, and fade-out duration
- Custom star symbols (comma-separated list)
- Option to vary star sizes (normal/large)
- Base color of stars
- Minimum opacity and twinkle strength
- Vertical positioning range (% of candle height)
- Maximum horizontal offset (± bars)

Improved symbol handling
Added code to properly parse the custom comma-separated symbol string and trim spaces, so users can easily add or change symbols.

Better vertical distribution
Stars now spawn within a configurable percentage range of the candle (default 1–99 %), instead of always 1–99 % with a small fixed offset.

Fixed the size bug (multiple times)
- First attempt used size as variable type → conflict with built-in size.*
- Second attempt used symsize → not a valid type
- Final fix: No explicit type declaration needed. We now simply assign the size value to a variable named var_size (e.g. var_size = size.large or size.normal) — this works perfectly.

Minor code cleanups
- Better comments
- Safer variable names
- Slightly improved opacity calculation

You now have a fully customizable, beautiful twinkling star overlay that anyone can tweak without touching the code. ✨

Enjoy the twinkling universe – wherever you are in the world ✨🌌 - IncrediBull_
הערות שחרור
Small Fix!

- use scaling -> none (full screen) to have stars all over instead of candle based calc.

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.