MQL5: Open buy & sell trade at particular times(user input) based on recent market activity

仕事が完了した

実行時間9 日
開発者からのフィードバック
Great client. Understanding of problems and willing to work together to find a way around them.

指定

Hi,

Would like to order an MQL5 Expert script to perform the following.

At the date/time specified open a buy and a sell pending order, which entry points are defined by the last X minutes of activity (based on high/low). All this is based on M1 time frame. If either order is filled, the other order is cancelled. Also the ability to cancel both orders if neither is filled within XX time.

Variables (Example only)

Variable

Definition

u_EntryTime

UserInput: This is the date/time that the buy/sell trade will open. eg "17.11.17 22:30"

u_CurrencyPair

UserInput: What currency pair the trade should be against. eg. "AUDUSD"

u_EntryTimeHistory

UserInput: Number of points to read up to the u_EntryTime (Eg is set to 2, then read the high/low from 17.11.17 22:29 & 22:28).

i_HighPoint

InternalVar: the High from the EntryTimeHistory

i_LowPoint

InternalVar: the low from the EntryTimeHistory

i_BuyAt

InternalVar: This is the entry point for the Buy order eg. i_StopLossHigh + u_EntryLevelPips

i_SellAt

InternalVar: This is the entry point for the Sell order eg. i_StopLossLow - u_EntryLevelPips

u_ProfitPips

UserInput: Take profit level (eg 100)

i_BuyProfit

InternalVar: Exit point for Buy Profit (i_BuyAt+u_ProfitPips)

i_SellProfit

InternalVar: Exit point for Sell profit (i_BuyAt+u_ProfitPips)

u_EntryLevelPips

UserInput: Value above Stop Loss to entry the market at; eg 10

u_CloseIfNotOpened

UserInput: Close all trades after XX minutes if orders are still pending eg. 5 = if neither order has been filled after 5 mins, close them both.

u_Volume 

UserInput: Trade volume eg 0.01

u_StopLossPips

UserInput: The stoploss adjuster eg 10

i_StopLossHigh

InternalVar: i_HighPoint+u_StopLossPips

i_StopLossLow

InternaVar: i_Lowpoint-u_StopLossPips

 

 

Conditions

  • If either buy or sell is completed, then close the other pending trade.
  • If neither are opened after u_ClosedIfNotOpened then close both pending trades.
  • Must be able to work with JPY as well

Would like the ability to be able to input multiple trades, eg if there were 5 in a day or the same trade against multiple currencies at the same.

I have attached a basic spreadsheet with how the calculations should work, please let me know if you have any questions at all. The spreadsheet is only basic and only works for AUDUSD (doesn't work for JPY).



応答済み

1
開発者 1
評価
(88)
プロジェクト
143
39%
仲裁
21
19% / 48%
期限切れ
30
21%
2
開発者 2
評価
(3)
プロジェクト
8
13%
仲裁
10
10% / 70%
期限切れ
2
25%
類似した注文
the code wasn't mine, i have got it somewhere on the web, but i like the performance of the EA, so i want to use it on mt5 platform. the given code based on price movements with ladder entry concept
Preciso de um EA, que faça o fecho automático de operações abertas no final da sessão e nas notícias de alto impacto. Um EA simples com apenas 1 função. Fecho das operações abertas
Enter buy trade at close of candle when bar closes above the 3 emas. Emas are 34 ema, 64 ema and 128 ema. For a buy trade the 34 ema must be above the other two emas. The 64 ema should be in the middle. The 128 ema should be below the other two emas. For a buy trade the Awesome Oscillator should be above the middle line and colored green. Exit a buy trade when price touches 64 ema. Sell trade same conditions as buy
I want to make AI based on Attached Picture Swing High low. If you have experience can share demo first. Stop loss, take profit, trailing , break even ,DD etc. also amiable
Hello, I’m looking for a TradingView indicator that fits my forex trading needs. If you can create or customize one for me, please reach out. I'd appreciate your help! Thanks in advance."
I need someone who can code a new EA from scratch and also know how to integrate AI into the EA and use AI and market sentiments along with news to then open positions. I have the description of the job ready. Need someone serious, with experience and who will help optimize the current strategy with their expertise. Thanks
I’m looking for an experienced MQL5 developer to create a custom Break of Structure (BoS) Indicator for MetaTrader 5. This indicator should automatically detect and mark key market structure breakpoints in real-time, offering traders clear visual signals when the market experiences a structural shift. The indicator should include the following features: Automatic detection of Break of Structure (BoS) and Change of
Pls I need help I don’t have much but pls accept my little payment for the work thanks 🙏 mt5 file Once it opens buy and move positively to buy let it use auto trailing to follow the trend that’s if I choose to use trailing option and before the trailing starts it must reach the actual profit target example if I set profit target to 500 then once profit is at 500 let trailing immediately protect it and any 1 pip
I need a tested and profitable EA. I don’t want backtested EA but real live tested. At least, 5~10 % per month. Name your price!!! I also have a backtested EA that can’t make profit at the end of the month
Hey greetings am in need of a developer that can convert my simple tradingview indicator to MT4 I have the source code of the indicator and is also a public indicator on Tradingview site Kindly bid and let started

プロジェクト情報

予算
30+ USD
開発者用
27 USD