Back to Learning

Coding

814 prompts available

1-Min Futures TradingView Strategy

Generate detailed Pine Script strategies designed for 1-minute intervals on TradingView that can be used for auto trading futures securities. Ensure the strategies include clear entry and exit conditions, risk management techniques like stop-loss and take-profit, and are compatible with TradingView's auto trading capabilities. When creating the scripts, provide well-commented code to explain the logic and usage. # Steps 1. Define the strategy's trading logic suitable for 1-minute timeframes targeting futures markets. 2. Implement necessary indicators and calculations for entry and exit signals. 3. Incorporate risk management parameters such as stop-loss, take-profit, and position sizing. 4. Ensure the strategy uses TradingView's `strategy` functionality for automation compatibility. 5. Comment the code thoroughly to clarify each part of the script. # Output Format Provide the complete Pine Script code with comments, formatted for direct use in TradingView's Pine Editor.

2D Pixel Anime Clicker Idle Game Design

Create a comprehensive design and script outline for a 2D pixel-art anime-style clicker idle game developed in the Godot engine. The game should blend multiple genres and themes: BL romance, fantasy isekai, battle mechanics, and town simulation. Key Requirements: - Visual Style: 2D pixel art with anime aesthetics. - Engine: Godot. - Gameplay Elements: Clicker and idle mechanics combined with battle sequences and town building/simulation. - Narrative: Incorporate a BL romance storyline within a fantasy isekai setting. - Content Scope: Provide full scenes descriptions and detailed scripts including dialogue, gameplay scripting guidance, and event triggers. # Output Format - Structured outline divided into sections: Characters, World, Town Simulation, Battle Mechanics, Story Scenes, and Scripts. - Include code snippets formatted in markdown with proper syntax highlighting for Godot's GDScript.

2048 Game with Info Sections

Create a complete, responsive 2048 puzzle game webpage using only HTML, CSS, and JavaScript. The webpage should include the following sections: 1. **2048 Game**: Implement the classic 2048 puzzle game allowing users to combine tiles by swiping or using arrow keys to reach the tile 2048. 2. **How to Play**: Provide clear instructions on how to play the game. 3. **FAQs Section**: Include frequently asked questions relevant to the game. 4. **Privacy Policy**: Add a straightforward privacy policy explaining data usage. Ensure the entire solution uses only HTML, CSS, and JavaScript without external frameworks or libraries. The design should be clean, user-friendly, and visually appealing, maintaining mobile responsiveness. # Output Format - Provide a single complete HTML file containing embedded CSS and JavaScript. - Ensure code is well-organized, commented, and readable.

1-Min Gold Trend Scalping Bot

Create a detailed design and strategy outline for a 1-minute gold trend-wise scalping robot meant for trading. The robot should efficiently analyze short-term gold price trends to initiate quick scalping trades that aim to profit from small price movements within a 1-minute timeframe. Consider incorporating technical indicators suitable for short-term trend detection, entry and exit criteria based on trend confirmation, risk management parameters like stop-loss and take-profit levels, and any filters to reduce false signals. # Steps 1. Identify appropriate technical indicators for trend detection on a 1-minute gold chart. 2. Define entry conditions that align with the detected short-term trend. 3. Set exit rules aimed at capturing small profits quickly while limiting losses. 4. Incorporate risk management including stop-loss and position sizing. 5. Explain how the robot filters out noise or false signals. 6. Outline the algorithmic logic flow in step-by-step detail. # Output Format - Provide a clear, structured description of the scalping robot's strategy. - Include pseudo-code or algorithmic logic steps demonstrating how the robot operates.

30-Day Compounding EA

You are tasked with developing an Expert Advisor (EA) compatible with AlgoBuilder AI that implements a precise 30-day compounding trading strategy starting from a $100 account aiming to reach $1,000. The EA will trade bullish and bearish reversal candlestick patterns detected at candle close, specifically: Bullish Pin Bar, Bearish Pin Bar, Morning Star, Evening Star, Bullish Engulfing, and Bearish Engulfing. It must operate on user-selectable timeframes of H1 or H4 and support all Forex pairs and commodities explicitly including XAUUSD. Key requirements include trading strategy implementation, 30-day compounding plan, risk and money management with dynamic lot sizing, break-even and trailing stop management, and an on-chart dashboard. # Output Format Deliver the entire EA source code file (.mq4 or .mq5) ready for direct use in AlgoBuilder AI and MT4/MT5, containing comprehensive inline code comments.

15 Puzzle Game

Create a complete and functioning implementation of the classic 15 Puzzle game using JavaScript, HTML, and CSS. The game should have the following features: - A 4x4 grid displaying tiles numbered from 1 to 15, with one empty space. - Tiles can be clicked or moved using keyboard or mouse interactions to slide into the empty space if adjacent. - A shuffle function that randomizes tile positions into a solvable configuration before the game starts. - Real-time checking to detect when the puzzle is solved, with a clear notification or alert to the player. - A visually appealing and responsive user interface. - Well-organized, clean, and readable code with comprehensive comments. # Output Format - A complete JavaScript program along with its accompanying HTML and CSS code. - The code should be fully ready to run in a browser. - Comments explaining each part of the code.

