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
Hello, I'm seeking a freelancer with access to a ready-made server solution for an educational forex project. Requirements: Ability to control or manipulate live or historical trading data. Platform to execute simulated trades with exaggerated outcomes. Tools for real-time trade simulation (white-label or virtual dealer solutions). If you have a suitable server or can help me find one, please reach out with details
I want to deal in triangular forex arbitrage trading. I want an automated trading robot for the same. It is also expected that the developer advises me about the setting up the operations. I live in India, so he/she must know the ethical way to do it, be it international broker account or whatever. I just need to start this sooner but in the efficient way. The developer is expected to have some experience and should
hello here am looking for someone that can assist me in removing validation form my demo file and if anyone is interested dm the for more details i will be waiting to get any reply by some on that can assist me with this
Hey developers! It is my pleasure to meet you. I am looking for a developer to help meet build and develop a simple EA robot that works based on EMAs. If you are a professional and expierenced MT4 programmer looking to work on this project, do bid for this project so that we can proceed and work on it. Thank you
A green point should be added at the Low point of candlesticks in the oversold zone—it is the L point. If there is at least one L point between two H points, search for a LL point in the interval between two H points. The candlestick with the lowest Low price will be the LL point. Generally, the LL point is not necessarily an L point. Search for candlesticks with the lowest Low price. If there is at least one H point
RRB 50 - 400 USD
The overbought zone is determined as candlesticks, at which the indicator value Value > Lmax (Lmax=-20). The oversold zone is determined as candlesticks, at which the indicator value Value < Lmin (Lmin=-80). The values of Lmax and Lmin should be included in indicator parameters. A yellow point should be added at the High point of candlesticks in the overbought zone—it is the H point. A green point should be added at
Hello, I am looking for developer who develops me a renko trading robo with following requirement Time :1 sec Box assignment method : Percentage change LTP Source : Close/OHLC Auto Break-even setup option after certain box Trialling Profit Pips after certain box profit with auto Sl set in PIPs Auto open reverse trade after hitting Sl with given conditions . It is very simple trading tool
At bot 30+ USD
Help me to trade create orders for me and analyze the markets and decide when is a good time to buy or sell. Determine which pairs are best to use to trade with and indicate trading signals to me
I currently have a Forex trading script in .txt format that I want to be converted to a functional/working robot (in .mq4), without altering the strategy of the script. The strategy of the script is already in and shouldn't be changed unless with mutual understanding
Hey greetings, It my pleasure to met you . I need a MT4 develop that can develop an EA based on alert . If you are a professional MT4 programmer you can kindly bid for this project and let proceed

Project information

Budget
30+ USD
For the developer
27 USD