In this Cody Quickstart Guide we will cover everything to get you started with Cody:
What is Cody?
What can you do with Cody?
How to configure Cody?
If you've already started configuring your Cody AI, you can check these articles to learn more:
What is Cody?
Cody is Quadency's AI Trading Assistant. With Cody, you can simply write your strategy using natural language, and Cody will use our trained AI model to convert it into code so you can automate any strategies in minutes!
What can you build with Cody?
You can create a virtually infinite type of strategy. If you can imagine it, Cody can code it. The early beta release has some limitations but it is still a very capable bot. Generally, trading strategies that rely on pricing data (latest and historical) and any kind of mathematical analysis of this data (technical or statistical) can be built.
Here are some examples you can try:
Buy 0.01 BTC every Sunday at 6PM EST. Don't buy above 15000. Sell when profit target of 10% has been reached.
Buy DOGE/USDT if RSI is oversold and price is below the lower band of the Bollinger Bands indicator. Sell when profit > 5%.
Buy $10 worth of ETH every day if price is below 200 day moving average. Use a 10% trailing stop and 5% profit target.
Create a portfolio with the following allocations:
Note: the above strategy will currently fail to backtest, but can be run live successfully.
Compre $ 10 USD en BTC todos los días a las 5 p.m. Deje de comprar cuando el precio esté por encima de $ 25000
How to create a bot with Cody?
Step 1: Configure the Strategy Settings
The first step in creating a trading bot with Cody is to configure the strategy settings. Here's what you need to configure:
Simply the exchange you want to run your strategy on. Run bots for free on QUADX.
This is the amount you wish to allocate to your strategy. Note that it will not limit the amount your strategy can spend, but will be used for performance calculation.
This is the pair your strategy will run on.
Note that you can later add multiple pairs in your strategy, but the backtest functionality will not be accurate.
This is the timeframe at which the function is executed. Think of this as a candle timeframe on a chart. For example, if your strategy is to "Buy $5 in BTC every 5 minutes until $500 has been spent", then choose the 5 Minute execution interval.
Step 2: Write your prompt
Now that you've configured your settings, simply use your imagination and write your own strategy in a plain language, it can be as simple as:
“Buy $100 of Bitcoin every day”
But you can use much more complex prompts like: to more complex prompts like:
"Trade 100 DOGE/USDT using a scalping strategy on the 5-minute timeframe with 1% profit target and 2% stop loss."
If you want tips to write better prompts, check out this guide. Lacking of trading ideas? simply use of our template or join our Discord to discuss with other traders!
Step 3: Generate the code
Once you’ve written your strategy, click “Generate Code”. That’s where the magic happens, Cody takes your written strategy and code it for you.
Step 4: Backtest your strategy
Once the code is ready you can review it to make sure it will apply your strategy. Verify that the code does what you described. If not, feel free to make any changes or improvements. Or try generating again to see if the result is different or better.
If you want to know more about code review for Cody, check out this article to learn the ins and outs of code reviewing.
Step 5: Tweak or Run Live
Once the backtest made, you’ll see how your strategy would have performed in the past. By scrolling through the logs, you will be able to check the trades placed by the bot.
Once you’re satisfied with the results, simply click Start Live and let Cody do the trades for you! If not, you can try to tweak the prompt to generate a new code and restart at Step 4