Add token info with filters (technical indicators, cap) + TP/SL
As I found out this interesting project while I was struggling to develop my own version first in Python and now in Javascript/NODEJS, I would like to ask how do you determine WHEN to buy or sell a coin? From a quick look at the code and modules, I couldn't get out any strategy, it seems manual.
So my issues and questions are :
-
Since you don't seem to use any indicators like MACD, RSI, EMA, MFI, Ichimoku, etc to have some trading logic, is there any other than price target and is it hardcoded or customizable via a configuration file? Do you have a fixed profit target somewhere in the code or config file that can be set? Such as sell at +20% profit or -5% loss + trailing?
-
Are there ANY filters to weed out any bad coins that may have Freeze/Mint authority still enabled or mutable metadata or custom fees enabled which could cause problems like preventing a buyer from selling a token?
-
Do you have a system that allows the user to select an X number of coins to trade, once they fit into some basic safety criteria, or it just randomly buys and sells any coin that pops out of the bonding curve and is then visible in the blockchain via Raydium / Dexscreener?
In other words are there any safety mechanisms in the bot ? Thanks
Thanks for feedback. Please note that there is a new version coming. As for the current one, have a look at my comments below.
You can check the existing modes in trade.py:
parser.add_argument("--yolo", action="store_true", help="Run in YOLO mode (continuous trading)")
parser.add_argument("--match", type=str, help="Only trade tokens with names or symbols matching this string")
parser.add_argument("--bro", type=str, help="Only trade tokens created by this user address")
parser.add_argument("--marry", action="store_true", help="Only buy tokens, skip selling")
In yolo mode, selling is performed after a delay (20 sec):
if not marry_mode:
print("Waiting for 20 seconds before selling...")
await asyncio.sleep(20)
Can these filters be applied? 1. Buy the coin with 0.04 sols at its first launch when it reaches a minimum of 5000 MC and a maximum of 5500 MC. The strategy is to sell quickly. Sell at 100% with a profit of 20%. Make the slippage 15% for buying and 40% for selling. Add a stop loss at 10% and add a stop loss on the profit at 10%. Make the priority fee automatic, provided it does not exceed 0.0005 sols.
⚠ Hi @crazywaters ! We've just shipped take profit and stop loss features for trading on bonding curves. It's implemented through constant polling of bonding curve state. Feel free to test it.