📄️ Introduction
Welcome to the NightShark Documentation! This guide aims to provide you with a comprehensive understanding of NightShark's features and functionalities. NightShark is a powerful tool for algo-trading, allowing you to automate complex trading strategies with ease. Whether you're a beginner or an experienced trader, this documentation will serve as your go-to resource for mastering NightShark's capabilities.
📄️ Pre-Built Functions
NightShark offers a variety of pre-built functions to make your trading automation as seamless as possible. These functions are designed to perform specific tasks, reducing the amount of code you have to write. Here's a breakdown:
📄️ Defining Functions
Defining custom functions in NightShark is a powerful way to encapsulate specific actions or conditions, making your code more modular, reusable, and easier to manage. This section will guide you through the process of defining functions, step-by-step, with additional examples.
📄️ Introducing Variables
In NightShark, variables serve as placeholders for storing data values, which can be used and manipulated throughout your script. This section will guide you through the process of declaring and using variables in NightShark, complete with examples.
📄️ Reading Areas
The read_areas() function is a cornerstone of any trading script in NightShark. It reads the areas on the screen that you've designated for tracking. This section will delve into the importance of this function, why it should be used in a loop, and provide examples for better understanding.
📄️ Clicking Buttons
The Click() function in NightShark is designed to simulate mouse clicks at specified points on your screen. This is particularly useful for interacting with UI elements in your trading platform. This section will explain the function in detail and provide examples for clarity.
📄️ Converting to Number
The toNumber() function in NightShark is essential for converting area values into numerical data. This conversion is crucial when you need to perform mathematical operations or comparisons on the data you've collected. This section will elaborate on the function's importance, its usage, and provide examples for better understanding.
📄️ If-Else statement
If-else statements are a fundamental part of programming logic, and they're no less important in NightShark. These conditional statements allow you to execute different blocks of code based on whether a condition is true or false. This section will delve into the importance of using if-else statements in your NightShark scripts, how to implement them, and provide examples for better understanding.
📄️ Using Loop Constructs
Looping is an essential control structure in NightShark that allows you to execute a block of code multiple times. This is particularly useful for tasks that require repetition, such as constantly reading areas or repeatedly clicking points. This section will discuss the importance of loops, the different types of loops you can use, and provide examples for better understanding.