Custom Trading Strategies Overview
- Utilize pre-built trading methods, candle, and indicator data to rapidly develop personalized strategies.
- Each strategy functions as an async operation, running once every time a trading pair 'cycles' in Gunbot.
Key Technical Aspects of the Code Environment
Consider these crucial technical details:
- Gunbot manages exchange connections, data collection, and strategy availability.
- Store strategies in individual .js files within a folder named
- Strategy code can access one external object:
gb, which includes numerous trading methods and extensive data.
- While there are no limitations on using the provided trading methods, exchange-related restrictions apply (API rate limits, open orders limits, etc.).
- No safeguards against double orders or other undesired actions exist; exercise caution.
console.log()command logs information to the primary Gunbot console.
- Code execution occurs inside an async function, allowing you to use the
awaitkeyword for retrieving additional data like varying timeframe candle data.
- Strategies need not return anything; however, you may employ
returnstatements to halt code at desired points.
user_moduleswithin your Gunbot directory.