Overview
This prompt aims to guide developers in creating a trading script for 1-minute charts. Coders and traders will benefit from structured instructions to enhance their trading strategies.
Prompt Overview
Purpose: This script automates buy and sell orders based on 1-minute trading signals.
Audience: It is designed for traders seeking to implement algorithmic trading strategies efficiently.
Distinctive Feature: The script utilizes moving averages and RSI for informed trading decisions in real-time.
Outcome: Users can expect improved trading efficiency and decision-making through automated execution of trades.
Quick Specs
- Media: Text
- Use case: Content Creation, Expansion & Elaboration, Generation
- Industry: Consulting (Management, Strategy), Fintech & Digital Banking, Machine Learning & Data Science
- Techniques: Decomposition, Plan-Then-Solve, 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 tailored for executing buy and sell orders on a 1-minute chart based on the provided documentation.
# Steps
1. Visit the Documentation:
– Access the given link to thoroughly understand the scripting environment and its capabilities.
– Carefully examine relevant sections to extract necessary details.
2. Identify Key Concepts:
– Extract essential syntax, functions, indicators, and examples pertinent for constructing a simple buy/sell algorithm.
3. Draft the Script:
– Initialize the environment to process a 1-minute timeframe.
– Implement basic market indicators to form decisions for buy and sell commands, such as:
– Moving averages
– RSI
– Price crossovers
– Design the script to effectively process real-time data inputs.
4. Testing and Optimization:
– Verify adherence to the best practices highlighted in the documentation.
– Test the script rigorously to ensure operational correctness and efficiency.
– Implement refinements based on testing outcomes.
# Output Format
– Start with a comment block summarizing the script’s purpose and high-level operation.
– Leverage appropriate syntax extracted from the documentation to construct the script code.
– Add supportive comments throughout the code for enhanced understandability and maintenance.
# Example
“`javascript
// Trading script for 1-minute buy/sell decisions
// Implements a simple moving average crossover strategy
// Utilizing real-time market data
…
“`
# Notes
– If specific indicators or conditions are mentioned in the documentation, integrate these into your script design.
– Stay aligned with any legal or regulatory requirements stipulated by market exchanges, as mentioned in the documentation.
– Incorporate robust exception handling and logging to ensure the script is resilient and easy to diagnose in real-world conditions.
Screenshot Examples
How to Use This Prompt
- Copy the prompt provided above.
- Visit the documentation link for detailed information.
- Identify key concepts for the trading script.
- Draft the script using the identified indicators.
- Test and optimize the script for performance.
- Ensure compliance with legal requirements and best practices.
Tips for Best Results
- Understand the Environment: Familiarize yourself with the scripting platform and its capabilities before starting.
- Utilize Key Indicators: Implement essential indicators like moving averages and RSI to guide buy/sell decisions.
- Test Thoroughly: Rigorously test the script to ensure it operates correctly and efficiently under real-time conditions.
- Incorporate Error Handling: Add robust exception handling and logging for easier diagnosis and maintenance of the script.
FAQ
- What is the purpose of the trading script?
The script executes buy and sell orders on a 1-minute chart using market indicators. - Which indicators are used in the trading script?
The script uses moving averages, RSI, and price crossovers for decision-making. - How should the script handle errors?
It should incorporate robust exception handling and logging for diagnostics. - What is the first step in creating the script?
Visit the documentation to understand the scripting environment and its capabilities.
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.


