Back to Learning

Coding

814 prompts available

Advanced EA Specification

You are a professional algorithmic trader with expert experience in developing advanced Expert Advisors (EAs) for MetaTrader 5, specializing in complex machine learning-based trading strategies for Forex markets. Your task is to design the next-generation Expert Advisor named "Humming-Ai," which is engineered for high-frequency trading characterized by speed, precision, and continuous subtle market activity, aiming for small yet consistent profits. This EA combines classical quantitative finance principles with cutting-edge machine learning models to analyze complex, non-linear market relationships beyond traditional indicator-based approaches. The "Humming-Ai" EA should incorporate the following detailed features: 1. Core Trading Strategy: - Focus on high-frequency mean reversion and momentum capture on the 5-minute timeframe to exploit fleeting price inefficiencies. - Utilize advanced order flow analysis including Volume Profile, Cluster Analysis, and Depth of Market (DOM) data available in MT5 to identify short-term supply and demand imbalances. - Implement mean reversion techniques detecting significant deviations from short-term moving averages or price channels, expecting rapid price reversion. 2. Adaptive Risk Management: - Employ an AI-driven component dynamically adjusting position sizing and stop-loss/take-profit levels based on current volatility, using ATR scaled by the AI model. - Use Gaussian Mixture Models (GMM) for reversal classification and trend-following indicators for trend detection, combining these with mean reversion logic for robust trade confirmation. - Implement an ensemble decision system where agreement between models leads to higher confidence trades, while divergence prompts position size reduction or skipped trades. - The AI acts primarily as a filter, evaluating the robustness of signals from conventional indicators or price action rather than generating raw signals. 3. Algorithmic Execution and Structure: - Incorporate code to efficiently manage slippage and execution speed, critical in high-frequency trading. - Use intelligent entry logic based on pattern recognition from ML models or historically validated price action sequences, avoiding reliance on simple indicator crossovers. - Integrate partial profit-taking with quick breakeven stop-loss adjustment to maintain an approximately 80% win rate on initial trade portions. 4. Indicators and Data Inputs: - Standard indicators include ATR and Bollinger Bands for volatility measurement and optimal trade sizing, and fast momentum oscillators such as Stochastic with very short settings or a customized RSI focused on recent bars. - Monitor real-time volume and liquidity data, utilizing MetaTrader 5 native functions for Level 2 market depth information. - Use multiple timeframes synergistically: daily (D1) for macroeconomic alignment and pivot avoidance, hourly (H1) for trend bias, and 5-minute (M5) for precise entry triggers. 5. Machine Learning and Proprietary Techniques: - Engineer features representing complex relationships between standard indicators (e.g., rate of change of stochastic relative to ATR). - Utilize ML models producing probability outputs for price movement rather than traditional threshold triggers, e.g., trade if ML model indicates a 90% probability of a 5-pip increase within the next 5 minutes. - Include intermarket and correlation analysis for major currency pairs and related assets, automatically detecting and capping simultaneous exposure in correlated pairs or instruments. Deliver a comprehensive description of the "Humming-Ai" EA architecture, algorithmic logic, machine learning integration, risk management, and overall strategy implementation suitable for a skilled development team to begin coding and deploying the EA on MT5. # Steps 1. Outline the hybrid strategy integrating mean reversion, momentum, and machine learning classification. 2. Define the AI component’s role in risk management and signal filtering. 3. Describe algorithmic execution techniques including slippage mitigation and intelligent entries. 4. Specify indicator selection and multi-timeframe synergy. 5. Detail feature engineering and ML model outputs guiding trade decisions. 6. Explain intermarket correlation and exposure controls. 7. Summarize the practical approach to partial profit-taking and stop-loss management. # Output Format Provide the response as a detailed technical specification document, with clearly labeled sections for each of the above aspects. Use markdown formatting with headers, bullet points, and numbered lists where appropriate. Avoid prose verbosity; prioritize clarity and precision. Include any key formulas, model descriptions, or pseudo-code snippets to convey algorithmic logic clearly. # Notes Ensure that all ML model references are clearly conceptual and suggest realistic ML methods compatible with real-time trading in MT5. Emphasize robustness and practical implementation constraints relevant to high-frequency forex trading.

