Simple Strategy for BTCUSD in MT4

MQL4 Experts

Job finished

Execution time 130 days

Specification

Strategy Specification for BTCUSD


Platform MT4



Input Variables

Variable Name Format Description
Trade_Time hh:mm Time to place pending orders
Start_Time hh:mm Start of range detection window
End_Time hh:mm End of range detection window
Gap_Divider int Divides the range (Gap) to calculate Buffer
Risk_Per_Trade double Risk per trade in USD
TP_Factor double Multiplier for Take Profit distance
SL_Factor double Multiplier for Stop Loss distance
Expiry_Time_Hours_From_Now double How long to keep the pending orders before expiry
Cleanup_X_Min_Before int Minutes before next day’s Trade_Time to force close open trades

EA Logic


1. Daily Setup Time

  • At Trade_Time , the EA will execute its logic.


2. Range Detection

  • Between Start_Time and End_Time (the window that has just passed):

    • Detect:

      • Max_Price = Highest price in this range

      • Min_Price = Lowest price in this range

    • These are calculated by the EA.

    • Display on the chart:

      • Max_Price

      • Min_Price


3. Gap and Buffer Calculation

  • Calculate:

    • Gap = Max_Price - Min_Price

    • Buffer = Gap / Gap_Divider

  • Display on the chart:

    • Gap

    • Buffer


4. Risk and Trade Parameters

  • Calculate:

    • Lot_Size = (Risk_Per_Trade × SL_Factor) / Gap

  • Display on the chart:

    • Lot_Size

    • TP_Factor

    • SL_Factor

    • Expiry_Time_Hours_From_Now


5. Pending Orders at Trade_Time

  • Buy Stop:

    • Entry: Max_Price + Buffer

    • TP = TP_Factor × Gap (measured from Max_Price, not opening price )

    • SL = SL_Factor × Gap (measured from Max_Price, not opening price)

    • Lot_Size as calculated

    • Set expiry to Expiry_Time_Hours_From_Now

    • If triggered and still open, close it  Cleanup_X_Min_Before  minutes before next day’s  Trade_Time

  • Sell Stop:

    • Entry: Min_Price - Buffer

    • TP = TP_Factor × Gap (measured from Min_Price, not opening price)

    • SL = SL_Factor × Gap (measured from Min_Price, not opening price)

    • Lot_Size  as calculated

    • Set expiry based on  Expiry_Time_Hours_From__Opening

    • If triggered and still open, close it Cleanup_X_Min_Before  minutes before next day’s Trade_Time


The following variables and their values should be displayed on the chart window. Text colour must be changeable by the user.

  • Gap

  • Buffer

  • Lot_Size

  • TP_Factor

  • SL_Factor

  • Expiry_Time_Hours_From_Opening

  • Cleanup_X_Min_Before


6. Cleanup

  • Once both trades and pending orders are closed:

    • Remove all chart objects/text related to:

      • Gap

      • Buffer

      • Lot_Size

      • TP_Factor

      • SL_Factor

      • Expiry_Time_Hours_From_Now

      • Cleanup_X_Min_Before





Responded

1
Developer 1
Rating
(329)
Projects
515
19%
Arbitration
35
46% / 31%
Overdue
34
7%
Working
2
Developer 2
Rating
(50)
Projects
64
20%
Arbitration
11
27% / 55%
Overdue
5
8%
Free
3
Developer 3
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(274)
Projects
403
28%
Arbitration
40
40% / 50%
Overdue
1
0%
Free
5
Developer 5
Rating
(7)
Projects
6
0%
Arbitration
4
25% / 75%
Overdue
2
33%
Free
6
Developer 6
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Working
Similar orders
I need an AI based mt5 EA which self learns and improves on its previous mistakes. The EA must be able to utilize numerous trade set ups like; 1. CRT, 2. liquidity sweep reversal at selected higher timeframe where a candle sweeps previous candle high and closes lower or sweeps previous candle low and closes higher, 3. SMC where it trades on OB, CHoCH, BOS. 4. Support and resistance. It should trade any currency pair
i need some tradingview strategy that i want to use as a tester, i have something that i am working on currently and i need someone that can provide me with tradingview strategies that doesn't have a win rate, the one with 1:1 RR it need to have low win rate like 10% or 5% profitability, i am not paying $30 for,i dont have up to that for this cause i only want to use it as a test, if anyone have any to send me please
hello i need help building a ea bot for mt5 and i have started on claude but i will need someone if a incredible experience to make my ideas come to live. please contact so we can schedule a quick call and i can share anything that concerns you for the task
I am looking for someone with real experience developing strategies, indicators, or trading tools for Quantower . The strategy itself is relatively simple. The main issue is that I need to use some of Quantower's functions and API capabilities to program the strategy, but there is limited documentation available for some of the functionality, and I do not have enough time to fully understand the API and implement
I am looking for an experienced MQL5 developer who can BOTH research trading strategies and develop a commercial-quality MetaTrader 5 Expert Advisor. This is NOT simply a coding job. The developer is free to choose the trading logic, indicators, entry method, exit method, timeframe architecture and strategy type. I do not require the EA to copy or resemble any existing commercial EA. My priority is: ROBUST LONG-TERM
A developer will create an AI assisted EA forex watch-list scanner (not an auto-trader) designed to surface PDL/PDH bounces on M15, with coding in Python/MQL5. This will strictly be a market intelligence and scanning tool (no automatic order placement) and EA primary function will be a delivery of visual dashboard UI, 2-phased alerts (warning vs. execution), and multi-channel notification. 1. Project Overview &
Hello, please make me a simple MT5 Expert Advisor for XAUUSD on M15 timeframe. TRADING LOGIC: - BUY when EMA(10) crosses UP EMA(30) - SELL when EMA(10) crosses DOWN EMA(30) TRADING HOURS: - Only trade between 19:00 - 22:00 WIB / Jakarta time RISK SETTINGS: - Lot size: 0.01 - Stop Loss: 70 points - Take Profit: 150 - 300 points - Max 1 open position Please deliver .ex5 file ready to use. Thank you
Gods Plan v8 30 - 500 USD
//+------------------------------------------------------------------+ //| GODS PLAN V8.mq5 | //| Tebogo | //| tebogophago298@gmail.com | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| Expert initialization function |
I’m looking to purchase an existing, proven Trend-Following EA for MT5 . I am NOT looking to develop a new EA from scratch , so please read the requirements carefully before applying. The EA should follow a market-structure/trend-following approach similar to this: Identify a clear Break of Structure (BOS) to confirm the trend direction. Wait for a pullback/retracement instead of chasing the initial breakout. Enter
I am looking for an experienced MQL5 developer to create a fully automatic MT5 Expert Advisor (EA) for frequent small-profit trades. My current manual strategy is simple: I watch short-term price movement, enter when price starts moving strongly up or down, and close once a small profit is achieved. I want an EA that can identify these movements and automatically repeat this process throughout the day. Main

Project information

Budget
30+ USD
Deadline
from 1 to 2 day(s)