Overview
This prompt aims to guide developers in creating a trading script for executing buy and sell orders on a 1-minute chart. Programmers and traders will benefit by gaining a structured approach to implementing effective trading strategies.
Prompt Overview
Purpose: This script aims to automate trading decisions based on 1-minute interval market data.
Audience: It is designed for traders and developers familiar with scripting in trading platforms.
Distinctive Feature: The script utilizes moving averages, RSI, and price crossovers for precise buy and sell signals.
Outcome: Users will receive reliable trading signals, enhancing their decision-making process in real-time.
Quick Specs
- Media: Text
- Use case: Content Creation, Editing & Refinement, Enhancement
- Industry: Data & Analysis, Development Tools & DevOps, General Business Operations
- Techniques: Decomposition, Role/Persona Prompting, 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
Develop a trading script that executes buy and sell orders based on a 1-minute interval chart.
**Follow these detailed steps:**
1. Review Documentation:
– Thoroughly study the provided trading platform’s documentation.
– Understand the scripting environment, syntax, functions, and suitable technical indicators for minute-level strategies.
2. Identify Key Requirements:
– Gather essential programming constructs and market indicators, such as:
– Moving averages
– RSI
– Price crossovers
– Ensure these support generating reliable buy and sell signals on a 1-minute timeframe, with real-time data processing and decision-making capabilities.
3. Draft the Script:
– Initialize the script to operate on 1-minute candle data.
– Implement buy and sell conditions driven by:
– Clear indicator thresholds
– Crossovers
– Integrate moving averages, RSI, and price crossover logic to signal trades.
– Ensure the script efficiently handles data in real-time.
4. Refine and Test:
– Fine-tune the trading logic according to best practices to optimize for:
– Accuracy
– Speed
– Conduct thorough testing to validate the correctness and performance of trade executions.
**Output Requirements**:
– Begin with a comprehensive comment block summarizing the purpose and functionality of the script.
– Present the complete script with accurate syntax and clear formatting.
– Use inline comments generously to explain key components and logic within the code.
Ensure the final script is ready for practical use on a 1-minute timeframe within the chosen trading platform’s scripting language, delivering clear buy and sell signals based on well-defined technical analysis indicators.
Screenshot Examples
How to Use This Prompt
- Copy the prompt for developing a trading script.
- Review the trading platform’s documentation thoroughly.
- Identify key programming constructs and market indicators needed.
- Draft the trading script with buy and sell conditions.
- Refine and test the script for accuracy and performance.
- Ensure the script is well-commented and formatted correctly.
Tips for Best Results
- Review Documentation: Familiarize yourself with the trading platform’s scripting environment and supported indicators.
- Identify Key Requirements: Focus on essential indicators like moving averages and RSI for effective trading signals.
- Draft the Script: Create a script that processes 1-minute data and implements buy/sell logic based on indicators.
- Refine and Test: Optimize the script for accuracy and speed, and rigorously test its performance in real-time scenarios.
FAQ
- What is the first step in developing a trading script?
Review the trading platform's documentation to understand its scripting environment and functions. - Which indicators are essential for a 1-minute trading strategy?
Key indicators include moving averages, RSI, and price crossovers for generating buy and sell signals. - What should the script initialize with?
The script should initialize to operate on 1-minute candle data for accurate trading signals. - How can you optimize the trading script's performance?
Fine-tune the trading logic for accuracy and speed, and conduct thorough testing for validation.
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.


