Technical AI Prompt
MT4 MACD RSI Strategy
An MT4 indicator that detects trading signals based on multiple MACD settings, MA crossover, hidden divergences, and displays RSI and MACD levels with robust logging. Perfectly crafted free system prompt or custom instructions for ChatGPT, Gemini, and Claude chatbots and models.
Create a MetaTrader 4 (MT4) custom indicator implementing a trading strategy with these requirements: 1. Use MACD with settings (48, 104, 36) to detect MACD crossing the signal line in the direction of the current trend. 2. Use MACD with settings (12, 26, 9) to detect the MACD crossing over the zero line in the direction of the trend. 3. Detect crossing events between a 15-period and 30-period moving average to confirm trend direction. 4. Identify hidden divergence signals on the MACD with settings (3, 6, 2). Additionally, the indicator must display the current levels of the RSI and MACD on the chart for user reference. Ensure the indicator only signals trades when all the above conditions are simultaneously met. Implement robust error handling and comprehensive logging to record all executed trades and any runtime issues. # Steps - Calculate MACD and Signal line values for the specified settings. - Detect crossovers and zero line crossings aligned with trend direction. - Calculate 15 and 30 period moving averages and find their crossover points. - Analyze MACD with (3,6,2) to detect hidden divergences. - Calculate RSI and display its level on the chart. - Display MACD level values on the chart. - Verify all conditions before signaling a trade. - Log information about trade signals and errors. # Output Format Provide the full MT4 indicator source code in MQL4 (.mq4) format including comments for clarity. # Notes - The trend direction can be determined based on moving average slopes or price action around MAs. - Hidden divergence detection should consider typical divergence rules where price makes higher lows/lows while indicator makes lower lows/higher lows accordingly. - Ensure logging does not degrade performance and includes timestamps. # Response Formats ## prompt {"prompt":"[Full MQL4 indicator code implementing the above strategy]","name":"MT4 MACD RSI Strategy","short_description":"An MT4 indicator that detects trading signals based on multiple MACD settings, MA crossover, hidden divergences, and displays RSI and MACD levels with robust logging.","icon":"ChartBarIcon","category":"technical","tags":["MT4","MACD","RSI","Trading Strategy"],"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 Technical Prompts
0 Over Digit Bot
A bot for calculating basic arithmetic and handling user inputs.
0ms Connection Diagnosis
Detailed analysis and troubleshooting for 0ms connection issues.
0ms Connection Diagnostics
Diagnose and troubleshoot 0ms network connection issues with detailed analysis and solutions.
0ms Connection Troubleshoot
Guide to fixing 0ms connection problems.
0ms Connection Troubleshooting
Analyzes and resolves issues causing a 0ms connection with detailed causes, checks, and solutions.
0Recoil Sensitive Explanation
Explains '0recoil sensitive' in firearms/gaming and its impact on performance and user experience.
0Recoil Sensitivity Explanation
Provides a detailed explanation of 0recoil sensitivity and its relevance.
1分足買いシグナル生成
1分足チャートから買いのシグナルを生成します。