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

MQL5 Experts Forex

Job finished

Execution time 9 days
Feedback from employee
Great client. Understanding of problems and willing to work together to find a way around them.

Specification

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).



Responded

1
Developer 1
Rating
(88)
Projects
143
39%
Arbitration
21
19% / 48%
Overdue
30
21%
Free
2
Developer 2
Rating
(3)
Projects
8
13%
Arbitration
10
10% / 70%
Overdue
2
25%
Free
Similar orders
I want to create a function that will check for news releases. The user from the input variable will be able to set which kind of news want to avoid and how minutes before/after the trading should stop. Also he will be able to select if he wants the current open trades to be closed before news, or current limit orders to be deleted
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. (when it is up it is buy, when down it is sell) - Can recognize RSI. (Buy on oversold, Sell on overbought). - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
I am seeking a highly skilled and experienced developer to assist with an important project. I need a development of an automated trading bot for NinjaTrader, utilizing a 4 SMA (Simple Moving Average) crossing strategy, with additional custom diversions for trade entries. The bot needs to be based on a strategy involving the crossing of four different SMAs. The exact periods for these SMAs and the conditions for
So i have copier EA. The idea is the EA will triggered through manual OP by user via mobile or whatever platform. Let's say 0.01 lot to trigger it. After the EA takes master's position, the EA will be standby mode. If the master take more OP, the EA still not take the master's position (OP) until the user input manually once again via mobile for another 0.01 lot. Since this is a MT4 EA, Whenever user want to close
preciso de um robô com duas médias móveis, uma exponencial high e uma exponencial low. preciso também ter a opção de utilizar e todos os tempos gráficos e alterar os parâmetros das médias. entrada de compra será feita quando um candle de alta romper e fechar a cima da média high e fechará a posição quando um candle de baixa romper e fechar a baixo da média low. a venda será feita quando o candle de baixa romper e
I need a chart to replicate/track my equity + Balance Curve into my mt4. Also this chart i need to be able to add Stochastic / Bollingerband / Moving average on the equity/balance curve. Besides the equity curve i would like the indicator to show the Line-chart of my win + 1 and my loss -1 which results in a win-loss curve. ( i will discuss this with the choosen developer in depth. ) More information on what i want
Greetings great developer, I am in search of a highly skilled developer to assist with an exciting project. I need to convert two open-source TradingView indicators to NinjaTrader 8 and implement a usage restriction based on computer IDs. If you have experience with NinjaTrader 8 coding please let me know. I’d be happy to discuss the details further
Greetings great developer, I am in search of a highly skilled MQL5 developer to assist with an exciting project. I need to convert two open-source TradingView indicators to NinjaTrader 8 and implement a usage restriction based on computer IDs. If you have experience with NinjaTrader 8 coding please let me know. I’d be happy to discuss the details further
Trading bot 300+ USD
We need bot that trades when medium and low impact news hits It will release pending order both directions few min prior to news impact And will have certain risk management strategy attached Example If Monday and Tuesday news successful clears profits It will reduce risk for next news events until new week starts each week message on tg: Dstatewealthtrading NOTE: 4 YAERS OF EXPERIENCE UPWORD, YOU MUST BE A

Project information

Budget
30+ USD
For the developer
27 USD