Back to Learning

Coding

814 prompts available

Add to JS File

You are required to add the specified answer into the provided JavaScript file. Ensure the original content of the file remains untouched and is not removed or altered in any way. Only append or insert the new answer as directed. Follow any specific instructions for placement and formatting carefully.

Advanced App.js Redesign

Redesign the provided app.js file to create a highly professional and visually appealing application that appears to be crafted by a senior, highly skilled developer. Improve the UI/UX with advanced animations and design elements that make the app eye-catching and intuitive. Enhance the project by adding sophisticated features, such as comprehensive user management integrated with Firebase. Implement role-based access control where different user roles (e.g., Admin, Editor, Viewer) have specific permissions and feature accessibility. Incorporate secure token-based authentication to manage sessions and enable efficient platform-wide search or other relevant functionalities. Review the entire project structure and fix any existing issues or inefficiencies. Use best practices for code organization, state management, performance optimization, and security. Be creative and innovative in your redesign—introduce new components, improve responsiveness, and ensure the app is scalable and maintainable. # Steps 1. Analyze the current app.js code and identify areas for improvement in design and functionality. 2. Redesign the UI with advanced animations and a professional layout. 3. Integrate Firebase for authentication and user management. 4. Implement role-based access control with distinct feature access for each role. 5. Add token handling to manage authentication and enable secure search. 6. Refactor the code for modularity, readability, and performance. 7. Test all features thoroughly and fix any bugs. # Output Format Provide the complete redesigned app.js code with inline comments explaining your modifications and enhancements. Include any relevant configuration or code snippets necessary for Firebase integration and role management within comments or as separate code blocks. Ensure the code is clean, well-structured, and ready for deployment.

Add Trade Filters to MT5 EA

You are a knowledgeable MetaTrader 5 Expert Advisor (EA) developer tasked with enhancing an existing EA by adding several key features that improve trade management and control. Your goal is to add the following functions to the EA code: 1. Max Spread Filter: Implement logic to avoid opening any new trades if the current spread exceeds a specified maximum threshold. 2. Slippage Control: Add parameters and code to restrict the maximum allowed slippage during order execution to prevent unexpected trade costs. 3. Session Filter: Introduce configuration that allows trading only during specified market sessions (e.g., London, New York). The EA should check the current time against these sessions and inhibit trade openings outside of them. 4. News Filter: Integrate a mechanism to pause trading during high-impact news events. This may involve checking an external news feed or input data, or simulating such logic, to prevent trades during volatile periods. 5. Magic Number Management: Support multiple EA instances on different symbols or timeframes by assigning distinct magic numbers to trades for reliable identification and management. 6. Order Comment Customization: Enhance order opening functions to include more detailed, customizable comments that facilitate easier tracking and analysis of trades. Please provide the implementation guidance or code snippets appropriate for MetaTrader 5 MQL5 language that incorporate these features into the EA structure. Assume the EA uses standard trade-opening functions and includes basic parameters. # Steps - For Max Spread Filter, retrieve the current spread and compare it to a configurable max spread parameter before opening any trade. - For Slippage Control, add an input parameter for max slippage and use it in order sending functions. - For Session Filter, define input parameters for trading sessions (start and end times) and incorporate time checks before trade execution. - For News Filter, demonstrate how to check or simulate checking news event impact and pause trading accordingly. - For Magic Number Management, add an input parameter to define a magic number and apply it consistently when opening trades. - For Order Comment Customization, add input parameters or build strings that include relevant info and assign them to the trade comment field. # Output Format Provide commented MQL5 code snippets or full function implementations illustrating how to integrate each of these features into an EA's trade opening logic. Include any necessary input parameters and explain where in the EA the additions should be made. # Notes - Emphasize best practices for readability and maintainability. - Use placeholders or examples for session times and max values. - Assume access to standard MQL5 libraries and methods.

Advanced Discord Bot

Help me create a complex Discord bot in Python using discord.py. The bot should include an extensive number of if/else statements, with a minimum of 500 lines of code. The functionality can be a simple coin flip or any other interactive feature, but it should heavily emphasize conditional logic, far exceeding the complexity of typical simple bots. Aim for a structure that encourages intricate decision-making processes within the bot's operations.

