Fixed error in my EA for MT4/5

MQL4 Experts

Specification

 

Summary

BARRIE_EA

                In short, we use Trio EA as the basis, changing the signal generation where now we will only use MACD and drop the other "supportive indicators", plus make some modifications and additions.  This is for MT4 and MT5:

#1.  Make EA run on fimeframe defined in variables and not chart dependent

#2.  After weekend, system should follow "Start EA" variable, make it an option                enable/disable.

Old_EA Setting (Changes & Additions):

-------------------------"Trade Settings 1/2"-------------------------

Add:

                - In addition to 'Singal Delay Bars', add 'Signal Backward View Delay Bars' - Its                                    purpose, if 'Highest Bar' is active it will ignore checking previous bar for size for X       amount of bars. For example, if  color changed and system started opening positions,           and its set at 2, then EA will not check 1st bar of 2nd bar, only 3rd bar given at the time 4th bar is current, therefore it  will not close or so positions. Note, technically current             bar at the begging is 1st, so we should ignore it, but for this option will consider it.  If      set to 0, meaning immeditate,  then it can only compare 2nd bar to 1st.

-------------------------"Primary Indicator Settings 1/2"-------------------------

- Use MACD ONLY from the Trio_EA

- Signal is based on color of the bars. Positions close/open based on color changes ONLY.

- Additional Signal variables to be added as 'enable/disable' options:

                Option_#1 - name it "Highest Bar" - when change of color occures EA starts to open       trades, UNTIL the previous bar is higher than current. When that happens, all            positions are closed.  This happens  immediately without the closing in                            full.  Also, when such occurs, no new positions are open until the signal in opposite         direction occurs, and everything starts over.

                Option_#2 - name it "OutBound Trade Zones" - when the outbound zones are set           long and short from zero line of MACD, it means that EA can place orders only when it      crosses the line outbound.  Also,  when 'Highest Bar' is active is superceeds Outbound                 Trade Zone', however, when 'Highest Bar' closed all the positions due to previous                 higher bar and bars started to decreese, and then suddendly spike back up  and bar       size crossed 'outbound zone' then 'Highest Bar' logic starts again not from MACD zero   line but from 'OutBound Trade Zone' line, and follows 'Highest Bar' logic until   previous highest bar.

-------------------------"Supportive Indicator Settings 1/2"-------------------------

DELETE

 

-------------------------"SL and TP Settings 1/2"-------------------------

Modify:

                - ability to enable/disable TP variable

Add:

                - Option_#1 - name it 'TP Divider (0=disabled)' - for each TP hit X divider is set resulting in opening of new positions. For example if max of 10 positions is allowed,                and 2 out of 8  hit TP, and divider is set to 2, than now EA can only can open 1 new              position, as 2/2 is 1. and so on. This option is set for each primary and secondary set.

-------------------------"Close Settings 1/2"-------------------------

Modify:

                - 'One Time Take Profit' is enabled, then when hit no new positions can be opened,      however, the other positions that are open still stand.

Add:

                - Option_#1 - 'Trailing SL Addon' - for each new opened positions X amount is added.    For example, if X=5 and "STEPUP_%" is set at 20, then with each new position new          trailing Sl would  be adding +5, thus 1st position 20, 2nd 20+5, 3rd position 25+5, 4th        position 30+5 etc, until the maximum allowed positions.  So is max allowed positions      are 10, then with  each +5 highest SL on the 10th position would be 70.

                - Option_#2 - 'Trailing SL Addon - Reset' - make it 'enable/disable' variable, thus if all     10 positions are open and the price sharly reverts hitting all SLs, closing all positions,             new positions can only be open when the price crosses the price level of the 1st       initial position, then EA can open max posisions possible again. In such event,    'Trailing SL  Addon' started in reserve... as example, 1st position 70, 2nd 65, 3rd 60 etc.

-------------------------"Hedge Settings 1/2"-------------------------

-------------------------"Non-Trading Zones"-------------------------

Add:

                - In timezone, for each separate day, add "Close All Positions" at the begining of that    window, and start buying after the time windows expires. It will superceed 'Close                trades during'  option. 

 

Trio_EA

-------------------------"Close Settings 1/2"-------------------------

Modify:

                -  Create varaible "Close on TF change" - enable/disable - purpose, to close position when price peaks. For example, on TF_H4 the price peaks and looking at TF_H1 three indicators confirm that direction changes, so when that happens, all positions on H4 close. 

