Back to Learning

Coding

814 prompts available

AHK Script Generation

Create an AutoHotkey (AHK) script with the following functionality: 1. **Activation**: The script should start its operations when the `e` key is pressed. 2. **Repetitive Action**: Once activated, the script should repeatedly perform the following actions until stopped: - Simulate pressing the `x` key. - Wait for one second. - Simulate pressing the `c` key. 3. **Deactivation**: The repetition should cease when the `p` key is pressed. 4. **Exiting the Script**: The entire script should terminate when the `Esc` key is pressed. Make sure to include the necessary AHK syntax for key bindings and loops in your script. Use comments within the script to improve readability and understanding of the code. Example structure: ```ahk ; Start of the script ; Activate script when 'e' is pressed ; Repeat actions until 'p' is pressed ; Exit the script when 'Esc' is pressed ``` Your response should include the complete AHK script that meets the outlined requirements, formatted and structured with proper comments to enhance clarity.

AI Adaptive Trading Bot

You are tasked with creating a powerful, automated trading bot that integrates multiple complex Pine Script® trading indicators without conflicts, ensuring they work synergistically. The bot must be AI-adaptive to changing market conditions, dynamically adjusting its behavior to optimize trading decisions over time. The provided Pine Script® code snippets include advanced technical indicators: - Farjeat Scalper Xtreme: a range filter based breakout scalper. - Length Adaptive MA SuperTrend: an adaptive moving average SuperTrend indicator. - Adaptive Moving Average (AMA) by MisinkoMaster: combining different MAs with adaptive smoothing. - Adaptive RSI (ARSI): a momentum oscillator with adaptive smoothing and filtering. - Gold Decisions [DayFunded]: a comprehensive multi-timeframe decision system designed for trading XAUUSD with multiple filters, zones, phases, and alerting. Your goal is to: 1. Integrate all given indicators into a unified AI-adaptive automated trading strategy/script compatible with Pine Script v5 or v6 on TradingView. 2. Ensure that each indicator retains its role, and multiple indicators' signals are combined without contradiction, providing a coherent buy/sell/hold decision process. 3. Implement adaptive AI mechanisms that dynamically adjust parameters, thresholds, or weights based on recent market behavior or performance metrics to optimize entry and exit signals. 4. Include proper risk management rules such as stop-loss, take-profit, and position sizing, leveraging the logic from the existing scripts and enhancing it with adaptive features. 5. Preserve alerting, drawing, and labeling features as necessary to display signals and trade management information clearly on the chart. 6. Structure the code cleanly with modular functions for indicators, signal processing, adaptive tuning, risk management, and order execution. 7. Provide comprehensive in-code comments explaining the logic, assumptions, and adaptive AI components. 8. Ensure no contradictions occur when combining indicators; resolve conflicts via adaptive weighting or priority rules. # Steps - Analyze each indicator's input parameters, outputs, and signal conditions. - Develop a signal aggregation module that harmonizes buy/sell signals from all indicators. - Create an adaptive learning mechanism that monitors recent trade outcomes and market volatility to adjust parameters (e.g., sensitivity multiples, lengths). - Implement trade management logic using the risk parameters and SL/TP rules found in the Gold Decisions script while integrating the breakout confirmations from other indicators. - Integrate all plotting, alerts, and labels to maintain user understanding. # Output Format Return a single comprehensive Pine Script code file (version 5 or 6) implementing the described automated trading bot. The code must be executable in TradingView, modular, well-commented, and ready for backtesting and live alerts. Include descriptive header comments summarizing the integrated indicators and AI-adaptive features. # Notes - Maintain compliance with Mozilla Public License 2.0 as required by the original code. - Use best practices to avoid repainting or unreliable signals. - Ensure adaptive AI mechanisms are robust yet transparent in code for user understanding. - The bot should be customizable via inputs for different assets and timeframes. Develop the complete Pine Script® automated trading strategy code accordingly.

AHK Script Generator

Write an AutoHotkey (AHK) script that performs a specific task. Provide clear instructions about the task it should automate, such as key remapping, text expansion, or automated clicks. Specify any parameters needed, like key combinations, coordinates, or text to insert. The script should be properly formatted and commented for clarity. # Steps 1. Identify the specific task you want to automate with the AHK script. 2. Determine the necessary key combinations or mouse actions required for the task. 3. Write the AHK script incorporating these actions. 4. Comment the script to explain each section clearly. # Output Format The output should be a well-formatted AHK script enclosed in triple backticks for code clarity. # Examples 1. To create a script that types ‘Hello, World!’ whenever the F1 key is pressed: ``` F1:: Send, Hello, World! return ``` 2. To remap the Caps Lock key to Ctrl: ``` Capslock::Control ``` # Notes - Ensure the script does not interfere with other keyboard shortcuts. - Test the script to verify it works as intended without errors.

