<aside> 💡
Please note that all the content in this article has been written and compiled from internet resources by the BuddyTrading Team. Any contributions on the content can be sent to email [email protected]
</aside>
We are excited to introduce the comprehensive Reference Manual for the Strategy Creator on the BuddyTrading App! This manual is designed to assist you in creating powerful trading strategies using JavaScript. Whether you are a seasoned trader or a beginner, our Reference Manual provides the detailed information you need to build, test, and refine your trading strategies efficiently.
To access the Reference Manual, simply navigate to the Create Strategy page on the BuddyTrading App. You will find a Reference Manual tab on the header, which provides you with a detailed guide for each function available in the strategy creator. This tab is your go-to resource for understanding the various components and functionalities that you can leverage to create robust and effective trading strategies.
Our Reference Manual covers various functions you can use in the Strategy Creator. Here’s a sneak peek into what each function does:
define_Indicators
This function allows you to define and initialize any technical indicators your strategy will use.
Example:
define_Indicators: function() {
this.rsi = this.indicator("RSI", this.RSI, 14); // 14-period Relative Strength Index
this.ma = this.indicator("MA", this.MovingAverage, 50); // 50-period Moving Average
}
define_meta
This function allows you to set metadata for your strategy, including its name, version, and a brief description.
Example:
define_meta: function() {
this.strategyName = "RSI and MA Strategy";
this.version = "1.0";
this.description = "A trading strategy using RSI and Moving Average.";
}
on_Price_Update
This function is triggered whenever there is a new price update. Use this function to process new price data and make trading decisions.
Example: