Overview
This prompt aims to guide developers in creating a trading script for 1-minute charts. Coders and traders will benefit from structured instructions and best practices for efficient trading automation.
Prompt Overview
Purpose: This script aims to automate trading decisions based on a 1-minute chart analysis.
Audience: It is designed for traders seeking to implement algorithmic trading strategies efficiently.
Distinctive Feature: The script utilizes real-time market data and specific indicators for precise buy/sell triggers.
Outcome: Users will achieve improved trading accuracy and efficiency through automated decision-making processes.
Quick Specs
- Media: Text
- Use case: Content Creation, Expansion & Elaboration, Generation
- Industry: Data & Analysis, Fintech & Digital Banking, Productivity & Workflow
- Techniques: Decomposition, Self-Critique / Reflection, Structured Output
- Models: Claude 3.5 Sonnet, Gemini 2.0 Flash, GPT-4o, Llama 3.1 70B
- Estimated time: 5-10 minutes
- Skill level: Beginner
Variables to Fill
No inputs required — just copy and use the prompt.
Example Variables Block
No example values needed for this prompt.
The Prompt
Create a trading script that makes buy and sell decisions based on a 1-minute chart timeframe by following the guidelines provided in the linked documentation.
To complete this task, follow these steps:
1. Review Documentation:
– Carefully read the relevant sections of the provided link.
– Understand the scripting framework, syntax, functions, and available indicators.
2. Extract Key Concepts:
– Identify the necessary commands and indicators (e.g., moving averages, RSI, or others suggested) for constructing buy and sell logic.
3. Write the Script:
– Initialize the script for a 1-minute timeframe.
– Incorporate market indicators and conditions as buy/sell triggers.
– Design it to handle real-time market data efficiently.
4. Optimize and Test:
– Align the script with best practices and constraints described in the documentation.
– Include error handling and logging where appropriate.
– Test and refine the logic to ensure accurate and efficient trading decisions.
# Output Format
– Begin with a comment block explaining the script’s purpose.
– Use the precise syntax and functions from the documentation to develop the script.
– Add clear, descriptive comments throughout the code to enhance readability.
# Notes
– Adapt or substitute indicators based on the documentation’s available options.
– Ensure the script complies with exchange rules and legal requirements as stated.
– Include exception handling and logging for stability.
# Example
“`javascript
// Trading script for 1-minute buy/sell decisions
// Implements a simple moving average crossover
// Utilize documentation-specified indicators and commands
…
“`
Screenshot Examples
How to Use This Prompt
- Copy the prompt provided above.
- Review the linked documentation thoroughly.
- Extract key concepts and necessary commands.
- Write the trading script for a 1-minute timeframe.
- Optimize and test the script for accuracy.
- Ensure compliance with exchange rules and legal requirements.
Tips for Best Results
- Review Documentation: Thoroughly understand the scripting framework and available indicators.
- Extract Key Concepts: Identify essential commands and indicators for buy/sell logic.
- Write the Script: Initialize for a 1-minute timeframe and incorporate market indicators.
- Optimize and Test: Align with best practices, include error handling, and refine logic.
FAQ
- What is the first step in creating a trading script?
Review the documentation to understand the scripting framework and available indicators. - Which indicators might be used in the trading logic?
Common indicators include moving averages, RSI, and others specified in the documentation. - How should the script handle real-time market data?
The script should be designed to efficiently process real-time market data for trading decisions. - What should be included for script stability?
Incorporate error handling and logging to ensure stability and compliance with exchange rules.
Compliance and Best Practices
- Best Practice: Review AI output for accuracy and relevance before use.
- Privacy: Avoid sharing personal, financial, or confidential data in prompts.
- Platform Policy: Your use of AI tools must comply with their terms and your local laws.
Revision History
- Version 1.0 (February 2026): Initial release.