AHK Script Window Control

Create an AutoHotkey v2 script that performs the following sequence when the F1 key is pressed: 1. Check if a window titled "USBDM" exists. 2. If it does, send the Enter key to that window. 3. Then, activate the window titled "True-Time". 4. Send the key combination Shift+R. 5. Then send the key combination Shift+L. Ensure to handle the window checks and activations accurately and send the keystrokes to the correct windows. # Steps - Monitor the F1 key press. - Use AutoHotkey commands to detect window existence and titles. - Send keys to the specified windows as per the sequence. # Output Format Provide the complete AutoHotkey v2 script implementing this behavior, including comments for clarity if necessary.

AI Agency Landing Page

Create a modern, simple-to-use landing page for an AI and automation agency website based on the theme of the reference image that will be provided. The landing page should reflect a clean, professional, and contemporary aesthetic that aligns with the AI and automation industry. It must be responsive and user-friendly, with clear sections including a hero area with a compelling headline, brief description, call-to-action button, and navigation. Use a color scheme, typography, and style consistent with the reference image. The code should be suitable for deployment on GifHub. Focus only on the landing page for now and ensure the code is well-structured and commented for easy future expansion.

AI Agent Creator Platform

Create a detailed plan and example code snippets for building an AI agent creator platform using Python frameworks. The platform should function similarly to JotForm, allowing users to visually design AI agents by configuring components or steps through a user-friendly interface. Include the following details: - Overview of the architecture, including frontend and backend components. - Suggested Python frameworks and libraries suitable for building the platform (e.g., Flask or Django for backend, and any JS frameworks for frontend integration). - How to handle the creation, configuration, and storage of AI agents. - Approaches for integrating AI models into the agents. - Example code snippets demonstrating key parts of the system, such as defining agent creation endpoints, saving form configurations, and invoking AI models. # Steps 1. Define the core functionality mimicking JotForm's visual form builder but tailored for AI agent creation. 2. Choose appropriate Python backend frameworks and frontend technologies. 3. Design database schema or data structures to save user-created AI agents and their configurations. 4. Implement API endpoints that allow frontend to create, update, delete, and run AI agents. 5. Integrate AI capabilities, specifying how models are linked to the agents. 6. Provide example code snippets for backend and frontend components. # Output Format Provide a structured and detailed explanation of the platform design followed by Python code examples. Use markdown with code blocks for code snippets and bullet points or numbered lists to organize content for clarity.

AI Agent Discord Bot in GoLang

Create a Discord Bot in GoLang that acts as an AI Agent for monitoring deals posted as embeds in a user-specified channel. The bot must: - Connect to Discord using best practices and listen to all incoming embed messages in the target channel specified by the user. - Extract price information from each embed reliably, handling various embed formats and currencies. - Perform a web search or query a reliable API to gather pricing data for the item mentioned in the embed. - Analyze the gathered data to determine if the embed's price is a genuine outlier (a significantly good deal) compared to typical prices. - Upon detecting a valid outlier deal, send a ping notification (direct message or mention) to the user or a specified recipient. - Optimize the bot for running on Railway server, considering environment variables for Discord tokens and any API keys. - Include error handling, logging, and appropriate concurrency management. # Steps 1. Setup Discord bot authentication and event listeners in GoLang. 2. Parse message embeds to extract product and price data. 3. Integrate a web scraping method or a product price API to fetch normal price ranges. 4. Implement comparison logic to identify outlier low prices. 5. Send alert notifications to the configured user/account. 6. Provide instructions to deploy this bot on Railway, including environment variable setup. # Output Format Provide the complete GoLang source code for the Discord bot including: - Clear comments explaining important sections, especially data extraction and pricing logic. - Configuration guidance (how to specify channel, user ID, tokens). - A brief README snippet or usage notes relevant to Railway hosting. Use clean, idiomatic Go, and ensure the code compiles and functions as described.

AI Agent for Android

Design and implement an AI agent for Android, focusing on functionality, user interaction, and seamless integration with the Android ecosystem. Consider the different use cases for the agent, such as voice recognition, task automation, and personalized recommendations. Utilize available AI frameworks and libraries to enhance performance and usability.

AI Agent Logs Viewer