Now, if H1 changes from long to short and H4 is still on long, then no positions are open, however, if H1 goes from LONG to SHORT and then back to LONG and H4 is still on LONG, then EA start opening positions again according to H4.

This variable preceeds ---Hedge Settings---, meaning it closes unless neigher of the hedgeing conditions are met. 

IF any of the heding technics elected, this variable is also on secondary TF. same concept applies. 

Add:

                - "Amount of Closed Position" - enable/disable - ability to specify the amount of closed positions which EA can open in one direction.  For example, at the start of the signal if say max positions is 1 LOT and  size of positions is 0.1, and if "Amount of Closed Positions" is set at 1.5 LOT than after opening the 1 LOT of 0.1 and then either closing by TP or SL, another 0.5 LOT can be opened. Thereafter, no more positions can be opened in the direction of the signal, until the change of signal occurs, when that happens, all positions are closed if any are open.


Responded

1
Developer 1
Rating
(5)
Projects
7
29%
Arbitration
1
0% / 100%
Overdue
0
Free
Similar orders
I want to develop a trade copier that copies trades from master account to client and also from client account to master account. It should be working on computer or VPS
Wirtschaftskalender 50 - 200 USD
1) Einbinden des Wirtschaftskalender ( https://www.mql5.com/de/economic-calendar ) 2) Unterschiedliche Gewichtung der Ereignisse erkennen (Farbe rot/orange/grau) 3) Je nach Gewichtung unterschiedliche Wartezeiten vor und nach dem Ereigniss Der Sourcecode muss dokumentiert sein. Die Bezahlung des vereinbarten Betrages läuft in 33% Schritten ab. 33% bei Vergabe 33% bei Endabnahme (Version 1.0) 33% nach Abgabe des
Hi, This is my demand: Enhancement to an existing robot with the ability to modify the main time frame and indicators settings. Buy/Sell Stops are placed depending on candle positioning and a positive/negative Bulls Power. Trades are supplemented after reaching 10 points of profit. The robot should also support a balance option for propfirm accounts, switchable to use real account balance when needed. I will send
algo trading application want to developed Prerequisites for ordering a trading robot Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event . When the event occurs, the robot checks the emergence of trading
I have list of free indicators in tradingview and i would like to convert them into an mt4 ea, But the EA will have and work based on the indicators features The list of the are listed as follows :> 1. Market Structure Break And Order block. By EmreKb 2. Rainbow Adaptive RSI by LuxAlgo 3. Multiple MA (21,50,100) 4. SuperTrend Please don't apply if can't do this, So we won't ourselves time
Hi I do not know why but my other order have been deleted and it's not me... I do not know what i did wrong, let me explain again. I dont want you to crack a code or decompile. I want to create a scalper EA with the option I do ask. I had somebody built a EA called Drawdown manager for me that I do use to manage risk of any EA that I test and I have the built code. My problem is that I cannot back test this EA Fast
CHAPTER 1: BASICS 1.THE BASICS 1.1. EXPANSION AND RETRACEMENT Expansion =>occurs when there is an impulse movement towards a direction. Retracement => is the correction movement after an impulse movement. 1.2. FIBBONACCI RETRACEMENT USED TO DETERMINE THE END OF THE RETRACTION MOVEMENT, USUALLY THE PRICE RETRACTS TO 50% OR UNTIL OTE (0.62, 0.705, 0.79) BEFORE ANOTHER IMPULSE MOVEMENT OCCURS. 1.3. BMS - BREAK IN MARKET
Am looking for a developer who can convert an MT5 indicator into MT5 EA. I have the source code of the indicator and i want it modified a little to fit my parameters. Only developer with Smart Money Concept should get in touch. The developer will also add another MT5 indicator( this will be used to confirm entries and exit of orders. More details to follow
I want a program that automatically disables manual trade execution once a specified number of trades have already been placed. ie. After a total of 3 trades have been placed on that day, manual trade execution should be disabled. I want the program to also limit the amount of lots that can be traded in any given day. ie. Maximum of 15 standard lots in any given day. The program should disable manual trade execution
Currency Strength EA 30 - 80 USD
hi These ACS&Csdash indicators work in the same way but provide signals of different currency pairs. And Either of these two ACS indicators should be selected any one and set to trade. It provides signals of multiple currency pairs in the interface So the EA should work like that to trade multiple currency pairs on one chart. CsDash should analyze whether it is a strong signal to show on the dash board and make a

Project information

Budget
30+ USD
For the developer
27 USD