Coding
814 prompts available
Advanced Pine Script Strategy
Create an advanced Pine Script strategy incorporating a range of technical indicators and dynamic features as described below: 1. **MACD Indicator with Custom Signals** - **Dual MACD Setup:** Implement both standard MACD (Signal, Line, Histogram) and custom variations for deeper analysis. - **Buy/Sell Conditions:** Trigger buy and sell signals based on crossings of the MACD line with the signal line. - **Histogram Visualization:** Provide a visual representation to indicate changes in market momentum. 2. **RSI (Relative Strength Index)** - **Oversold/Overbought Levels:** Highlight overbought (>70) and oversold (<30) levels. - **Buy/Sell Signals:** Generate buy signals when the RSI exits the oversold territory and sell signals upon exiting the overbought zone. 3. **EMA Crossovers** - **Dual EMA Strategy:** Utilize a short-term EMA (e.g., 9-period) and a long-term EMA (e.g., 21-period). - **Cross Signals:** Issue buy and sell signals based on crossovers of the short-term EMA with the long-term EMA. 4. **ICT Model Insights** - **Market Structure Analysis:** Automatically identify market structures like Higher Highs (HH) and Lower Lows (LL). - **Order Blocks and Liquidity Zones:** Show potential institutional order flow areas and liquidity zones for reversal or continuation trades. 5. **Fourier Smoothing** - **Noise Reduction:** Apply Fourier Transform for noise reduction in price data. - **Smoothed Price Line:** Offer a Fourier-smoothed signal or toggle to an Exponential Moving Average (EMA). 6. **Volume-Weighted Moving Average (VWMA)** - **Trend Analysis:** Combine volume data with price movement. - **Cross Signals:** Use price crosses with the VWMA to determine buy/sell signals aligning with trends. 7. **Pivot Points for Support and Resistance** - **Dynamic Levels:** Display support and resistance zones (S1, S2, S3, R1, R2, R3). - **Reversal Zones:** Identify possible reversals or breakout areas. 8. **Trend Direction Indicator** - **Dynamic Trend Labels:** Convey "Up Trend" or "Down Trend" with a visual background (green for up, red for down). 9. **Buy and Sell Signals with Labels** - **Customizable Labels:** Show clear "BUY" and "SELL" signals on charts with related details like price and conditions. 10. **Stop Loss and Take Profit Zones** - **Dynamic lines:** Display entry, stop loss, and take profit lines on the chart. - **User Inputs:** Allow custom risk-reward ratios for SL/TP levels. 11. **Live Trade Table** - **Real-Time Updates:** Present key trade metrics including trend direction, entry price, SL/TP targets, and performance metrics. - **On-Screen Positioning:** Align the trade table for easy access within the chart view. 12. **Alerts System** - **Custom Alerts:** Set alerts for various conditions like buy/sell signals or key technical events. 13. **Multi-Timeframe Analysis** - **Higher Timeframe Support:** Facilitate higher timeframe analysis in conjunction with the primary trading timeframe. - **MTF Visuals:** Overlay higher timeframe trends or pivot points on the current chart. 14. **Session Highlights** - **Session Visualization:** Highlight different market sessions, allowing customized timings. 15. **Strategy Backtesting** - **Performance Metrics:** Capture metrics such as net profit/loss and drawdown over specific backtest periods. - **Optimization:** Fine-tune parameters like EMA periods and RSI thresholds through backtesting. 16. **User-Friendly Inputs** - **Feature Toggling:** Enable specific strategy features via straightforward settings. 17. **Enhanced Visualizations** - **Heatmaps & Styling:** Use heatmaps for market strength indication and customize visualization aspects for clarity. # Steps - Develop individual features aligning with the provided specifications. - Ensure each feature interconnects and complements the others within the trading strategy. - Test and optimize the strategy using Pine Script's backtesting features. # Output Format Develop the complete Pine Script code encompassing the full list of described features, with comments explaining each section and optional settings for user customization. Arrange the code for ease of reading and modification.
Advanced Tools Integration
You are tasked with creating, generating, and merging existing tools and scripts to develop an extremely advanced system for live integration, coding, algorithmic computing, and all functionalities that the project offers. This involves combining and extending all current capabilities into a unified, enhanced toolkit that seamlessly supports real-time operations and sophisticated computational tasks. # Steps 1. Analyze all existing tools and scripts to understand their functionalities and integration points. 2. Identify overlapping features and opportunities for optimization or enhancement. 3. Extend current systems to support advanced live integration, ensuring real-time responsiveness. 4. Incorporate advanced coding and algorithmic computing features to increase computational sophistication. 5. Merge all tools and scripts into a cohesive framework that maintains all existing functionality and integrates new capabilities. 6. Test the unified system to ensure stability, performance, and feature completeness. # Output Format Provide a comprehensive, well-structured explanation or detailed plan describing how to approach the merging and extension of the tools and scripts. Include technical details, architectural recommendations, integration strategies, and potential challenges with solutions. If applicable, include example code snippets, pseudocode, or system diagrams in markdown for clarity. # Notes - Focus on leveraging and enhancing existing resources rather than creating tools from scratch. - Maintain compatibility and support for every feature the original project offers. - Emphasize scalability and advanced computational efficiency. - Assume access to all current scripts and tools for analysis and integration.
Advanced Top Up Page with PayPal
Create an advanced and visually appealing web page for a 'Top Up' service incorporating your provided PayPal button code. Enhance the page using sophisticated CSS techniques such as responsive layouts, smooth animations, custom fonts, gradients, shadows, and interactive elements to improve user experience and aesthetics. Structure the page to include a clear header, informational content about the top-up service, the PayPal payment button as provided, and a footer. Ensure the layout is mobile-friendly and visually engaging while remaining professional and user-friendly. Steps to accomplish the task: 1. Use HTML5 semantic elements to structure the page: header, main content section, and footer. 2. Apply advanced CSS styling, including but not limited to: - Responsive design with flexbox or grid. - Usage of CSS variables for theme colors. - Smooth hover animations on buttons and interactive elements. - Custom fonts loaded via Google Fonts or similar. - Use of gradients and box shadows to add depth. 3. Integrate the given PayPal form code exactly as provided, ensuring it fits aesthetically within the layout. 4. Add subtle animations or transitions to enhance the user experience without overwhelming the user. 5. Make sure that the page is accessible and performant. Output Format: Provide the full HTML and CSS code for the complete web page in a single block, suitable for direct deployment. The code should be self-contained, with CSS included in a <style> tag within the <head> section. Do NOT alter the PayPal form code except for wrapping and styling purposes. Make sure the output is valid, clean, and well-indented code. Name: Advanced Top Up Page with PayPal Short description: Creates a modern, advanced CSS styled top-up page featuring an integrated PayPal payment button. Icon: GlobeAltIcon Category: web development Tags: [CSS, PayPal, Responsive Design, Web Page] should_index: true
Advanced RPG UE5 Tutorials
You are tasked with finding or recommending a comprehensive YouTube tutorial series for developing an extremely advanced RPG game using Unreal Engine 5, focusing on ultra-realistic graphics and detailed gameplay mechanics. Requirements: - The tutorial series must have more than 50 episodes to ensure depth and thorough coverage. - It should cover advanced RPG game elements including: - NPC interactions and behavior systems - Inventory management systems - Player and enemy leveling mechanics - A skill/abilities system allowing players to acquire and upgrade competencies - Emphasize the use of Unreal Engine 5's capabilities to achieve ultra-realistic graphical rendering. Instructions: - Identify or suggest a YouTube playlist or series that meets the above criteria. - If no existing series fully meets these requirements, suggest how to combine multiple series or resources to achieve these learning goals. - Provide a brief overview of the tutorial series content and how it addresses each required element. Respond with detailed information about the series or a plan to construct one using available tutorials. # Output Format Provide your answer in clear, structured text, including: - The title and URL of the recommended YouTube tutorial series - Number of episodes - Summary of covered content relevant to the RPG systems mentioned - Explanation of how the series fulfills the graphics and Unreal Engine 5 advanced features requirement - Suggestions for any supplementary tutorials if necessary # Notes Ensure the response prioritizes series with comprehensive, in-depth explanations and practical coding examples geared towards advanced RPG game design in Unreal Engine 5.
Advanced Pinescript Indicator
Develop an advanced Pinescript indicator for trading analysis. The indicator should implement complex logic and incorporate multiple technical analysis functions, such as moving averages, momentum oscillators, and trend analysis tools. Consider including customizable parameters that allow users to adjust the indicator's behavior based on their trading strategy. Ensure that the code is well-documented and organized, making it easy for other traders to understand and modify as needed.
Advanced Player Shops Creator
Create an advanced player-owned shops system using the Ox Library (ox_lib) for a game environment. The system should allow players to easily add items to their shops from both a database and Ox items defined in Lua. Provide a user-friendly in-game menu interface to manage the shops and the items for sale. Requirements: - Integrate with the database to fetch and manage item data. - Support adding items defined in Ox Lua item definitions to player shops. - Implement a clear and intuitive menu system using ox_lib for players to create and manage their shops. - Ensure the system is modular, scalable, and easy to expand with new items. - Include proper data validation and error handling for item additions. - Provide example Lua code snippets demonstrating how to load items from the database and Ox items, and how to populate the shop menu. Steps: 1. Connect to the database and retrieve item information relevant to the shops. 2. Access Ox items defined in Lua and prepare them for inclusion in shops. 3. Design and implement an ox_lib-based menu interface that lets players create shops, browse available items, and add items to their shop inventory. 4. Handle saving and updating shop data in the database as players make changes. 5. Ensure players can view and purchase items from player-owned shops within the game environment. Output Format: Provide the full Lua script(s) or modular code snippets necessary to implement this system, clearly commented to explain each part. Include instructions for setup and integration with the database and ox_lib. Example: -- Example Lua code snippet local oxlib = require('ox_lib') local database = require('database_module') function loadShopItems(playerId) local itemsFromDB = database.query('SELECT * FROM shop_items WHERE owner_id = ?', playerId) local oxItems = getOxItems() -- function to retrieve Ox items -- Combine and prepare items for menu local menuItems = mergeItems(itemsFromDB, oxItems) oxlib.showMenu('shop_menu', menuItems) end Notes: - Assume ox_lib and database connectivity are already set up in the environment. - Focus on the core functionality; UI/UX polish can be iterative. - The menu should dynamically update as items are added or removed.
Advanced Scalping Bot
Build an advanced scalping trading bot optimized for low timeframes such as 5-minute (M5) and 15-minute (M15) charts, focusing on fast entries and exits with the objective of consistent profitability through small price movements. The bot should: - Implement a strategy based on exploiting market inefficiencies, using clear entry and exit rules. For example, use moving averages where a buy signal triggers when the 50-period SMA crosses above the 100-period SMA, and a sell signal triggers when the 100-period SMA crosses above the 50-period SMA. - Incorporate additional technical indicators such as RSI and Bollinger Bands to refine entry and exit signals. For instance, buy when RSI is below 30 and Bollinger Bands %B is below 0; sell when RSI exceeds 70 and Bollinger Bands %B exceeds 100. - Apply rigorous risk management through stop-losses set between 2-5% below entry price, portfolio-wide maximum drawdown capped at 15%, and optionally trailing stops to lock in profits. - Employ position sizing rules limiting each trade to 1-2% of total capital to minimize risk exposure. - Include volatility filters to pause trading under extreme market conditions, such as when volatility indexes (e.g., VIX) exceed thresholds, price moves exceed 2 standard deviations, or bid-ask spreads widen substantially. - Use market and limit orders primarily for executing trades. - Ensure the algorithm is robust, readable, and free of bugs, with clearly defined entry, exit, and sizing rules. - Design for hitch-free execution requiring always-on connectivity and reliability. Step-by-step approach: 1. Define clear, rule-based entry and exit conditions based on moving averages and combined indicator signals. 2. Encode stop-loss and trailing stop mechanisms aligned with recent market volatility. 3. Implement position sizing constraints per trade and portfolio risk parameters. 4. Add volatility filters to halt trading during abnormal conditions. 5. Use appropriate order types (market and limit) to execute trades quickly and efficiently. 6. Test the bot extensively on historical data to verify strategy effectiveness and absence of bugs. 7. Prepare the system for continuous and reliable live operation. Output Format Provide a detailed trading bot algorithm description or code implementation with comments, explaining each part: strategy logic, indicator calculations, order execution logic, risk management components, and volatility handling. The output should be in a programming language or pseudocode suitable for trading bot platforms, fully executable or clearly instructive for development. Icon: "BoltIcon" Category: "programming" Tags: ["Scalping", "Trading Bot", "Algorithmic Trading", "Risk Management"] Name: "Advanced Scalping Bot" Short Description: "Develop an advanced scalping bot for M5 and M15 charts using moving averages, RSI, Bollinger Bands, and strict risk management.",
Advanced Tournament App
Create a complete, fully featured tournament application encapsulated entirely within a single HTML file. This advanced-level app should include comprehensive functionalities common to tournament management, such as: - Tournament Creation: Define tournament types (e.g., single elimination, double elimination, round-robin). - Player or Team Registration: Add, edit, and remove participants. - Match Scheduling: Automatically generate match brackets and schedules according to the tournament type. - Score Tracking: Input and update match results dynamically. - Leaderboards and Standings: Display updated rankings after each match. - Responsive Design: Ensure the app works flawlessly on desktop and mobile devices. - Persistent Data Storage: Use browser-based storage (like LocalStorage or IndexedDB) to save tournament data without external dependencies. - User Interactions: Intuitive UI/UX with forms, buttons, and visual bracket representations. - Error Handling and Validation: Manage invalid inputs or inconsistent data gracefully. The entire application must be self-contained with HTML, CSS, and JavaScript embedded in a single file, requiring no external resources or libraries. Focus on clarity, modular and maintainable code structure, and provide inline comments for key sections. Include all necessary scripts and styles within the HTML file. # Output Format Provide a single, complete HTML file content that fulfills all features and requirements listed above. The code should be ready to open and use in any modern web browser without additional setup.
Advanced Trader System
Create an advanced trader system for FiveM, inspired by DayZ, that spawns multiple trader NPCs each specialized in buying and selling different item categories such as weapons, ammunition, and other goods. The system must include: - Custom user interface (UI) for interacting with traders. - Integration with QB-Core framework. - Integration with the core_inventory resource to manage player inventories. The trader system should: 1. Dynamically spawn multiple traders at specified locations. 2. Assign distinct item categories (e.g., weapon trader, ammo trader) to each trader. 3. Allow players to buy and sell items via the custom UI seamlessly. 4. Handle inventory updates and currency transactions accurately, using QB-Core's player and inventory management features. 5. Ensure compatibility and clean integration with existing QB-Core and core_inventory resources. Provide detailed code examples and explanations illustrating: - How to spawn and configure multiple traders. - How to design and implement the custom UI for trading. - How to handle buying/selling logic and inventory updates. - How to integrate the system with QB-Core player data and core_inventory storage. # Steps 1. Define trader NPC spawn points and their assigned item categories. 2. Create NPCs dynamically at these points when the server/client initializes. 3. Develop a custom UI framework (e.g., using NUI/HTML) for trader interactions. 4. Implement server and client scripts to open the UI and send/receive trading data. 5. Code logic for validating trades, updating player inventories, and handling payment. 6. Test the integration thoroughly for bugs and balance. # Output Format - Provide the complete sample code snippets with comments. - Include configuration files or JSON for traders if applicable. - Describe how to install and run the system within a QB-Core FiveM server. # Notes - The system should be modular to allow adding new trader types easily. - Security and validation must be handled server-side to prevent exploits. - The UI should be user-friendly and performant. # Examples - Spawn points example: ```lua local traders = { {position = vector3(100.0, 200.0, 30.0), type = "weapon"}, {position = vector3(110.0, 210.0, 30.0), type = "ammo"}, } ``` - Basic trader interaction flow: Player approaches trader -> Presses a key to open UI -> UI shows items -> Player buys/sells -> Inventory updates -> UI closes. ---
Advanced Scalping EA
Create an advanced Expert Advisor (EA) for MetaTrader 4 and MetaTrader 5 that focuses on fast scalping strategies. The EA should have the following features: - Operate continuously 24/7, always active trading. - Automatically trade on every available currency pair. - Implement trading triggered by significant events and trading sessions. - Include robust take profit and stop loss mechanisms to maximize gains and minimize losses. - Aim for a high success rate, targeting approximately a 98% win rate. When designing the EA, consider the complexity of event-based trading and session time analysis to optimize entry and exit points. The EA should handle multiple pairs simultaneously without degradation of performance. # Steps 1. Develop scalping algorithms tailored to high-frequency, low-latency trading. 2. Integrate event and session detection modules to identify optimal trading windows. 3. Implement universal trade management including dynamic take profit and stop loss settings. 4. Ensure compatibility with both MQL4 and MQL5 platforms, supporting simultaneous multi-pair trading. 5. Optimize for superior win rate performance under varied market conditions. # Output Format Provide the complete source code for the Expert Advisor, fully commented and ready to be compiled and deployed in MetaTrader 4 and MetaTrader 5. Include any required configuration parameters and usage instructions within the code comments.
Advanced Pregnancy Script
Develop a comprehensive and advanced pregnancy management script for FiveM that delivers a highly accurate simulation combined with engaging, interactive gameplay. The script must implement the following core functionalities: - **Player Character Interaction:** Enable players to engage in in-game activities that can realistically lead to pregnancy, using appropriate animations and interactive prompts to enhance immersion. - **Gestation and Birth Process:** Simulate a realistic gestation period divided into multiple stages, including timing mechanisms to track pregnancy progression and send timely player notifications for each stage. - **Health Monitoring:** Continuously monitor health parameters for both the mother and unborn child; these metrics should influence gameplay outcomes based on player choices and behaviors. - **Roleplay Elements:** Provide rich immersive roleplay components such as prenatal care options, childbirth planning, and nursery customization. - **Family Integration:** Support dynamic parent-newborn interactions with commands or interfaces that allow managing family roles and responsibilities. - **Events and Milestones:** Integrate significant pregnancy and family milestones (e.g., baby showers) that reward players with in-game benefits or recognition. Additionally, the script must be optimized for performance, ensure compatibility with major FiveM server frameworks, and be fully configurable via external configuration parameters rather than hard-coded values. Comprehensive documentation is required, including detailed installation and configuration guides aimed at server administrators, along with thorough inline code comments explaining all logic and functionalities. # Steps 1. Design and implement player interaction mechanics and associated animations that realistically enable pregnancy initiation. 2. Develop a gestation system with multiple stages and a robust timing mechanism that advances pregnancy realistically and triggers notifications. 3. Create health monitoring systems for mother and unborn child with variable effects on gameplay depending on player decisions. 4. Build roleplay modules to allow players to choose prenatal care, plan childbirth, and customize nurseries. 5. Implement family interaction mechanics enabling parenting activities such as feeding, playing, and managing childcare responsibilities. 6. Code event and milestone triggers (e.g., baby showers) integrated with rewarding systems like experience points or in-game currency bonuses. 7. Optimize the entire script for efficient performance and ensure seamless compatibility with widely-used FiveM server frameworks. 8. Produce a detailed README file and embed clear inline comments throughout the codebase for ease of installation, configuration, and customization. # Output Format - Deliver the full pregnancy script in Lua (FiveM-compatible language), structured modularly with descriptive section comments and extensive inline code annotations that explain logic, usage, and configuration options. - Include a separate, well-organized README file that outlines installation instructions, prerequisites, configuration parameters with default values and descriptions, setup guidance, usage examples, and troubleshooting tips. # Notes - Target compatibility with popular FiveM server frameworks (e.g., ESX, VRP). - Prioritize immersive roleplay fidelity carefully balanced against performance impact. - Provide all configurable parameters (pregnancy durations, health effects, event frequencies, rewards) in easily modifiable config files or variables. - Avoid any hard-coded constants in gameplay logic; all should be adjustable by admins to fit server needs. # Examples - Interactive animations activate when characters engage in pregnancy-related interactions. - Players receive timely notifications updating them on pregnancy progression at defined intervals (e.g., every in-game day). - Health stats for mother and unborn child vary dynamically based on player activities, affecting pregnancy outcomes. - A menu interface enabling selection from prenatal care options with different gameplay effects. - Commands such as 'feed baby', 'play with baby', and 'change diaper' that interact with the newborn. - Baby shower event trigger rewarding players with bonus experience points or virtual currency.
Advanced Programming Assistant
You are an advanced AI programming assistant specializing in a wide range of programming tasks across various languages. Your tasks include enhancing user prompts, explaining, documenting, debugging, refactoring, formatting code, as well as optimizing for speed, efficiency, and type safety. Follow these structured steps to achieve high-quality results: # Steps 1. **Understanding Requirements**: Carefully analyze the user's requirements to ensure that you fully understand the task at hand. - Extract key objectives and constraints from the user's input. 2. **Planning**: Develop a detailed plan in pseudocode: - Think step-by-step and outline the solution in detailed pseudocode. - Ensure the pseudocode covers all aspects of the task. 3. **Code Analysis and Enhancement**: - Review and optimize the provided code. - Add explanations, doc-strings, and comments for clarity. - Debug and refactor to improve readability and maintainability. - Format the code according to best practices. - Sort imports and apply strong typing where possible. 4. **Optimization**: - Focus on making the code faster and more efficient. - Continuously enhance and optimize based on performance analysis. 5. **Complexity Analysis**: - Compute the time complexity in Big-O notation. - Compare the original code with the optimized version, highlighting improvements. 6. **Iteration**: - Repeat the above tasks until the solution is as efficient and clear as possible. # Output Format - Provide the final code solution in a single code block. - Include detailed pseudocode planning at the beginning. - Integrate explanations, doc-strings, and comments within the code. - Include a summary of optimizations and time complexity analysis. # Examples - For simple tasks: Start with straightforward pseudocode and progress to a clean and well-documented code solution. - For complex tasks: Break them down into manageable components in pseudocode, followed by modular, efficient code. # Notes - Always ensure your explanations are accessible and aim to make the code easily understandable for other developers. - Prioritize type safety and modern coding standards to ensure high-quality software. - Continuously aim for a balance between readability, performance, and maintainability.