Add dynamic lot size, martingale and maximun loss in Points to an Expert Advisor

MQL4 Indicators Experts

Job finished

Execution time 11 hours
Feedback from customer
Great job!
Feedback from employee
Many thanks!

Specification

Hi, I have an Expert Advisor based on the StepMa indicator and I would like to add 3 functions to it: 


1. Dynamic lot size : Add a dynamic lot size calculation. 

You can choose between Fix Lot size (the one we currently have) or Dynamic lot size. 

If Dynamic lot is True,  you are enabling dynamic lot calculation in percent of free margin for the new position. 

In this way, when Dynamic is true, the larger the free marging becomes, the larger the size of the initial lot will be. 

Here you can see how it is possible to implement a dynamic lot size: 

2. Martingale option: If the EA closes the previous positions in loss then the next time the lot size will be multiplied by X. You can choose the value of X in the Expert inputs tab. Once the EA closes the positions in profit we go back to the initial lot size (fix lot size or dynamic lot size calculated from the free margin)

If Martin increase lot is set to 1 then martingale is not enabled. 


3. Stop loss. Calculation of the maximun loss in Points. The EA currently closes all positions automatically when the maximun profit in points is reached. I want to add the same function when the total loss in points is reached. You can choose the number of points in loss for closing all the positions. The EA will close all the positions when the total loss in points is reached. Force closure of all positions when the total floating loss is reached. 



Responded

1
Developer 1
Rating
(586)
Projects
918
46%
Arbitration
31
39% / 29%
Overdue
93
10%
Working
2
Developer 2
Rating
(41)
Projects
51
49%
Arbitration
6
83% / 0%
Overdue
0
Working
3
Developer 3
Rating
(23)
Projects
29
14%
Arbitration
3
0% / 67%
Overdue
3
10%
Working
4
Developer 4
Rating
(34)
Projects
49
43%
Arbitration
3
0% / 33%
Overdue
14
29%
Working
5
Developer 5
Rating
(356)
Projects
632
26%
Arbitration
89
73% / 13%
Overdue
12
2%
Free
6
Developer 6
Rating
(586)
Projects
1047
49%
Arbitration
39
28% / 41%
Overdue
49
5%
Free
Similar orders
Greetings, As the title suggests, I am trying to convert an indicator that calls itself via an iCustom call like this. iMAArray_Buffer[loop_1] = iCustom ( NULL , Selected_TF, MQLInfoString ( MQL_PROGRAM_NAME ), "calculate" , RPeriod, MType, MPeriod, 1 , shift); Full code will not be provided, only the position that needs fixing. I cannot get this working in MQL5 but the original code runs smoothly in MQL4. Please
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
Hello, This is pretty simple and its an indicator with On/Off button 1-Off will remove all indicator from the chart. 2-On will put them all back again with the same settings
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
I need someone the create a supertrend indicator based on Heikin Ashi candles instead of normal candles. Needs to be exactly the same as the supertrend (original one) + ha from tradingview. In m1,m5,m15 the indicator must have the same values ​​found with the tradingview. Work that meets this requirement will be accepted ( depending on the broker and spread, however, a few pips of difference will be accepted)
Here is a detailed instruction for the coder to implement the vertical lines based on the BrainTrainSignalAlert indicator: --- **Task: Implement Vertical Lines for Alerts from BrainTrainSignalAlert Indicator** **Objective:** Create a system that adds vertical lines on specified timeframes (M5 or M30) whenever an alert is generated by the BrainTrainSignalAlert indicator on the H1, H4, and D1 timeframes. The lines
Hello Guys! I want to modify/fix the indicator that uses sequential type of entries (it calculates from 1 to 9) and if the conditions are met it provides an arrow (signal) with alert. The problem is that, sometimes (for unknown for me reasons) it repaints arrow signal. Like on the picture: Signal 1 - correct signal Signal 2 - correct signal Signal 3 - correct signal Signal 4 - repaints (signal 3 arrow dissapeared
Hi, I have a Live Data feature for my trading accounts that lets me check details like total open positions, number of lots, profits, etc. I need someone to add the number of pending orders to this live data. This is important for me to ensure that all accounts have the same number of pending orders, since I use a copy trading system. Also, there is a website where I check all the data. In this case, you would need
I came across an indicator that's perfectly good in catching spikes in boom amd crash but i would want it to be modified and to improve accuracy As a professional you will have to go through the indicator and explain to me the strategy with which the indicator was buid and tell me the possibility of improving it better

Project information

Budget
30+ USD
VAT (21%): 6.3 USD
Total: 36.3 USD
For the developer
27 USD
Deadline
from 1 day(s)