Use AI to Create an EAsiScript Preset File

EAsiScript enables you to leverage artificial intelligence for creating preset files and developing trading strategies. By providing AI with your strategy requirements and the EAsiTrader documentation, you can generate compliant preset files that are ready for testing and optimization. This approach combines the efficiency of AI with your trading expertise, allowing you to rapidly develop and refine strategies while maintaining full control over their implementation and risk management.

The key to successful AI-assisted development is providing clear strategy requirements and ensuring the AI has access to all necessary documentation. This section will guide you through the process of preparing your requirements, working with AI to generate preset files, and properly testing the resulting strategies.

1. Prepare Your Strategy Details

Before engaging with AI, clearly define the specifics of your trading strategy:

  • Entry and Exit Rules: Conditions for opening and closing trades
  • Risk Management: Stop loss, take profit, breakeven levels, or trailing stops
  • Indicators: Specify indicators like RSI, Moving Averages, or ATR
  • Special Conditions: Add any time-based filters, multi-symbol requirements, or other specific needs

2. Upload the User Guides to AI

Provide AI with the foundational documentation:

  • EAsiTrader User Guide: Core functionality and settings
  • EAsiScript User Guide: Scripting language and functions
  • Learn EAsiScript Guide: Examples and best practices

These guides contain all the information AI needs to generate accurate scripts and ensure compliance with EAsiTrader’s requirements.

3. Ask AI to Create Your Preset

Provide your strategy requirements in a clear, structured format:

  • Specify it must comply with “Rules for Creating Main Preset Files”
  • Use Defaults.set as template
  • Request verification against the template
  • Include specific symbols and timeframes
  • Detail any optimization requirements

4. Save the Generated Content

  • Copy AI-generated output to a plain text editor
  • Save with a descriptive name and .set extension (e.g., TrendFollowing.set)
  • Verify proper formatting and section structure

5. Copy the Preset File to the EAsiTrader Folder

  • Locate your MetaTrader data folder path:
    • MQL5\Files\EAsiTrader
  • Place the .set file in this directory
  • The preset will appear in EAsiTrader’s Profile Dropdown

6. Load the Preset

  • Open EAsiTrader in MetaTrader 5
  • Select your new preset from the Profile Dropdown
  • Verify all settings loaded correctly
  • Verify required indicators are enabled

7. Test the Preset

  • Use EAsiTrader’s Tester feature
  • Start with visual backtesting
  • Verify entry/exit logic
  • Check risk management behavior
  • Test in different market conditions

8. Activate for Live Trading

  • Complete thorough testing first
  • Enable Auto Trading in EAsiTrader
  • Monitor initial trades closely
  • Keep detailed performance records

9. Iterate and Optimize

  • Review strategy performance
  • Identify areas for improvement
  • Generate new variations using AI
  • Optimize parameters using Tester

AI Prompt Examples

These examples demonstrate effective AI prompts for generating EAsiTrader preset files and trading strategies. Each example includes the exact text you should give to the AI, formatted with specific requirements and the mandatory preset file compliance instructions.

CRITICAL: INCLUDE THESE INSTRUCTIONS WITH EVERY PROMPT

When providing any of these example prompts to AI, you MUST include these exact instructions as part of your prompt:

“The preset file must strictly comply with all the ‘Rules for
Creating EAsiTrader Preset Files’. Use the Defaults.set Preset File as
a template. Verify your content by cross referencing your sections and
settings with those from the template. Any deviation or omission
will be considered a failure to complete the task
.”

⚠️ WARNING: Omitting these instructions from your prompt will likely result in invalid preset files that will not work correctly in EAsiTrader. Remember that the AI cannot see or access these instructions unless you explicitly include them in your prompt.

Each example below shows a complete prompt that you can copy and use directly with AI. Pay attention to how the required instructions are integrated with the strategy specifications in each prompt.

Example 1: Basic Strategy

Copy this complete prompt:

"Create an EAsiScript preset file for a strategy based on RSI levels.

The preset file must strictly comply with all the ‘Rules for
Creating EAsiTrader Preset Files’. Use the Defaults.set Preset File as
a template. Verify your content by cross referencing your sections and
settings with those from the template. Any deviation or omission
will be considered a failure to complete the task
.

Strategy Details

  • Entry: Go long when RSI crosses above 30, go short when RSI crosses below 70
  • Stop Loss: 2 times ATR below/above entry price for long/short trades
  • Take Profit: Fixed at 50 points for all trades
  • Exit: Close trade if the opposite RSI condition occurs
  • Execution: Runs on EURUSD on the M30 timeframe"

Example 2: Trend-Following Strategy

Copy this complete prompt:

"Please create an EAsiScript Preset File for a strategy using multiple
moving averages.

The preset file must strictly comply with all the ‘Rules for
Creating EAsiTrader Preset Files’. Use the Defaults.set Preset File as
a template. Verify your content by cross referencing your sections and
settings with those from the template. Any deviation or omission
will be considered a failure to complete the task
.