32bit to 64bit C++ Migration

Convert a given 32-bit C++ code file into a 64-bit compatible C++ code. Your goal is to migrate the provided 32-bit C++ code into a 64-bit version. Modify the code to handle 64-bit architecture specifics, such as data types, pointer sizes, and any potentially platform-dependent code. When you provide the solution, include only the function(s) that were modified or added to achieve 64-bit compatibility, and a main() function that tests these functions. # Steps 1. Analyze the 32-bit C++ file to identify platform-dependent constructs. 2. Update data types to appropriate 64-bit equivalents. 3. Handle any pointer casts or arithmetic to be 64-bit safe. 4. Simplify and optimize for 64-bit systems as applicable. 5. Write a concise main() function that calls and tests the updated function(s). # Output Format Return a C++ code snippet containing the modified function(s) and a main() function demonstrating a test case.

15 Puzzle Game Implementation

Create a functioning implementation of the classic 15 Puzzle game using JavaScript. The game should have a 4x4 grid with tiles numbered 1 through 15 and one empty space. The implementation must include the following features: - Functionality to shuffle the tiles randomly before the game starts. - User interaction that allows players to slide tiles into the empty space when adjacent. - A method to check and determine when the puzzle is solved, which should notify players. - A responsive and visually appealing user interface. - Comprehensive comments and documentation within the code to facilitate understanding. Ensure to follow best coding practices and utilize HTML/CSS for the presentation of the game.

1-Minute EA

Create an Expert Advisor (EA) for MetaTrader that operates on a 1-minute time frame. The EA should be designed to execute trades based on a clear and logical trading strategy suitable for the 1-minute chart. Include well-commented code that explains key parts of the logic, including entry and exit conditions, stop-loss and take-profit levels, and money management rules. # Steps 1. Define the trading strategy clearly (e.g., moving average crossover, RSI thresholds, etc.). 2. Implement initialization code for setting parameters and time frame. 3. Write the OnTick() function to process each new tick considering the 1-minute timeframe. 4. Include robust risk management (stop loss, take profit, position sizing). 5. Add error handling and logging where appropriate. # Output Format Provide the full MetaTrader EA code in MQL4 or MQL5 format, fully commented, ready to be compiled and tested.

2D Pixel RPG with Save & Multiplayer

Create a detailed, well-structured Pygame script for a 2D pixel-style action RPG game featuring swords, magical powers, and multiplayer functionality. The game should support saving and loading player progress through save files stored locally on the computer. Implement a user interface element allowing players to input the name of their save file to load their saved game state accurately. Key Requirements: - 2D pixel art style gameplay with sword combat and powers. - Multiplayer capability allowing multiple players to interact or cooperate. - Save and load functionality enabling players to create, name, and retrieve save files. - Save files should be stored on the local machine in a format that can be loaded by entering the filename. - Clear code structure with comments explaining major sections. - Compatibility with Pygame and VS Code setup. # Output Format Provide the full Python Pygame script including all necessary classes, functions, and UI elements. Include in-line comments where appropriate and a brief usage guide.

2048 Puzzle Game

Create a complete and functional 2048 puzzle game using HTML, CSS, and JavaScript. The game should replicate the classic 2048 gameplay where the player combines numbered tiles by sliding them on a 4x4 grid to create a tile with the number 2048. Requirements: - The game grid must be 4x4 cells. - Use arrow keys to move tiles. - Tiles with the same number merge when they collide during a move. - After each move, a new tile (2 or 4) appears in a random empty cell. - Display the current score, updated as tiles merge. - Show a game over message when no more moves are possible. - Provide a button to restart the game. # Output Format Return a single HTML file containing the embedded CSS and JavaScript that fully implements the described 2048 game, ready to be opened and played in a web browser.

3D Animated Dev Portfolio

Create a comprehensive developer portfolio that features 3D animated typography and design elements showcasing your skills and projects effectively. The portfolio should be visually engaging, modern, and professional, highlighting your development expertise through interactive 3D animations. Include the following sections: - Introduction: Brief personal bio with an animated 3D name or logo. - Skills: Display key technical skills with dynamic 3D icons or charts. - Projects: Showcase major projects using interactive 3D cards or models. - Experience: Timeline or summary of work history with smooth 3D transitions. - Contact: Animated contact form or clickable icons with subtle 3D effects. # Output Format Provide the complete portfolio source code including HTML, CSS, JavaScript, and any necessary assets or dependencies. Include documentation describing how to deploy and customize the portfolio.

Page 5 of 68

    Coding Prompts - Learning AI Prompts | Elevato