Advanced C# Scenario

Create a transformative and innovative C# programming scenario that encompasses complex and advanced terminology, enhancing the conceptual understanding of modern software development paradigms. ## Steps 1. Identify a challenging and impactful situation in software development that necessitates advanced C# programming skills, such as optimizing performance for complex algorithms, or integrating cutting-edge technologies. 2. Use sophisticated vocabulary and technical jargon relevant to the current software industry trends, ensuring accuracy and relevance to the scenario chosen. 3. Formulate the scenario as a thought-provoking challenge, encouraging deep thinking and reflection from experienced developers. 4. Provide a suggested strategy or framework for addressing the challenge, utilizing high-level C# concepts and best practices. ## Output Format - A structured description of the programming scenario, framed as a challenge. - Clear and precise usage of advanced C# terminologies. - Include bullet points for strategies, frameworks, or approaches to solve the challenge.

Add Trend Confirmation Parameters to EA

Enhance the existing Expert Advisor (EA) bot by integrating trend confirmation indicators including Moving Average (MA), Average Directional Index (ADX), Moving Average Convergence Divergence (MACD), Parabolic SAR, and Ichimoku Cloud. For each indicator, implement a separate enable/disable parameter allowing users to toggle the use of each confirmation method individually. Group all these indicator toggles under a single 'Trend Confirmation' section in the EA's parameter list for organized and clear configuration. Steps: 1. Add parameters for each trend confirmation indicator with clear names (e.g., "Enable MA", "Enable ADX", etc.) and default values (e.g., true/false). 2. Update the EA logic to respect these parameters by including or skipping trend confirmation checks accordingly. 3. Organize these parameters into a dedicated 'Trend Confirmation' group or folder in the EA input settings. 4. Validate that the EA correctly recognizes the parameter states and applies trend confirmation only if enabled. Output Format: Provide sample code snippets illustrating the parameters' declarations and their conditional integration within the EA's trading logic. Additionally, describe how the parameter grouping is represented in the code or input settings. Example: ```mql // Parameters grouped under Trend Confirmation input bool enableMA = true; // Enable Moving Average confirmation input bool enableADX = false; // Enable ADX confirmation // ... other parameters // Sample usage in trading logic if(enableMA) { // Execute MA trend confirmation check } if(enableADX) { // Execute ADX trend confirmation check } ``` Notes: - Ensure clarity in parameter naming for user-friendly toggling. - Maintain backward compatibility if required. - Confirm that disabling all trend confirmations results in the EA functioning without these filters.

Advanced FiveM Fishing System

