Opening /closing code

MQL5 Experts

Job finished

Execution time 8 days
Feedback from employee
Very interesting job. Unusual position management system.

Specification

I need an bulletproof opening -closing code for an existing MT5 EA .
The code must open and close positions  fast and 100% reliable .
Notification if the opening or closing fail . 
Most of the  opening and closing conditions I’ll add later .
For testing purposes  I’ll accept a simple  MA conditions .
Like MA up is BUY condition and MA down is a sell condition .
It should work on strategy tester ,and demo account .
Make it easy to add new conditions (notes)
The later added code not affecting acceptance. 
Working principal .
The code is open buy position when buy signal occur .
Open sell when sell signal occur .
Closing positions when opposite signal occur and the positions in profit . 
Add new positions to existing ones .
Calculate combined profit /loss .
Detailed Specification 
1; No open position 
2; Ea open position  . 
Opening coditions 
MA down is a sell signal ,MA up is Buy signal 
MA signal  only used for testing purposes .
3; 
Open position in profit. 
Close the position
Position in profit mean . 
If the position Profit  higher than swap and commission combined .
4;
Open position in loss  . 
If reach the user specified distance and signal is right 
Open same position . For example if we have a 0.1 BUY position and the Distance input 100 
When the Buy position in loss 100 points or more and we have BUY signal we open 
Another 0.1 Buy .
Required two input 
Add extra Position input . yes/no 
Distance  input   0-500 
5; 
Add opposite position 
If we have  1 o2 same  position in loss 
We reached the Opposite position distance level 
We have  opposite signal than open positions .
Open Opposite position larger than 1 or two existing ,.
For example  we have two 0.1 buy positions in loss 
Opposite position distance is 200 point  when exceed   the 200 point 
And we have sell signal ,open 0.3 sell 
Required input 
Opposite position distance 0-500 …
6;
In case the market turn again .
Buy case 
We reached the first opened position level (buy level )on grafics jpg 
We must have at least one  buy  0.1 and one  0.2 sell position 
Or 0.1 buy ,0.1 buy  and 0.3 sell 
We add a new buy 0.2 
Required input 
Order size 0.01 …
Opposite order size 0.02…..
If open opposite order always bigger than existing positions  

7 ; 
Market turn again we reached the second (sell level ) on attached grafics jpg .
We have at least two buy and one sell position .
We have sell signal ,open 0.2 sell 

8; 
If we have more than one position and  the total of positions in profit .
Close it all 




Files:

JPG
grafics_.jpg
118.4 Kb

Responded

1
Developer 1
Rating
(140)
Projects
205
80%
Arbitration
18
33% / 44%
Overdue
10
5%
Working
2
Developer 2
Rating
(180)
Projects
301
30%
Arbitration
54
24% / 56%
Overdue
98
33%
Free
3
Developer 3
Rating
(439)
Projects
545
25%
Arbitration
21
38% / 38%
Overdue
83
15%
Free
Similar orders
Indicator in use: Bollinger Bands Mechanism (See diagrams provided for help) Sells: 1. Trigger candle: When candle low is above the top Bollinger band - accurate to the lowest point scale (e.g. On EURUSD if candle low is 1.07915 and the value of top bollinger is 1.07914 - this is a sell signal; or if on Futures if the increment is .25 or .10 then this is used) 2. Enter sell ONLY on the next candle if price breaks
Indicator in use: Bollinger Bands Mechanism: (See diagrams provided for help) Sells: 1. Trigger candle: When candle low is above the top Bollinger band - accurate to the point scale (e.g. On EURUSD if candle low is 1.07915 and the value of top bollinger is 1.07914 - this is a sell signal) 2. Enter sell ONLY on the next candle if price breaks below the trigger candle LOW (using the e.g. above- if next candle price
hey guys, im looking for an auto mt5 license system through a web app i have already, i simply want it so a unique license key is generated for memebers, they input this onto the EA input and then it checks if its valid. active license per user capped at 5. i already have an mt5 coder and dec team for the app so i dont know if youd prefer to intergrate onto the webapp yourself or simply provide the code and doc so my
I need a simple panel to execute both buy and sell operations with very basic things like stopp loss take profit that functions for both market orders such as buy stop sell stop buy limit sell limit I don't care about colors or design I just want how you can do it what interests me most are the functions
I want to create an EA that can take bids according to information of a logic I have developed to give indication of a BUY or SELL opportunity. The EA will then be able to activate the BUY at the lowest possible position once the indicator clears it for a BUY and take bid upwards or identify the highest point and clears it for a SELL and take bids downwards. As you can see from example of JULY 2024 data to see how
We are seeking a skilled developer who can convert a Tradingview indicator written in Pinescript to a NinjaTrader indicator written in C#. The goal is to create a profitable trading strategy using this indicator. The successful candidate will have expertise in both Pinescript and C# programming languages, as well as a strong understanding of trading indicators and strategies. The main responsibilities will include
I am seeking an experienced MQL5 developer to create a user-friendly manual Grid Trading Expert Advisor (EA) with the following key features: Dynamic Grid Trading: Adjustable Grid Distance: Traders can manually input grid distance in pips via an intuitive, movable table. Take Profit Management: Fixed TP for the initial positions (e.g., first 5 trades). Stop-Loss (Optional): Traders can choose to use a stop-loss with
I want have the possibility to increase lotsize not alone by Lot-multiplier rather I want add a fix-lot increase for excample for 0,05 lot. I want have this for buy / sell and hedge-buy and hedge sell
Develop EA to track performance metrics of strategies I would like to develop an EA that will track the performance metrics of the strategies I have running on a terminal, If any of the metrics start to under perform then the EA/Indictor should alert me with a pop up alert that specify's the metric that has triggered the alert. The EA should also display the metrics in a dashboard - please see my example screen shot
I would like to modify the RSI Epert Avisor with a developer. I would like to use the RSI Expert on the inverse mode and the base setting doesnt conatain this strategy mode

Project information

Budget
40+ USD
For the developer
36 USD
Deadline
from 1 to 3 day(s)