AlertaScript / दस्तावेज़
उपयोगकर्ता प्रकार और मेथड
संबंधित डेटा और कार्य जोड़ें।
यह कैसे काम करता है
type फ़ील्ड बताता है और कंस्ट्रक्टर इंस्टेंस बनाता है। मेथड का पहला टाइप किया पैरामीटर रिसीवर है।
व्यवहार में
मूल्य क्षेत्र या ट्रेड स्थिति के लिए उपयोग करें। chart.point अंतर्निहित प्रकार है, मूल्य श्रृंखला चर नहीं।
कोड उदाहरण
AlertaScript
indicator("Price range", overlay=false)type PriceRange float hi float lomethod width(PriceRange this) => this.hi - this.lorange = PriceRange.new(high, low)plot(range.width(), "Range")