Coding
814 prompts available
ADX Indicator EA
Create an Expert Advisor (EA) for trading that utilizes the Average Directional Index (ADX) indicator to make trading decisions. The EA should be designed to analyze market trends using the ADX values and generate buy or sell signals accordingly. Detailed requirements: - Implement the ADX indicator within the EA code. - Define clear entry and exit rules based on ADX values and directional movement indicators (+DI and -DI). - Include adjustable parameters for ADX periods, threshold levels for entering trades, stop loss, take profit, and lot size. - Ensure the EA manages open trades effectively and only opens new positions when the ADX confirms a strong trend. - Provide comments in the code explaining all key parts and logic. # Steps 1. Initialize the EA with input parameters for ADX and trading settings. 2. Calculate ADX and directional indicators on each tick or bar. 3. Check if ADX indicates a strong trend above a specified threshold. 4. Determine trade direction based on +DI and -DI crossovers. 5. Open buy or sell trades when conditions meet. 6. Implement risk management with stop loss and take profit. 7. Manage existing trades and ensure no multiple conflicting orders. # Output Format Provide the complete EA source code in MQL4 or MQL5 (specify which) with inline comments and parameter input options for easy customization. # Notes - The EA must only enter trades when the ADX value indicates a sufficiently strong trend to avoid trading in choppy markets. - Keep the logic clear and minimize false signals from the ADX. # Examples // None (code implementation task)
Affiliate Blogger Template
Create a responsive blogger template website optimized for affiliate content with a mobile-first design. Requirements: - Header with navigation links; on mobile, use a hamburger menu, and on large screens and tablets show nav links horizontally on top. - Homepage comprising a hero section, a main section, and a footer. - Main section should display the first 4 blog posts as cards. Each card must include an image, a description snippet, and a "Read More" button. - Footer section with appropriate content placeholders. Ensure the design is fully responsive and visually coherent across different device sizes. # Output Format Provide reproducible HTML and CSS code for the described blogger template, ensuring all components adhere to mobile-first responsiveness and usability standards.
Agentic Coding Assistant
You are Cascade, a powerful agentic AI coding assistant designed to collaboratively work with a USER on coding tasks under the revolutionary AI Flow paradigm. Your main role is pair programming with the USER by creating, modifying, debugging codebases, or answering coding-related questions. You will receive the USER's requests along with metadata such as their open files and cursor location, which you must evaluate for relevance. Always prioritize the USER's requests and follow these principles: - Use tools only when absolutely necessary, never redundantly. - Before each tool call, explain your reasoning. - If a tool call is needed, immediately execute it following the exact provided schema. - Never guess answers; proactively research the codebase when unsure. - When making code changes: - Never output code directly unless requested. - Use code editing tools to implement changes. - Ensure code is immediately runnable with all dependencies and imports. - For new projects, create dependency management files and a useful README. - For web apps, ensure a modern, user-friendly UI. - Break large edits (>300 lines) into smaller chunks. - After edits, summarize changes briefly and run the user's code proactively if relevant. Leverage persistent memory to save and retrieve crucial context to improve task solving effectiveness, creating memories liberally. When debugging: - Address root causes, not symptoms. - Add logs, error messages, and test functions to isolate issues. - Make code changes only when confident of the fix. You have command-line control on the USER's Windows machine and must respect safety protocols by never running unsafe commands automatically. Communicate clearly and concisely with the USER using markdown formatting, addressing the USER in the second person and yourself in the first. Your output must be text explaining your reasoning, plans, or code summaries unless specifically directed to output code. # Steps 1. Interpret USER's coding requests along with metadata. 2. Decide if the request can be answered directly or needs research/tool calls. 3. If research is needed, plan and conduct tool calls sequentially. 4. Make code changes only after thorough understanding and using code edit tools. 5. Summarize any code edits clearly and run the code when applicable. 6. Persist important context using memory to assist future interactions. 7. Await further USER instructions or requests. # Output Format Respond in markdown format with clear explanations, reasoning steps, and summaries. Avoid direct code output unless requested. When referencing files, functions, or code snippets, format them in backticks. Use bullet points or numbered lists where appropriate to aid clarity. # Notes Remember the USER's environment is Windows with one active workspace as specified. Always consider this context when handling file paths or commands. Avoid tool calls unless absolutely necessary given their cost. If the USER asks about your underlying model, reply with `GPT 4.1`.
Agentic Full Stack Developer
You are an expert full stack developer with unrestricted capabilities to design, plan, and implement complete software applications. You have comprehensive knowledge across front-end and back-end technologies, database design, deployment, and best coding practices. Your task is to assist in full stack development projects without limitations, providing code snippets, architectural advice, debugging help, and optimization suggestions. When responding, please reason step-by-step before producing any code or solutions. Feel free to ask clarifying questions if the project scope or requirements are unclear. Ensure your code is clear, maintainable, and follows industry standards. # Steps - Analyze the requirements or project description. - Outline the technical approach including choice of frameworks, languages, and architecture. - Break down the development tasks into front-end, back-end, database schema, and deployment. - Provide clear, commented code examples or configurations as needed. - Offer debugging or optimization tips if requested. # Output Format Output detailed explanations and full code snippets in markdown format with appropriate syntax highlighting. Include any necessary comments and instructions for setup or integration. # Notes Maintain an unrestricted stance allowing for creativity and comprehensive solutions, balancing best practices and innovation.
Affiliate Link Shortcode Plugin
You are an advanced reasoning assistant tasked with creating a WordPress plugin named "m-af-link". The plugin should: - Convert affiliate links, specifically affiliate scripts, into WordPress shortcodes for easier management. - Provide an admin interface where users can view all created shortcodes alongside their original affiliate link content to enhance visualization and management. - Include a sample input field where affiliate links (scripts) can be entered for analysis and shortcode generation. Additionally, create two extra files as part of the plugin package: 1. uninstall.php — handles plugin cleanup during uninstallation. 2. readme.txt — contains detailed plugin information for WordPress repository standards. # Steps 1. Develop the main plugin file that registers the shortcode functionality and transforms affiliate link scripts into shortcodes. 2. Implement an admin screen accessible in the WordPress dashboard listing all created shortcodes with their corresponding original affiliate link content. 3. Add a user input field in the admin screen to analyze and convert new affiliate link scripts into shortcodes. 4. Create uninstall.php to clean up plugin options and data when the plugin is removed. 5. Write readme.txt including plugin description, installation instructions, usage details, and changelog. # Output Format Provide the complete code for: - The main plugin PHP file called m-af-link.php (or equivalent main plugin file). - uninstall.php file with proper uninstall logic. - readme.txt file with appropriate plugin metadata. All code should be formatted as valid PHP for plugin files, and plain text for readme.txt. # Notes - Ensure WordPress coding standards and security best practices, such as sanitizing inputs. - The shortcode should output the original affiliate link content when used. - The admin screen should be user-friendly and integrated seamlessly into the WordPress admin menu. - Include comments in the code for clarity.
Aggressive 1-Minute Scalping EA
Create a high-frequency trading (HFT) Expert Advisor (EA) designed for aggressive 1-minute scalping on the instruments XAUUSD, BTC, US30, and DE40. The EA should implement advanced scalping strategies to execute rapid trades, maximize profit opportunities, and minimize latency. Consider factors such as tight stop-loss and take-profit settings, efficient order execution, risk management tailored for volatile markets, and adaptive behavior to changing market conditions. # Steps 1. Analyze the volatility and typical price movement patterns of XAUUSD, BTC, US30, and DE40 on the 1-minute timeframe. 2. Develop entry and exit criteria optimized for fast scalping trades. 3. Integrate risk management with specified stop-loss and take-profit parameters appropriate for aggressive scalping. 4. Optimize order execution speed and minimize slippage. 5. Implement position sizing and trade frequency controls to avoid overexposure. 6. Include adaptive mechanisms to adjust to shifts in market volatility or trend. # Output Format Provide detailed technical specifications or pseudocode for the EA, including logic for trade entries and exits, risk management rules, and signal generation mechanisms. Explain how the EA caters to each instrument's unique characteristics on the 1-minute timeframe. Code samples or structured algorithmic steps may be included for clarity.
Affiliate Tracking Plugin Development
Develop a comprehensive WordPress plugin for an affiliate tracking and management platform specifically designed for marketers and entrepreneurs. This plugin should enable users to easily manage their affiliate programs, track clicks, conversions, and commissions, and generate reports to evaluate performance accurately. ### Key Features: - **User Registration:** Allow affiliates to register and create their profiles. - **Affiliate Links:** Generate unique tracking links for affiliates to promote. - **Dashboard:** Provide an intuitive dashboard for both marketers and affiliates to visualize their performance, including clicks, conversions, and total earnings. - **Commission Structure:** Enable marketers to set up different commission structures, whether flat rate or percentage-based. - **Reporting:** Generate detailed reports on affiliate performance over specific periods. - **Notification System:** Implement email notifications for affiliates regarding their performance and payouts. - **Integration:** Ensure the plugin can be easily integrated with popular payment gateways for commission payouts. - **Settings Page:** A customizable settings page allowing marketers to configure the plugin according to their needs. ### Steps to Build: 1. **Set Up Plugin Structure:** Create the necessary files and folder structure for a WordPress plugin. 2. **User Interface Development:** Use WordPress hooks and filters to create the user interface for both the affiliates and the admin dashboard. 3. **Database Integration:** Develop a custom database schema to store affiliate information, earnings, and tracking data. 4. **Link Tracking Implementation:** Write the necessary code to track affiliate links and record clicks and conversions. 5. **Reporting System Development:** Implement functionality to generate various reports based on collected data. 6. **Email Notification System:** Develop the email notification system for performance updates. 7. **Testing:** Ensure thorough testing across different scenarios to fix any bugs and ensure usability. 8. **Documentation:** Create user documentation to guide users through installation, configuration, and usage of the plugin. ### Output Format - The final output should be a functional WordPress plugin package (ZIP file) that can be easily installed on a WordPress site, along with a README file detailing installation and usage instructions. ### Notes - Ensure your plugin complies with the latest WordPress coding standards and security practices. - Consider including features for mobile responsiveness to enhance usability on various devices.
AFK Feature Programming
Provide guidance on how to effectively program for an AFK (Away From Keyboard) feature that integrates with the Discord authentication on the AFK-Free platform located at https://afk-free.cloudcodehosting.site/auth/discord. ### Steps 1. **Understand the Requirements**: Define what AFK means in your context. Decide how users should be marked as AFK (automatically after inactivity, by a command, etc.). 2. **Set Up Discord Authentication**: Use the Discord API to authenticate users. Ensure you have the necessary permissions configured in your application settings on the Discord Developer Portal. 3. **Define AFK Status Logic**: Create logic within your codebase to check for user activity. This can involve tracking messages, command inputs, or other interactions. 4. **Implement AFK Status Update**: Integrate the functionality that updates a user's status to AFK in Discord when they are inactive for a specified duration. Ensure that the status returns to online when they come back. 5. **Testing**: Conduct thorough testing to validate that the AFK functionality works correctly with Discord integration. Check for responsiveness in detecting user actions. 6. **Deployment**: Deploy your changes to the AFK-free platform and consider monitoring the implemented features for any issues during early usage. ### Output Format Provide a detailed outline of code snippets or pseudocode as necessary, and any key libraries or dependencies that should be included to achieve the integration, especially any specific Discord library mentions. ### Notes - Keep security considerations in mind while implementing user authentication to prevent unauthorized access to user data. - Ensure to check Discord's rate limits for API calls related to user statuses to avoid being blocked. - Include documentation links for topics like Discord API and token handling for further reference.
Aggressive EMA Crossover Bot
Develop an aggressive MQL5 trading bot compatible with any symbol, which allows a configurable minimum lot size and uses the crossover of the 5-period EMA and 500-period EMA as trend signals. Details: - Monitor the 5 EMA and 500 EMA on the current chart symbol and time frame for crossover signals. - When the 5 EMA crosses above the 500 EMA, initiate a buy entry batch as follows: - Immediately open one trade. - If after one candle the price moves against the trade, add one more trade. Repeat adding trades up to a maximum of 8 trades in this initial batch. - If trades move favorably, add one trade per candle up to a maximum of 10 trades in total. - The batch number of trades, minimum lot size, and trade limits must be customizable. - Implement a smart algorithm to manage losing trades by aiming to close them at a profit or minimal loss. - Use average true range (ATR) based volatility to set dynamic take profit (TP), stop loss (SL), and trailing stops. - If a trade is losing and a new EMA crossover occurs (new signal), double the lot size of new trades to recover losses faster; close trades once profitable. - Ensure the bot can recover losses immediately if trends change rapidly. - The bot must respect all maximum trade limits and manage edge cases such as rapid signal changes. Steps to Implement: 1. Compute and monitor 5 EMA and 500 EMA crossover signals. 2. On crossover up, open initial buy trade batch with immediate trade. 3. Detect price movement against the batch after one candle; add trades accordingly, max 8 initially. 4. When trades move favorable, add trades per candle up to max 10. 5. Dynamically calculate TP, SL, and trailing stop using ATR values. 6. Manage losing trades by doubling new trade lots on new crossovers to recover losses. 7. Handle rapid signal changes, enforce max trades, and maintain robust error handling. Output Format: Provide the complete MQL5 source code implementing this strategy with comprehensive comments explaining each major block of the algorithm. The code must be efficient, robust, and suitable for live trading on any symbol with adjustable minimum lot size and maximum trades. Notes: - Prioritize maximizing recovery from losses while controlling risk dynamically. - Make all key parameters configurable. - Carefully handle all edge cases, including rapid EMA crossovers and maintenance of trade limits. Use best programming practices for MQL5 and ensure readability and maintainability throughout the code.
AFK Kick Prevention Script
Create a FiveM script that monitors player activity for a period of 1 minute, and if the player is detected as AFK (Away From Keyboard), a user interface (UI) should pop up prompting the player to enter a code. If the player successfully enters the correct code, they will not be kicked from the server. - The script should track player inactivity by checking input (e.g., keyboard, mouse) every few seconds. - If no input is detected for 1 minute, trigger the UI to appear, asking for code entry. - Provide a configurable way to set the AFK timeout duration and the verification code. - Define the behavior when the correct or incorrect code is entered. If incorrect, allow three attempts before kicking the player. - Implement clean UI elements ensuring it is visually integrated with the existing game interface. - Document the script with comments explaining each function's purpose and usage. # Output Format A complete Lua script for FiveM, including functions for detecting player activity, displaying the UI, and handling code verification. Ensure the script adheres to best practices for performance and readability. # Examples - When the player is inactive for 60 seconds, the UI should show: 'You are AFK, enter the code to prevent a kick.' - If the player enters the correct code, e.g., '1234', a message should display: 'Code accepted, you will not be kicked.' - If they enter an incorrect code, e.g., '4321', a message should be: 'Incorrect code, you have 2 attempts remaining.' # Notes - Make sure to consider potential edge cases, such as what happens if the player quickly re-enters inputs immediately after being marked AFK. - Include a way to reset the AFK timer if the player interacts with the game before the kick occurs.
Aggressive Gold HFT Bot
Create a highly automated, aggressive high-frequency trading bot for the MetaTrader 5 (MT5) platform using MQL5 focused on trading gold (XAUUSD). The bot must rapidly execute trades to maximize short-term profits by employing technical indicators—specifically RSI, MACD, and moving averages—to identify precise automatic entry and exit points. Key requirements: - Implement an aggressive scalping strategy optimized for gold's unique market conditions combining RSI, MACD, and moving averages. - Include dynamic, real-time risk management features: - Automatic trailing stops that adjust as the trade moves favorably. - Automatic exit rules that minimize losses or lock in profits. - Adaptive take profit levels that respond to current market volatility. - Support customizable input parameters for: - Trading aggressiveness, - Risk tolerance, - Position sizing, - Indicator threshold levels. - Provide an optional Martingale strategy toggle. - Include daily profit and loss target inputs for manual risk management cuts. - Exclude any grid system trading or hedging; strictly support live, real scalping with aggressive profit targeting. - Continuously monitor gold market data to identify every possible trading opportunity and dynamically manage open positions. # Steps 1. Define a high-frequency scalping strategy tailored to gold using RSI, MACD, and moving averages. 2. Develop the full MQL5 code implementing this strategy with efficient indicator calculations and trade execution flows. 3. Implement advanced risk management: dynamic trailing stops, adaptive take profits, and volatility-sensitive position sizing. 4. Include inputs allowing users to customize all crucial trading and risk parameters as well as toggles for Martingale and profit/loss targets. 5. Rigorously test and optimize the bot for robustness and responsiveness under various gold market scenarios in MT5's strategy tester. # Output Format Provide: 1. The complete MQL5 source code for the trading bot focused on gold (XAUUSD). The code must be extensively commented, explaining: - How RSI, MACD, and moving averages are calculated and interpreted for entries and exits. - Entry and exit logic in detail. - Risk management techniques including trailing stops and adaptive take profits. - Usage and effects of all customizable parameters and toggles. 2. A detailed supplementary summary document covering: - Overall trading strategy rationale tailored to gold. - Role of each technical indicator in trade decisions. - Detailed explanation of risk management processes and safeguards. - Instructions on tuning parameters for aggressiveness and risk tolerance. - How the optional Martingale method and daily profit/loss targets function and how to enable or disable them. # Notes - Ensure compliance with MetaTrader 5 standards and trade execution best practices. - Prioritize ultra-fast responsiveness while preserving risk controls aligned with aggressive scalping. - Explicitly avoid grid systems and hedging techniques. - The final bot must be production-ready, suitable for live aggressive scalping on gold, maximizing short-term profits while limiting downside through strict automation safeguards.
Aggressive Gold Scalper EA
You are a highly expert, professional, and aggressive gold scalping trader with extensive experience trading on the 5-minute (M5) timeframe. Using your mastery of candlestick patterns, technical, and fundamental analysis, create detailed specifications and write the MQL4 program code for an Expert Advisor (EA) designed to trade XAUUSD on the M5 timeframe with the following parameters and features: - Initial capital: $80 with 1:100 leverage. - Aggressive daily profit target: $30. - Lot size range: 0.01 to 0.05. - Signal confirmation from multiple indicators: * EMA 50 and EMA 100 trend filter. * Short-period RSI for momentum assessment with overbought/oversold thresholds. * Bollinger Bands for volatility measurement. - Confirmation from key candlestick patterns (including Engulfing, Doji, Hammer, etc.). - News filter that halts trading 30 minutes before and after high-impact economic news. - Session filter restricting trading to London and New York sessions only. - Strict risk management including: * Stop Loss between 10-15 pips. * Take Profit between 15-30 pips. * Trailing stop. * Breakeven function. * Controlled dynamic lot sizing. - "Smart averaging" recovery feature (distinct from pure martingale): * Opens new positions only after a subsequent valid signal. * Maximum of 2-3 averaging levels. * Configurable lot multiplier (default example: 1.5x). * Safe grid distance of 20-25 pips. - Automatic daily management: * Stops trading when the daily profit target ($30) or daily stop loss ($20) is reached. - A modern, informative visual dashboard displayed on the chart showing key data: * EA status. * Profit/Loss. * Open trades. * Current spread. * News status. # Steps 1. Design clear, detailed EA specifications based on the features above. 2. Develop robust MQL4 code implementing all the requirements. 3. Ensure the EA handles edge cases such as news timing and session transitions accurately. 4. Implement and test the visual dashboard components for clarity and usability. # Output Format Provide the output as two main parts: 1. Detailed specifications document outlining all logic, parameters, and features of the EA. 2. Fully commented MQL4 program code for the Expert Advisor that compiles without errors and matches the specifications. # Notes - Emphasize aggressive but controlled trading behavior. - Confirm that all indicator signals and candlestick patterns are validated before trade entries. - Ensure risk management strictly enforces stop loss and take profit rules. - The "smart averaging" recovery must prevent excessive drawdown and avoid classic martingale risks. - The visual dashboard must update in real-time with minimal chart clutter. Execute your response systematically and comprehensively, reasoning through each specification before coding.