SuperAPI AI Directory

Nof1.ai Trading Prompt - A Template Designed for AI Trading Systems

Author: AI小集 · Original source: AI工具集

What Is the Nof1.ai Trading Prompt

Nof1.aiThe trading prompt is a detailed input template designed for AI trading systems, providing comprehensive market data, technical indicators, and account information. The prompt includes the current price, EMA, MACD, RSI, and other indicators for multiple coins, as well as the account's position details and performance metrics. The prompt organizes information in a structured way, supporting the AI in conducting in-depth analysis and making trading decisions, ultimately outputting specific action recommendations, confidence levels, and position quantities for each coin, thereby achieving optimized trading strategies.

Core Modules of the Nof1.ai Trading Prompt

  •  USER_PROMPT (Data Input Layer): The input layer of the system, responsible for collecting and organizing all necessary market data and account information.
    • Global Market State: Includes contextual information such as trading duration and number of calls.
    • Multi-Coin Technical Data: Covers 6 major coins, each providing current indicators (price, EMA, MACD, RSI), intraday series (10 historical data points at 3-minute intervals), and long-term context (EMA, ATR, and volume comparison on the 4-hour timeframe).
    • Account and Position Details: Clearly provides account performance, available funds, and a detailed exit plan for each position (including invalidation conditions, stop-loss, and take-profit targets), embedding risk management directly into the decision input stage.
  • CHAIN_OF_THOUGHT (Reasoning and Analysis Layer): The analysis layer of the system, responsible for processing and analyzing the input data to form the logical basis for trading decisions.
    • Standard Thinking Process:
      • Overall Assessment: Opens with a summary of market conditions and account performance.
      • Position-by-Position Analysis: Uses a numbered list, combining technicals and the exit plan to evaluate each position as "hold" or "exit."
      • New Opportunity Assessment: Scans coins not currently held to determine whether new trading signals exist.
      • Final Summary: Forms the final action plan.
    • Instilling Discipline: Through language (such as "Discipline is paramount"), emphasizes adherence to the trading plan and avoids emotional decision-making.
  • TRADING_DECISIONS (Decision Output Layer): The system's final "actions," translating reasoning into clear, executable instructions.
    • Standardized Output: Generates a decision block for each coin, containing three key fields:
      • Action: Specific action (HOLD / BUY / SELL).
      • Confidence: Decision confidence (0-100%).
      • Quantity: Action quantity (positive for long, negative for short).
    • Machine Readability: This structured format facilitates automatic parsing and execution of trading orders by downstream systems.

Who the Nof1.ai Trading Prompt Is For

  • Quantitative Traders: Professional traders who use algorithms and mathematical models to make trading decisions, building or optimizing their own trading strategies.
  • Cryptocurrency Investors: Individual investors interested in the cryptocurrency market, better understanding market dynamics and making wiser investment choices.
  • Financial Analysts: Financial analysts who need to analyze market trends and trading data, as part of the analysis tools.
  • Trading Algorithm Developers: Programmers or teams who develop trading algorithms and software, testing and improving their algorithms.
  • Trading Strategy Researchers: Scholars or researchers who study trading strategies, simulating trading environments and evaluating the effectiveness of different strategies.

Nof1.ai Trading Prompts

======== USER_PROMPT ========

It has been {value} minutes since you started trading. The current time is {value} and you've been invoked {value} times. Below, we are providing you with a variety of state data, price data, and predictive signals so you can discover alpha. Below that is your current account information, value, performance, positions, etc.
ALL OF THE PRICE OR SIGNAL DATA BELOW IS ORDERED: OLDEST → NEWEST

Timeframes note: Unless stated otherwise in a section title, intraday series are provided at {value}-minute intervals. If a coin uses a different interval, it is explicitly stated in that coin's section.

---

=== CURRENT MARKET STATE FOR ALL COINS ===

=== ALL BTC DATA ===
current_price = {value}, current_ema20 = {value}, current_macd = {value}, current_rsi (7 period) = {value}

In addition, here is the latest BTC open interest and funding rate for perps (the instrument you are trading):
Open Interest: Latest: {value}  Average: {value}
Funding Rate: {value}

Intraday series (by minute, oldest → latest):
Mid prices: [{value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}]
EMA indicators (20-period): [{value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}]
MACD indicators: [{value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}]
RSI indicators (7-Period): [{value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}]
RSI indicators (14-Period): [{value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}]

Longer-term context (4-hour timeframe):
20-Period EMA: {value} vs. 50-Period EMA: {value}
3-Period ATR: {value} vs. 14-Period ATR: {value}
Current Volume: {value} vs. Average Volume: {value}
MACD indicators: [{value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}]
RSI indicators (14-Period): [{value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}, {value}]

---

=== HERE IS YOUR ACCOUNT INFORMATION & PERFORMANCE ===

Current Total Return (percent): {value}%
Available Cash: {value}
Current Account Value: {value}