Strategy Details

  • Entry: Enter when fast MA crosses above slow MA with RSI confirmation
  • Stop Loss: Set below recent swing low with ATR buffer
  • Take Profit: Use ATR to calculate 3:1 reward:risk ratio
  • Exit: Exit if MA cross reverses or RSI conditions change
  • Execution: GBPUSD, H1 timeframe"

Example 3: Complex Multi-Timeframe Strategy

Copy this complete prompt:

"Generate an EAsiScript Preset File for a complete trading system.

The preset file must strictly comply with all the ‘Rules for
Creating EAsiTrader Preset Files’. Use the Defaults.set Preset File as
a template. Verify your content by cross referencing your sections and
settings with those from the template. Any deviation or omission
will be considered a failure to complete the task
.

Strategy Details

  • Markets: EURUSD, Primary M15, Secondary H1
  • Entry Conditions:
    • H1 trend alignment (using MA)
    • M15 momentum confirmation (using RSI)
    • Volume confirmation
  • Risk Management:
    • Dynamic ATR-based stops
    • Trailing stop after breakeven
    • Multiple take profit targets
  • Time Filters: Active during London/NY overlap
  • Position Sizing: Risk 1% per trade"

Example 4: Breakout Strategy

Copy this complete prompt:

"Generate an EAsiScript Preset File for a Bollinger Band breakout
strategy.

The preset file must strictly comply with all the ‘Rules for
Creating EAsiTrader Preset Files’. Use the Defaults.set Preset File as
a template. Verify your content by cross referencing your sections and
settings with those from the template. Any deviation or omission
will be considered a failure to complete the task
.

Strategy Details

  • Entry: Go long if price breaks above upper band with volume surge
  • Stop Loss: Use trailing stop based on 2 ATR
  • Take Profit: Use 5% of account equity as target profit
  • Exit: Close position if price re-enters the bands
  • Execution: GBPUSD, H1 timeframe, with risk of 1% per trade"

Example 5: Mean Reversion Strategy

Copy this complete prompt:

"Help me create an EAsiScript Preset File for a mean reversion
strategy.

The preset file must strictly comply with all the ‘Rules for
Creating EAsiTrader Preset Files’. Use the Defaults.set Preset File as
a template. Verify your content by cross referencing your sections and
settings with those from the template. Any deviation or omission
will be considered a failure to complete the task
.

Strategy Details

  • Entry: Enter long when RSI below 30 and returns above it
  • Stop Loss: Place at low of last 5 bars
  • Take Profit: Target twice the stop-loss distance
  • Exit: Exit on MA cross or RSI above 70
  • Execution: USDJPY, M15 timeframe"

Example 6: Asian Session Range Strategy

Copy this complete prompt:

"Create a preset for trading the Asian session range breakout.

The preset file must strictly comply with all the ‘Rules for
Creating EAsiTrader Preset Files’. Use the Defaults.set Preset File as
a template. Verify your content by cross referencing your sections and
settings with those from the template. Any deviation or omission
will be considered a failure to complete the task
.

Strategy Details

  • Symbol: USDJPY M30
  • Range Definition: 00:00-03:00 Tokyo
  • Entry: Break of range high/low after range formation
  • Filters: Minimum range size using ATR
  • Risk: Dynamic based on range size
  • Exit: Before Tokyo lunch or at 1:1 reward:risk"

Example 7: Support/Resistance Strategy

Copy this complete prompt:

"Create a preset for trading key support/resistance levels.

The preset file must strictly comply with all the ‘Rules for
Creating EAsiTrader Preset Files’. Use the Defaults.set Preset File as
a template. Verify your content by cross referencing your sections and
settings with those from the template. Any deviation or omission
will be considered a failure to complete the task
.

Strategy Details

  • Symbol: EURGBP H1
  • Indicator: HLines for dynamic S/R levels
  • Entry: Reversal candle at S/R with RSI confirmation
  • Stop Loss: Beyond the S/R level plus buffer
  • Take Profit: Distance to next S/R level
  • Filters: Minimum distance between levels using ATR
  • Time: Active during London session only"

Example 8: Double Zero Level Strategy

Copy this complete prompt:

"Generate a preset for trading psychological price levels.

The preset file must strictly comply with all the ‘Rules for
Creating EAsiTrader Preset Files’. Use the Defaults.set Preset File as
a template. Verify your content by cross referencing your sections and
settings with those from the template. Any deviation or omission
will be considered a failure to complete the task
.

Strategy Details

  • Symbol: USDCAD H4
  • Entry: Reversal at 00 levels (1.3200, 1.3300, etc.)
  • Confirmation: MACD cross and minimum volume
  • Stop Loss: ATR-based beyond the level
  • Management: Trail stop to breakeven after 20 pips
  • Risk: 1% per trade, scaled by distance to stop"

Visit the Presets Page for more examples which you can download to use in EAsiTrader.

Rev:21.12.2024 06:25