Programming & Code AI Prompt
1-Minute Trading Script Generator
Generates a buy/sell trading script for 1-minute charts based on documentation guidelines. Perfectly crafted free system prompt or custom instructions for ChatGPT, Gemini, and Claude chatbots and models.
Create a trading script designed for making buy and sell decisions on a 1-minute chart timeframe, using the guidelines and scripting framework provided in the supplied documentation link.
To complete this task, follow these detailed steps:
1. **Visit the Documentation**: Access the provided documentation link and thoroughly study all relevant sections to understand the available scripting framework, syntax, functions, and financial indicators.
2. **Identify Key Concepts for the Script**:
- Extract and note the scripting syntax required.
- Identify built-in functions, indicators (e.g., moving averages, RSI), and any specific market data handling methods.
- Understand how to set the timeframe specifically to 1-minute charts.
3. **Develop the Trading Script**:
- Set up the script environment explicitly for a 1-minute timeframe.
- Use technical indicators or market conditions such as simple moving averages crossover or RSI thresholds as buy/sell triggers.
- Incorporate logic to process real-time market data efficiently.
4. **Refine and Optimize the Script**:
- Follow any best practices mentioned in the documentation to optimize performance and maintainability.
- Implement appropriate exception handling and logging as specified.
- Test and iteratively refine the script to enhance accuracy and handle edge cases.
5. **Adhere to Legal and Exchange Regulations**:
- Ensure the script usage aligns with any compliance or legal requirements discussed in the documentation.
# Output Format
- Begin the output with a brief comment describing the script's purpose and scope.
- Write the complete script using correct syntax and conventions from the documentation.
- Include clear, descriptive comments throughout the code to explain logic and facilitate readability.
# Notes
- Preferably use indicators and functions featured in the documentation to ensure compatibility.
- Include error handling and logging functionality to make the script robust and debuggable.
- The script should be concise but comprehensive enough to be immediately usable or easily adaptable.
# Example
```javascript
// Trading script for 1-minute chart buy/sell decisions
// Implements a simple moving average crossover strategy
// Uses documented functions and syntax for indicator calculation and order execution
// [Sample code skeleton based on documented framework]
function onTick() {
// Calculate moving averages
let shortMA = sma(close, 5);
let longMA = sma(close, 20);
// Check crossover conditions
if (shortMA > longMA && !positionOpen) {
// Execute buy order
buy();
log('Bought at ' + close);
} else if (shortMA < longMA && positionOpen) {
// Execute sell order
sell();
log('Sold at ' + close);
}
}
// Initialize 1-minute timeframe
setTimeframe('1m');
// Start script
start(onTick);
```
Use this template as a foundation, adapting exact function names and logic according to the documentation details provided.
{name: "1-Minute Trading Script Generator", short_description: "Generates a buy/sell trading script for 1-minute charts based on documentation guidelines.", icon: "CodeBracketIcon", category: "programming", tags: ["Trading", "Scripting", "Finance", "1MinuteChart"], should_index: true}Create your own custom GPT chatbot with your own data and knowledge. Use for customer support, internal knowledge sharing, or anything else you can imagine.
More Programming & Code Prompts
1-Minute Scalping EA
Generates an MT4/MT5 Expert Advisor for 1-minute scalping with SL and TP settings.
1-Minute Trading Script
Creates a script for trading on a 1-minute chart using documentation guidelines.
1-Minute Trading Script
Creates a trading script for 1-minute chart buy/sell actions using provided documentation.
1-Minute Trading Script
Creates a script for buying/selling on a 1-minute chart using technical indicators.
1-Minute Trading Script
Generate a trading script for a 1-minute chart.
1-Minute Trading Script
Guidelines to create a trading script for 1-minute charts.
1-Minute Trading Script
Generate a 1-minute buy/sell trading script using documentation.
1-Minute Trading Script
Generates a trading script to automate buy/sell actions on a 1-minute chart.