Create a comprehensive, advanced Fishing System for FiveM that offers a realistic, cinematic, and fully interactive fishing experience with persistent data stored in a full SQL database. The fishing system must include the following components and features: 1. **Fishing Core System:** - Implement an interactive fishing mechanic featuring skill checks, reaction-time events, tension bars, and quick-time event (QTE) mini-games. - Provide realistic fishing rod casting with synchronized animations, sound effects, water splash effects, and physically believable fishing line dynamics. - Include multiple fish species categorized by rarity tiers, with associated attributes such as weight, size, and value. - Dynamic fish spawning that responds to variables like time of day, weather conditions, fishing zone, and bait type selected. - Model rod damage incorporating durability reduction and break chances influenced by line tension. 2. **Fishing Zones:** - Configure diverse fishing zones (e.g., river, lake, ocean, deep-sea) each with custom loot tables. - Support boat fishing and exclusive deep-water species. - Include an optional diving mode enabling players to catch rare underwater fish. 3. **Progression & Economy:** - Design an XP and level system unlocking rods, baits, and perks. - Integrate shops where players can buy rods, upgrades, bait, and accessories. - Create a selling system with dynamic pricing, rarity-based multipliers, and daily special bonuses. - Provide compatibility with ESX and QBCore frameworks and standalone mode. 4. **NUI (HTML/CSS/JS):** - Build a modern, animated user interface encompassing: • Fishing mini-game display • Fish inventory management • Rod and bait selection interface • Catch results highlighting rarity via color, weight, and price • A fish encyclopedia showing stats, info, and spawn schedules - Utilize smooth futuristic animations and immersive sound effects. 5. **Config File:** - Make system parameters fully configurable including: • Rod tiers • Bait effects and bonuses • Weather multipliers • XP gain rates • Rarity tables • Fishing areas and coordinates • UI themes and colors • Option to enable or disable advanced mode 6. **Server Logic (SQL Required):** - Persist all caught fish data in the database. - Save player fishing stats such as XP, level, unlocked items, and achievements. - Securely validate all catches, rarity rolls, XP gains, and selling transactions. - Define SQL tables: fishing_players, fishing_inventory, fishing_logs, fishing_leaderboard. 7. **Client Logic:** - Manage player interactions with fishing spots including casting, waiting, bite detection, reaction QTEs, and catching animations. - Employ cinematic camera angles especially for legendary and rare catches. - Add water splash visual effects and rod tension indicators. 8. **Extra Features:** - Introduce ultra-rare legendary fish with a 0.01% spawn chance. - Implement fishing tournaments utilizing the SQL leaderboard. - Send notifications to Discord webhook upon rare catches. - An achievement system awarding badges and rewards. - Seasonal fish that appear exclusively in summer or winter. 9. **Output Structure:** Generate complete code and files for the fishing system including: 1) fxmanifest.lua 2) config.lua 3) client/main.lua 4) server/main.lua 5) html/index.html 6) html/style.css 7) html/script.js 8) fishing.sql - Full SQL database schema and seed data 9) README.md - Installation and setup guide with clear instructions Additional Requirements: - Ensure all code is clean, modular, well-documented, and optimized. - Compatibility with ESX, QBCore, and standalone environments. - The gameplay should be cinematic, smooth, immersive, and enjoyable. # Steps - Design the data schema for persistence reflecting players, inventory, logs, and leaderboards. - Develop server-side logic to handle database interactions, validations, and secure transactions. - Implement client-side logic for fishing mechanics including animations, QTEs, camera controls, and visual effects. - Build configurable zones and dynamic spawning relying on weather and time. - Create the NUI front-end with responsive, animated UI and relevant sound effects. - Integrate progression systems, shops, economy, and achievements. - Include webhook integration for Discord notifications. - Provide a detailed README covering installation, configuration, and usage. # Output Format Provide all code files explicitly as listed above with clear comments and modular structure, including the SQL file defining tables and seed data, and a README.md markdown file with installation instructions. # Notes - Preserve security best practices for database communication and user data. - The system must run smoothly in FiveM environments and adapt to ESX or QBCore if detected. - All UI elements should be modern and visually appealing with smooth animations.

Advanced C# Scenario Creator

Your task is to create a transformative and innovative C# programming scenario that encompasses complex and advanced terminology, enhancing the conceptual understanding of modern software development paradigms. Please identify a challenging and impactful situation in software development that necessitates advanced C# programming skills, such as optimizing performance for complex algorithms or integrating cutting-edge technologies. In your scenario, utilize sophisticated vocabulary and technical jargon relevant to the current software industry trends, ensuring accuracy and relevance to the chosen challenge. Formulate the scenario as a thought-provoking challenge that encourages deep thinking and reflection from experienced developers. Additionally, provide a suggested strategy or framework for addressing the challenge, utilizing high-level C# concepts and best practices.\n\n**Structure to Follow:**\n\n- **Programming Scenario Description:** Provide a concise description of the scenario, including its goals and technical intricacies.\n\n- **Challenge Statement:** Clearly state the main challenge or problem to be addressed.\n\n- **Advanced C# Terminologies Used:** List several advanced C# concepts and terminology that will be employed in the scenario.\n\n- **Suggested Strategies/Frameworks:** Offer several strategies or frameworks that leverage high-level C# skills to tackle the challenge.\n\nEnsure that your crafted scenario is clear, concise, and structured effectively for experienced developers.

Advanced EA with ML & Fundamentals

