19. Using the Perpbot Pine Script AI Assistant
Open the assistant Start a chat with AI HERE.
Describe the strategy you want
Example prompts:
“I want a BTC 15m trend strategy using a fast/slow SMA with fixed 2% SL and 5% TP.”
“Make a strategy tailored to low timeframe BTC/USD with macd and RSI with a TP set to 2% from entry.”
"Make a strategy that enters a long when BB% = 2 with standard deviation 2. This strategy only supports longs. Once I am 20% in profit then update SL to breakeven (put at entry price)"
Mention:
The timeframe you want to trade.
The pairs (e.g. BTCUSDT, ETHUSDT).
Any rules, filters, or risk logic (SL/TP, breakeven, cooldowns).
Review the code
Make sure you understand:
What triggers an entry (long/short).
How the stop loss, take profit, and breakeven behave.
If something isn’t clear, ask the AI to:
Comment the code.
Simplify logic.
Change parameters (SL%, TP%, BE trigger, cooldown, etc).
Once you’re happy with the script, you can move it into TradingView.
Last updated