Current live positions & performance:
{'symbol': 'ETH', 'quantity': {value}, 'entry_price': {value}, 'current_price': {value}, 'liquidation_price': {value}, 'unrealized_pnl': {value}, 'leverage': {value}, 'exit_plan': {'invalidation_condition': 'The 4-hour 20-period EMA crosses back above the 50-period EMA.', 'profit_target': {value}, 'stop_loss': {value}}, 'confidence': {value}, 'risk_usd': {value}, 'sl_oid': {value}, 'tp_oid': {value}, 'wait_for_fill': False, 'entry_oid': {value}, 'notional_usd': {value}}
{'symbol': 'SOL', 'quantity': {value}, 'entry_price': {value}, 'current_price': {value}, 'liquidation_price': {value}, 'unrealized_pnl': {value}, 'leverage': {value}, 'exit_plan': {'invalidation_condition': 'The 4-hour 20-period EMA crosses back above the 50-period EMA.', 'profit_target': {value}, 'stop_loss': {value}}, 'confidence': {value}, 'risk_usd': {value}, 'sl_oid': {value}, 'tp_oid': {value}, 'wait_for_fill': False, 'entry_oid': {value}, 'notional_usd': {value}}
{'symbol': 'XRP', 'quantity': {value}, 'entry_price': {value}, 'current_price': {value}, 'liquidation_price': {value}, 'unrealized_pnl': {value}, 'leverage': {value}, 'exit_plan': {'invalidation_condition': '4-hour 20-period EMA crosses back above the 50-period EMA.', 'profit_target': {value}, 'stop_loss': {value}}, 'confidence': {value}, 'risk_usd': {value}, 'sl_oid': {value}, 'tp_oid': {value}, 'wait_for_fill': False, 'entry_oid': {value}, 'notional_usd': {value}}
{'symbol': 'BTC', 'quantity': {value}, 'entry_price': {value}, 'current_price': {value}, 'liquidation_price': {value}, 'unrealized_pnl': {value}, 'leverage': {value}, 'exit_plan': {'profit_target': {value}, 'stop_loss': {value}, 'invalidation_condition': '4-hour 20-period EMA crosses above the 50-period EMA.'}, 'confidence': {value}, 'risk_usd': {value}, 'sl_oid': {value}, 'tp_oid': {value}, 'wait_for_fill': False, 'entry_oid': {value}, 'notional_usd': {value}}
{'symbol': 'BNB', 'quantity': {value}, 'entry_price': {value}, 'current_price': {value}, 'liquidation_price': {value}, 'unrealized_pnl': {value}, 'leverage': {value}, 'exit_plan': {'profit_target': {value}, 'stop_loss': {value}, 'invalidation_condition': 'Price closes below the 4-hour 50-period EMA on a 4-hour candle.'}, 'confidence': {value}, 'risk_usd': {value}, 'sl_oid': {value}, 'tp_oid': {value}, 'wait_for_fill': False, 'entry_oid': {value}, 'notional_usd': {value}}

Sharpe Ratio: {value}

======== CHAIN_OF_THOUGHT ========

My Current Assessment & Actions

Okay, here's what I'm thinking, going through this analysis. The market's giving me a headache, with a nasty {value}% return to start. Discipline is paramount here. I've got five positions open – short ETH, SOL, XRP, BTC, and a long on BNB. I need to be very cautious about entering any new trades; the signal has to be exceptionally strong.

Let's break down each position:

1. ETH (Short): It's against me, but not too badly. The 4H EMAs are still bearishly aligned, so I'm sticking to my guns. The invalidation condition is the 20 EMA crossing above the 50 EMA on the 4H chart, and that hasn't happened. Hold.

2. SOL (Short): Similar situation to ETH – bearish trend, although the intraday chart shows some short-term strength. The 4H EMAs support my short bias, and the invalidation (20 EMA crossing above the 50 EMA on the 4H) isn't triggered. Hold.

3. XRP (Short): Actually in profit, thankfully. The 4H EMAs are still bearish, and the invalidation condition (same as ETH and SOL) is still in play. Hold.

4. BTC (Short): A small profit here, but the 4H EMAs are bearishly aligned, even though the price is currently above the 20 EMA. The invalidation condition is still the 20 EMA crossing above the 50 EMA, so I see no reason to exit. Hold.

5. BNB (Long): This one's a bit tricky. The 4H EMAs contradict a long position, but the price is holding above both EMAs, and the MACD suggests a potential reversal. The invalidation condition (price closing below the 4H 50 EMA) is not met. I have to Hold for now.

New Trade Opportunities: I only have ${value} available, so I'm extremely hesitant to open any new positions right now. I scanned DOGE, but it's just too range-bound and lacks any clear momentum. No new trades for me today.

In summary, I am sticking with my current positions. No adjustments, no adjustments, no new positions. I'll generate the required JSON objects to reflect this. I need to ensure all required information is complete from my existing trade data. I'm going to hold and stick with the plan. Now I'll generate the required JSONs for the holdings for the five coins.


======== TRADING_DECISIONS ========

SOL
- Action: HOLD
- Confidence: {value}%
- Quantity: {value}

ETH
- Action: HOLD
- Confidence: {value}%
- Quantity: {value}

BTC
- Action: HOLD
- Confidence: {value}%
- Quantity: {value}

XRP
- Action: HOLD
- Confidence: {value}%
- Quantity: {value}

BNB
- Action: HOLD
- Confidence: {value}%
- Quantity: {value}

DOGE
- Action: (No decision mentioned - scanned but no trade)
- Status: Range-bound, lacks clear momentum