Create a detailed Expert Advisor (EA) for trading that incorporates both fundamental and advanced logic, including but not limited to Object-Oriented Programming (OOP), Neural Networks, and Machine Learning techniques. The EA should demonstrate how to integrate fundamental analysis (such as economic indicators, news data, or other relevant market fundamentals) alongside advanced quantitative methods to make trading decisions. The EA design should cover the following aspects: - Use Object-Oriented Programming principles to structure the code for maintainability and extensibility. - Incorporate Neural Network models to analyze patterns and predict market movements, explaining how the model is trained and used. - Apply Machine Learning algorithms to refine the strategy dynamically based on data. - Combine fundamental data inputs effectively with technical and machine learning indicators. - Provide clear comments and explanations within the code to illustrate how each part contributes to the overall EA logic. # Steps 1. Outline the EA architecture using OOP concepts, defining classes and design patterns. 2. Show how to fetch and process fundamental data for integration. 3. Create or integrate a Neural Network component, explaining its input features and training process. 4. Implement machine learning logic to adapt the trading decisions dynamically. 5. Combine outputs from fundamental analysis and machine learning models to generate buy/sell signals. 6. Demonstrate backtesting or example usage of the EA with sample data. # Output Format Provide the complete EA code with comprehensive inline comments explaining: - The OOP structure and design decisions. - How fundamental data feeds into the system. - The setup and application of Neural Networks and machine learning techniques. - The combined logic that eventually triggers trade actions. Additionally, include a detailed explanation or documentation section describing the logic and methodologies used. # Notes - Assume the user is familiar with standard trading platform programming languages such as MQL4/MQL5 or an equivalent. - Use placeholder datasets or APIs for fundamental data if live data integration is complex. - Highlight best practices in coding, model training, and strategy validation.

Advanced FiveM Gang System

Create an advanced FiveM gang system that includes the following features: 1. **Gang Management:** Allow players to create, join, and leave gangs, with roles such as leader, lieutenant, and members. 2. **Shop System:** Implement gang-specific shops where members can buy weapons, ammunition, and gang-related items, with proper currency and permissions. 3. **Garage System:** Provide gang-owned garages where members can store, retrieve, and manage gang vehicles securely. 4. **Permissions & Access Control:** Ensure that sensitive actions like accessing shops and garages are restricted based on gang membership and roles. 5. **Customization:** Allow customization of gang properties, such as gang names, colors, and emblems. 6. **Integration:** Ensure the system integrates smoothly with existing FiveM frameworks and supports saving persistent data. # Steps - Design the database schema to store gangs, members, vehicles, and shop inventory. - Develop server-side scripts to handle gang operations, permissions, and data persistence. - Create client-side interfaces for gang management, shop browsing/purchasing, and garage interactions. - Implement security checks to prevent unauthorized access or exploitation. - Test the system thoroughly in multiplayer scenarios. # Output Format Provide the full source code files, including server scripts, client scripts, configuration files, and any SQL migration scripts, along with installation and usage instructions.

Advanced Caesar Cipher Web App

Create a highly optimized and advanced Caesar cipher implementation in JavaScript, presented as a complete single-page web application. Requirements: - Implement both encryption and decryption functionality. - Provide an intuitive user interface allowing users to input text, specify the shift key (numeric), and select encrypt or decrypt operations. - Ensure the cipher handles uppercase and lowercase letters correctly without affecting non-alphabetic characters. - Optimize the JavaScript code for performance and readability. - Make the UI responsive and user-friendly. - Include descriptive labels, clear instructions, and feedback for invalid inputs. Steps: 1. Build the HTML structure containing input fields for text and shift key, buttons for encrypt and decrypt, and an area to display the results. 2. Write JavaScript functions for Caesar cipher encryption and decryption, properly handling edge cases. 3. Attach event listeners to trigger encryption or decryption based on user selection. 4. Style the page with CSS for a clean and accessible look. Output Format: - Deliver the full HTML file content combining HTML, CSS, and JavaScript in one page. - Include comments in the code explaining key parts and optimizations. Example: Provide a short example in the UI description area such as "Encrypt 'Hello' with a shift of 3 results in 'Khoor'" to guide users. Notes: - Do not use external libraries; use plain JavaScript and CSS. - Ensure the cipher supports shift wrapping from Z to A.

Advanced Ecommerce App Prompt

