DAS Trader Pro Object Methods Explained

Welcome back to the DAS Trader Pro Coding Basics series!

In this fifth episode, we’re diving deeper into one of the most powerful concepts in DAS scripting: object methods.

If you’ve already learned what objects are, the next step is understanding how to interact with them. Methods allow you to read information from an object, modify its settings, perform actions, and inspect its contents while your script is running.

Hi, I’m Preston from DayTradeCoder. After more than 30 years of software development and building trading tools, I’m sharing what I’ve learned to help traders better understand DAS scripting and build more powerful automation.

This Coding Basics series is designed for traders who want to learn how DAS scripts actually work. Rather than simply copying code from examples, you’ll learn the concepts behind the language so you can confidently build, modify, and troubleshoot your own scripts.

⏱️ TIMESTAMPS

00: 00: 10 – Introduction to Object Methods and how they differ from Functions.
00: 00: 44 – Analogies for understanding Objects and Methods (The “Person” analogy).
00: 04: 44 – Working with new user object and defining your own properties.
00: 05: 12 – Using the del method to remove specific properties from an object.
00: 06: 53 – How to use the delete method to remove an entire object.
00: 07: 38 – Visualizing data with show object and showobject.
00: 09: 08 – The set method: Dynamically assigning values (useful for loops).
00: 10: 40 – The get method: Retrieving specific property values.
00: 11: 32 – get window object: Interacting with specific chart windows.
00: 12: 13 – Accessing chart-specific methods like getbar and getstudyval.
00: 13: 40 – Deep dive into Bar Objects: High, Low, Open, Close, and Volume data.
00: 15: 51 – get mouse pointer bar: Getting data based on your mouse position.
00: 17: 18 – Common window methods: active, copy image, and create trend line.
00: 18: 58 – Working with Trend Line objects and their properties.
00: 20: 28 – Overview of Alert objects and their settings.
00: 22: 17 – Order Objects: Independent order management vs. Montage interactions.
00: 23: 51 – get order object: Modifying existing orders (e.g., updating trailing stops).
00: 25: 20 – get quote object: Accessing real-time ticker data and stats.
00: 26: 30 – new window object: Creating new Montage windows via script.
00: 27: 35 – How to discover more object functions within the DAS Hotkey configuration.

Topics covered:

• What object methods are
• Calling methods on DAS objects
• Creating and working with object instances
• Reading information from objects
• Updating object settings through methods
• Understanding how methods interact with object properties
• Exploring objects while debugging your scripts
• Building a stronger foundation for advanced DAS scripting

By the end of this video, you’ll understand how methods extend the functionality of DAS objects and why they are one of the core building blocks of more advanced trading automation.

This episode builds directly on the previous videos covering variables, objects, conditional logic, and functions, and prepares you for more advanced scripting topics later in the series.

📚 Coding Basics Series

1️⃣ Variables Explained
2️⃣ Objects Explained
3️⃣ If, Else, While & Conditions
4️⃣ Functions You Need to Know
5️⃣ Object Methods Explained
6️⃣ Startup, Shutdown & Timer Scripts (Coming Soon)

🔔 Subscribe for more DAS Trader Pro tutorials, coding lessons, automation techniques, workflow improvements, and advanced trading tools.

🖥️ My Hardware & Trading Setup:
https://daytradecoder.com/my-setup/

🌐 Website:
https://daytradecoder.com

#DASTrader #DASTraderPro #DASScripts #CodingBasics #Programming #TradingAutomation #DayTradeCoder #TradingTools #TradingWorkflow #StockTrading #DayTrading #LearnToCode #ObjectOrientedProgramming #TraderEducation

────────────────────────────

Important: This series focuses on learning the DAS scripting language and programming concepts. Trading scripts should always be tested thoroughly in a simulator before being used in a live trading environment. Coding mistakes, typing errors, or incorrect logic can produce unexpected results. Build gradually, test often, and make backups of your work as you learn.

────────────────────────────

DISCLAIMER

The code and information presented in this video are provided for educational purposes only.

I am not a licensed financial advisor, and nothing in this video should be considered financial advice.

Trading involves substantial risk. You are solely responsible for testing, validating, and understanding any script, command, or automation before using it in a live trading environment.

DayTradeCoder is an independent project and is not affiliated with, endorsed by, or sponsored by DAS Trader or DASTrader.com.