Advanced Battle Royale Player Controller

You are tasked with designing a comprehensive 3D Player Character Controller system inspired by Free Fire with full features and detailed specifications. --- **System Name:** Advanced Battle Royale Player Controller **Objective:** Develop a third-person 3D player movement and control system supporting full keyboard and mouse input. **Suggested Engines:** Unity (using C#) or Three.js / React Three Fiber (using TypeScript) **Viewpoint:** Third-Person (camera follows behind the player, orbit style, free rotation around the player via mouse, mouse fixing disabled) --- ### Player Specifications: - Height: 1.75 meters realistic scale - States: Idle, Walk, Run, Jump, Crouch, Aim, Shoot, Throw Gloo Wall - Model formats: Loadable GLB or FBX files containing skeleton rigs and animations - Features: - Eye and head movement with Look At functionality - Support dynamic changing of clothing and weapons --- ### Controls (Keyboard + Mouse): - W: Move forward - A: Move left - S: Move backward - D: Move right - Shift: Run - Space: Jump - C: Crouch - Mouse Movement: Rotate camera and player - Left Mouse Button: Shoot - Right Mouse Button (hold): Aim - 1, 2, 3: Switch between weapons or Gloo Wall - G: Throw or place Gloo Wall --- ### Movement System: - Animator Controller manages transitions between states automatically (Idle ↔ Walk ↔ Run ↔ Jump) - Jump behavior: - Rapid ascent - Smooth descent with gravity applied - Air control for movement and rotation - Rotation controlled by mouse: - Camera freely orbits player - Player rotates smoothly to face camera direction --- ### Weapons System: - Weapon types: SMG (Light weapon), Sniper Rifle, Pistol, Grenades / Gloo Wall - Each weapon has: - 3D model - Holding animation - Aim animation - Fire animation - Reload animation - Includes systems: - Dynamic crosshair changing based on state - Hit detection with raycasting and damage calculation - Effects: Muzzle flash and bullet sounds --- ### Gloo Wall System: - Triggered by pressing G - Deploys a Gloo Wall in front of the player - Cooldown timer prevents immediate multiple placements - Characteristics: - Blocks bullets - Can be destroyed after taking damage or over time - Can be moved or integrated with AI behaviors --- ### Additional Features: - Health and damage system with a visible health bar - Ammo management with HUD display - Minimap with safe zone shrinking system - Optional mobile support with touch controls - Optional respawn system --- ### Recommended Technologies: - Engines: Unity (C#) or React Three Fiber (TypeScript) - 3D files: GLB/GLTF for characters and weapons - Animations: Mixamo or Blender custom animations - Physics: Rigidbody with Capsule Collider --- # Steps 1. Load 3D character model with skeleton rig and animations. 2. Implement input system supporting keyboard & mouse mapping as specified. 3. Setup Animator Controller for player state transitions. 4. Configure camera to orbit freely and rotate player smoothly. 5. Create weapon management system with models, animations, and firing logic. 6. Develop Gloo Wall deploy and cooldown mechanics. 7. Integrate health, ammo, minimap, and UI elements. 8. Add optional features like mobile controls and respawning. # Output Format Describe the system design, architecture, and implementation details clearly and comprehensively, including code structure, key algorithms, and API choices, while adhering to the specifications above. Provide illustrative pseudocode or code snippets in C# or TypeScript as appropriate. Organize content into major sections matching the above features for readability.

Advanced Discord Ticket Bot

You are an expert Discord bot developer specializing in ticket management systems. Your task is to enhance an existing Discord ticket bot with the following features: 1. Implement a command `close all ticket` that allows users with the "support" role not only to view all tickets but also to close them. 2. Improve the bot's overall functionality to make it highly advanced and comprehensive for effective ticket handling. 3. Add additional useful features that can enhance support workflows, such as ticket categorization, logging, permission management, and user notifications. Please reason through each enhancement step clearly and provide clean, maintainable code examples or descriptions where relevant. # Steps - Analyze the current bot command structure and permissions. - Incorporate role-based access control to ensure only users with the "support" role can execute ticket closing commands. - Implement the `close all ticket` command that efficiently closes multiple tickets. - Suggest and integrate additional advanced features that improve usability and management. # Output Format Provide the improved bot command implementations, code snippets, and a summary of newly added features, formatted in markdown for easy reading and implementation. # Notes Focus on security, preventing unauthorized ticket closure, and improving user experience. Use best practices for Discord bot development and role management.

Advanced Bennys Mechanic Job

Create an advanced mechanic job script specifically for the "Bennys" workshop in the FiveM multiplayer modification for GTA V. The script should allow players to perform comprehensive vehicle customization and repair tasks including, but not limited to, engine tuning, visual modifications, body repairs, and performance upgrades. Ensure the job includes realistic interactions with the environment and vehicles, job-specific menus, progression or earning mechanics, and integration with the FiveM framework. # Steps 1. Design a mechanic job role centered around the Bennys workshop within FiveM. 2. Implement vehicle interaction points enabling detailed repair and customization options. 3. Develop user interfaces for task selection and job progression. 4. Include payment or reward systems for completed tasks. 5. Test the script extensively to confirm compatibility and functionality. # Output Format Provide the fully commented Lua script or scripts, ready to be installed in a FiveM server, along with a brief usage guide explaining key features and installation instructions.

Add Trade Limit and Pending Order Inputs

You are tasked with enhancing an existing Expert Advisor (EA) for trading by adding new input parameters that allow specific user configurations without modifying the EA's underlying code or logic. Specifically, add the following inputs: 1. An input to limit the EA to one trade per day, including the ability to specify whether the trade can be long, short, or both within that day. 2. Inputs to set a threshold ("x times") after an indicator breakout occurs, which will trigger the placement of pending orders. Your enhancements should be input parameters only, enabling these functionalities by configuration change rather than code logic modification. # Steps - Define input variables corresponding to "one trade per day" controls including options for long, short, or both trades. - Define an input variable to specify the number of times the indicator breakout must occur before placing pending orders. - Ensure these inputs can be integrated with existing EA functionality without altering internal code logic. # Output Format Provide the definitions of the new input parameters in the format appropriate for the EA's input settings (e.g., MQL4/MQL5 input variables), with clear explanation of each input's purpose and usage. # Notes - Do not change any existing code or logic; only add input parameters. - Inputs should be named clearly and descriptively. - Assume the EA code will internally read these inputs and implement the logic accordingly.

Add Trading Pairs

You are tasked with modifying a given trading code to enable the user to start trading with additional trading pairs: PAXGUSDT and XAUTUSDT, alongside any existing pairs. 1. Analyze the current code to identify where trading pairs are specified or handled. 2. Incorporate support for PAXGUSDT and XAUTUSDT such that the system can initiate trades with either of these pairs. 3. Ensure the modification preserves the existing trading functionality for other pairs. 4. If necessary, update any relevant configurations, parameters, or validations to accept the new pairs. 5. Provide clear explanations for the changes you make in the code. # Steps - Review existing trading pair definitions or input mechanisms. - Add PAXGUSDT and XAUTUSDT to those definitions. - Validate that the system can execute trades when initiated with those pairs. - Test the changes to confirm proper functioning. # Output Format - Provide the modified code snippet or function with added support for PAXGUSDT and XAUTUSDT. - Include comments in the code to highlight the modifications. - Optionally, provide a brief summary of the changes made. # Notes - Ensure compatibility with the trading platform API for these pairs. - Preserve the original code's style and structure. - Do not remove existing trading pairs unless specified.

Advanced Billiard Game

Create an advanced billiard game simulation in Python that features realistic physics and gameplay mechanics. The game should include options such as different game modes (e.g., 8-ball, 9-ball), adjustable difficulty levels, player score tracking, and customizable table settings (e.g., size, cushion elasticity). Incorporate a graphical user interface for interactive gameplay, using libraries like Pygame or Tkinter. Ensure smooth ball movement, collision detection, and cue control with spin and force options. # Steps 1. Set up the game environment with a graphical interface. 2. Implement realistic physics for ball movement, collisions, and friction. 3. Develop multiple game modes with their specific rules. 4. Include player input controls for aiming, striking with adjustable force and spin. 5. Add scoring and turn management between players. 6. Provide options for customizing table parameters and difficulty. 7. Test thoroughly to ensure smooth gameplay experience. # Output Format Provide the complete Python source code for the advanced billiard game, including all necessary functions, classes, and comments that explain the key components and logic. If using external libraries, specify installation instructions.

Advanced Discord Ticket System

Create a comprehensive and advanced ticket management system for a Discord bot. This system should include the following functionalities: - Ability for users to create tickets with relevant details. - Commands or options to delete tickets. - Track and display the status of orders associated with each ticket. - Record payment information, including the payment method and the amount paid. - Indicate whether an order linked to a ticket is complete or pending. The system should be designed to manage tickets efficiently within Discord, maintaining clear organization and easy navigation for both users and moderators. Include necessary commands, message prompts, and database structure suggestions to store ticket and order information securely. # Steps 1. Implement a command for users to create a new ticket, capturing necessary details such as the user's ID, order information, and payment data. 2. Include a feature to view the current status of an order connected to a ticket. 3. Provide a command or method to delete tickets, ensuring proper permissions. 4. Track payment details: method and amount paid. 5. Allow marking orders as complete or incomplete. 6. Ensure that ticket data is stored persistently with user and order details. # Output Format Provide the system design and example code snippets (e.g., in JavaScript using Discord.js or a suitable Discord bot framework) showcasing the main functionalities. Include explanations of how different components operate together within the ticket system.

Advanced Binary Options Signal Bot

Design an advanced Telegram bot in Python that sends highly accurate binary options trading signals focusing on OTC and forex assets directly to a specified Telegram group or channel. The bot must analyze real-time market data using AI-enhanced predictive models on major forex pairs (e.g., EUR/USD, GBP/USD) and OTC instruments to forecast market trends with maximum accuracy. The trading signals should include: asset name, trade direction (must be either UP or DOWN), entry price, fixed expiry time of exactly 1 minute, confidence level percentage, and risk management info like stop-loss and take-profit suggestions. The bot should automatically format and send these signals to Telegram as illustrated: ``` 📊 **Binary Options Signal** Asset: EUR/USD Direction: UP Entry Price: 1.1250 Expiry: 1 minute Confidence: 85% Risk Level: Moderate ``` It should generate signals with minimal delay, provide transparent updates on signal outcomes (win/loss), and support 24/7 continuous operation with robust error handling. Administrators must be able to customize asset filters, confidence thresholds, and message formats easily. Advanced capabilities include an AI algorithm trained on historical OTC and forex data and a backtesting utility to validate strategies before live deployment. Also support premium users with more frequent or exclusive signals. Ensure the delivered solution includes modular, maintainable Python code with clear setup and installation instructions. # Steps 1. Integrate a reliable market data API (e.g., TradingView, MetaTrader, or Binance) for real-time prices. 2. Develop AI-based predictive models trained on historical OTC and forex data to forecast price movements. 3. Implement signal generation logic enforcing the fixed 1-minute expiry and required components. 4. Format signals clearly as per the example and send to the configured Telegram channel via Telegram Bot API. 5. Add risk management suggestions in each signal. 6. Build admin controls to customize assets, thresholds, and notification formatting. 7. Incorporate backtesting capabilities for strategy validation. 8. Enable user tiers with premium signal access. 9. Implement logging, error handling, and uptime management to ensure continuous operation. # Output Format Provide the final implementation as modular Python source code files along with detailed installation and usage instructions in markdown format. Include comments explaining the AI modeling approach, signal generation logic, Telegram integration, and configuration options. # Notes - All signals must specify direction as UP or DOWN without ambiguity. - Expiry time per signal is strictly one minute. - Prioritize OTC and forex assets. - Ensure message clarity inside Telegram to maximize user understanding. - Consider the volatility and risk inherent to binary options trading when designing confidence and risk indications.

Page 43 of 68

    Coding Prompts - Learning AI Prompts | Elevato