Create a detailed and professional paragraph prompt instructing Gemini to generate code for a fully functional, advanced e-commerce application. The prompt must encompass all essential components of an e-commerce platform, emphasizing it as an "Ecommerce App," "Advanced App," and "Fully Functional App." Ensure the paragraph is approximately 73 words, clearly conveying the context and requirements to build a robust, comprehensive e-commerce solution.

Advanced Calculator App Spec

Create a detailed plan and specification for an advanced calculator application that integrates three modes: scientific, graphic, and standard calculators. The app should feature an attractive, user-friendly interface that enhances usability and aesthetics. The application should: - Include a standard calculator mode with basic arithmetic operations. - Provide a scientific calculator mode supporting advanced mathematical functions such as trigonometry, logarithms, exponents, and more. - Incorporate a graphic calculator mode capable of plotting mathematical functions and displaying graphs interactively. - Have a cohesive and visually appealing UI design with intuitive navigation between calculator modes. - Ensure responsiveness and accessibility across devices (optional: specify platforms). # Steps 1. Define the functionality required for each calculator mode. 2. Design the user interface with a clean, modern look, using appropriate colors, fonts, and layouts. 3. Implement the calculation logic for standard and scientific modes. 4. Develop the graph plotting capabilities for the graphic calculator. 5. Integrate all calculator modes into a single app with seamless mode switching. 6. Test the app for correctness, usability, and visual appeal. # Output Format Provide a comprehensive specification document or a code implementation plan detailing: - Functional requirements - UI/UX design considerations - Technology stack suggestions - Implementation approach - Sample code snippets or pseudocode for key functionalities # Notes If requested, provide full source code for the app in a suitable programming language/framework (e.g., Flutter, React Native, or native platforms). Include comments and explanations for clarity.

Advanced Elliott Waves Pine Script

Produce a sophisticated and original advanced Pine Script code implementation for Elliott Waves analysis that is elegant and efficient. The output should be a Pine Script code for TradingView that identifies and displays Elliott Waves on price charts with clear and elegant visual annotations. The code should include advanced features such as automatic wave detection, labeling of waves, and configurable parameters for customization. # Steps 1. Analyze Elliott Waves theory principles to guide wave detection logic. 2. Implement automatic detection of wave counts respecting Elliott Wave rules. 3. Create clear and elegant visual annotation of detected waves, including labeling (waves 1-5, A-B-C, etc.). 4. Provide configurable input parameters to adjust sensitivity and display options. 5. Ensure code efficiency and readability with well-structured comments. # Output Format - Provide the full Pine Script code, properly indented and commented. - Include usage instructions in comments at the beginning of the script. # Notes - The code should be original and not rely on copied external sources. - Focus on clarity, elegance, and functionality. - The script should be compatible with the latest version of Pine Script (version 5).

Advanced FiveM Gun Shop

Create an advanced FiveM gun shop system based on the ESX framework that includes the following features: - Job and Discord role whitelisting to restrict access. - A weapons creation system allowing custom weapon configurations. - Implementation of useable items for weapons and accessories. - Moveable objects enabling players to reposition shop elements dynamically. - Inclusion of a pre-built MLO (Map Location Object) for the gun shop environment. - A generator system linked to the shop for dynamic resource spawning or management. - Support for custom weapon models integrated with ESX. Ensure that the system is modular, well-documented, and optimized for performance and security. Include clear instructions for installation, configuration, and usage. Make sure to handle permissions and access controls effectively for both jobs and Discord roles. # Steps 1. Setup the base ESX framework and environment. 2. Implement job and Discord role whitelisting logic. 3. Develop the weapons creation system with customizable parameters. 4. Integrate useable items that can interact with the weapons and the player. 5. Create moveable objects mechanics allowing repositioning within the shop. 6. Design and include the MLO map for the gun shop. 7. Build the generator system supporting the shop's operations. 8. Add support for custom weapon models and integrate them properly. 9. Test all components for compatibility and bugs. # Output Format Provide a comprehensive, modular script or resource package for FiveM ESX servers, with source code files, configuration files, SQL schema for necessary database changes, and detailed README documentation explaining all features, configurations, dependencies, and usage instructions.

Page 45 of 68

    Coding Prompts - Learning AI Prompts | Elevato