Create a monorepo structured application that allows viewing of your AI AGENT Garry's voice call logs, SMS sent, active status, and analytics. The application should consist of separate frontend and backend components within the monorepo. The backend must make API calls to VAPI for voice call logs and to VONGAGE or TWILIO for SMS logs. It should also integrate with MAKE.com scenarios to fetch and update relevant data for analytics and active status. Ensure secure and efficient data handling, with clear separation of concerns between the frontend and backend. The frontend should provide an intuitive user interface to display voice call logs, SMS logs, active status, and analytics derived from the fetched data. Include filtering, sorting, and visualization features where appropriate. # Steps - Set up a monorepo with clearly separated frontend and backend projects. - Backend: - Implement API clients for VAPI (voice call logs), VONGAGE or TWILIO (SMS logs). - Integrate MAKE.com scenarios for active status and analytics data. - Design RESTful or GraphQL APIs to expose data to the frontend. - Handle authentication, error handling, and data caching as needed. - Frontend: - Develop UI components showing: - Voice call logs - SMS sent logs - Active status - Analytics dashboard - Provide user interactions such as filtering, sorting, and date range selection. - Connect to backend APIs securely to fetch data. # Output Format Provide a detailed project plan and optionally example code snippets demonstrating: - Monorepo layout structure - Backend API integration specifics - Frontend component architecture The output should be technical and actionable, suitable for initiating development.

AI Agent Practice Project Ideas

Generate practical project suggestions for programming AI agents in Python, especially focusing on API calls, tool usage, and data retrieval. Provide ideas that integrate or utilize a given JSON file containing sales data. Include clear explanations of how the sales data could be leveraged in different projects for meaningful practice. # Steps 1. Analyze the components of the sales data JSON file to identify key attributes (e.g., sales amounts, dates, products, customers). 2. Suggest example projects or mini-applications that make use of API calls or external tools with this data. 3. Describe potential functionalities such projects can include, such as data analytics, visualization, forecasting, or automation. 4. Highlight how to incorporate both API/tool interactions and the local data file usage cohesively. # Output Format Provide a numbered list of 3 to 5 example project ideas, each accompanied by a brief explanation outlining the project's goal, how to use the sales data, and what API or tool features to practice. # Notes - Emphasize beginner to intermediate level projects matching the user's current learning stage. - Avoid assuming access to specific APIs unless common or freely available. - Encourage creativity in combining external APIs/tools and local data processing.

AI Agent Subscription Website

Create a fully functional website that sells AI agents or offers users access to AI agents through a monthly subscription model. The website should include the following features: - A clear homepage showcasing the AI agents' capabilities and subscription plans. - Detailed product pages describing each AI agent, including features, benefits, and pricing. - User registration and secure login system. - Subscription management allowing users to subscribe, upgrade, downgrade, or cancel their plans. - Payment integration to handle monthly fees securely. - Responsive design ensuring usability across devices (desktop, tablet, mobile). - An admin panel for managing AI agent offerings, subscriptions, and user management. # Steps 1. Design the website layout and user flow. 2. Develop frontend components using modern web technologies (e.g., React, Vue, or plain HTML/CSS/JS). 3. Implement backend services to handle user authentication, subscription logic, and AI agent access. 4. Integrate a payment gateway (like Stripe or PayPal) for recurring monthly payments. 5. Set up a scalable system to grant and manage access to AI agents based on subscription status. 6. Test the full user journey including sign up, subscription purchase, access to AI agents, and cancellation. # Output Format Provide the complete source code for the website, including frontend, backend, and any configuration files. Include inline comments explaining major parts of the code. Also provide documentation detailing setup instructions, dependencies, and how to deploy the site. # Notes - Prioritize security best practices, especially for handling user data and payments. - Use modern frameworks and libraries where appropriate. - Ensure the website is accessible and user-friendly. - Assume AI agents are accessible via APIs; simulate or mock AI agent responses if needed.

AI Agent Training App Specification

Create a detailed specification and implementation plan for an app that trains an AI agent. The app should allow users to define the AI agent's learning objectives, training data inputs, and evaluation criteria. It should support iterative training cycles with performance feedback, allow for adjustment of training parameters, and provide clear visualization of learning progress and outcomes. Include considerations for the AI agent's architecture (e.g., neural network, reinforcement learning, etc.), the type of data it will be trained on, and methods for monitoring and improving training effectiveness. # Steps 1. Define the AI agent's purpose and learning objectives. 2. Identify and prepare the training datasets. 3. Design the app interface for inputting training parameters and monitoring progress. 4. Implement the training loop with capability to update parameters based on performance. 5. Incorporate evaluation metrics and visualization components. 6. Test the app with sample data and adjust based on results. # Output Format The output should be a comprehensive document including: - Detailed app requirements and features - Technical architecture overview - Implementation steps and technologies used - Sample code snippets (if applicable) - User interface design outline - Evaluation and feedback mechanisms # Notes Ensure the app is adaptable to different AI agent types and training scenarios. Prioritize clarity, usability, and extensibility in the design. # Response Formats Provide the response as a structured, well-organized plan suitable for development.

Page 64 of 68

    Coding Prompts - Learning AI Prompts | Elevato