A Few changes in actual EA

MQL4 Esperti

Specifiche

I have a few changes in existing EA:

Point 1 - An function in EA does not work Reactivation of an order - should be fixed.

Point 2 actuall lot calculation should be changed and add two other posibilies to calculate lots.

thats it


Point 1

if there is an Order by other EA or manual opend - this order will be managed by Hedge EA.

If you want to test – just use following sets

UseOriginal=false
CloseBasis=false
OpenPending=true
UseReact=true

If first Pending is closed in Profit – then should opens a Reactivation, if Price goes Xpips better than entry of first Pending and than place again an Pending on original Price of first pending  - The new pending with does just have new TP and same Lots

After this second Pending is closed in Profit – EA should also close the refered basis order.

If Basis is closed bevor second pending – with basis should be closed second pending. Right now it is also working like this with first pending – same should be happend with second pending.

This function should work but does not work – this is to fix

 

Parameters of function Reactivation right are
input int            ReactEnter=10;//Reactivation Enter in pips

input int            ReactTP=5;//Reactivation TP in pips

Reactivation of pending does not working. If pending is executed in profit- and goes xpips better than place second Pending, pending should be Placed again. Same lots as pending before only NEW TP. If the reactivation Pending is closed – than reffered Basis has also to be to close.

But If original basis will close also Reactivation Pending must be deleted. As also do normal Pending. If Basis is closing refferd Pendings must be deleted.

 

Point two -

I want to change actuall Pending lots calculation - and add two other possibilities to definate lots for the Pendings.

 

Right now lots are calculated on basis of loss of basis order from entry price till hiddenSL . now if basis order goes xpips in minus, the minus till hiddenSL ist the calculation for Lots for pending order right now. There should be changed nothing only the amount should be encreast. Loss should hiddenSL pips and TP pips inclouded  + an amount which I will be definating in new Paramters in %


Now I just want
'That loss calculation goes till Pips TP includ and also having an Plus as overtop – percent of this calulated loss on TOP.

New paramter is – Top on loss definated with percent 0.5 Perdent or 5.0 perdent

In actual version of Hedge EA - Basis order with loss was closed at hiddenSL - So calculation of loss of basis goes further and should go TP of Pending - Plus from this sum Xpercent.

So from entry Basis till hidden SL – amount - Plus

Loss from HidenSL to TP – amount - Plus

An Overtop - percent of this amount 1% of hidden SL + Loss hidden till TP

------------------------------------

Loss Resoult must be covered from entry Basis till Pips TP – This clculation is done right now till hiddenSL

 

So definate Loss is – Loss of Basis – till hidden SL – from hiddenSL to PipsTP and of this result overtop definated part as percent. Example 0.5%

If Amont of loss is definated – lots must be calculated that if pending is opend at hiddenSL till pipsTP must loss covered. This is EA doing right now only with los still hiddenSL –

 

2a- I want just to definaet the lots for the opening pending wiht an multipler. So if basis is 0.01 lots and multipler is 2 EA does Open 0.02 lots. Second possibility

2b. Dividation - If basis is 2 lots and I have a dvidation of 2 - thant on pending is opend 1 lot - Third possibility

 

thats it



Con risposta

1
Sviluppatore 1
Valutazioni
(53)
Progetti
74
26%
Arbitraggio
30
10% / 63%
In ritardo
22
30%
Gratuito
2
Sviluppatore 2
Valutazioni
(2)
Progetti
2
0%
Arbitraggio
0
In ritardo
1
50%
Gratuito
3
Sviluppatore 3
Valutazioni
(219)
Progetti
370
42%
Arbitraggio
145
17% / 41%
In ritardo
124
34%
Gratuito
Ordini simili
The strategy uses a grid trading system where trades are placed at set intervals (grid levels) and are managed using Bollinger Bands for entry and exit signals. A fixed lot size, trades are managed to comply with maximum spread conditions and specific trading hours, with the possibility of closing trades based on Bollinger Bands signals. The use of Bollinger Bands indicates a focus on volatility-based trading, while
Hi, I would like to create an expert advisor to fully automatic trade in MT4 as below, it should be possible with gold or any currency pairs and need to possible with 2, 3, 4 or 5 after decimal quotes PAROL MA CROSSOVER 1. Magic Number : Customize 2. Take profit in points : Customize 3. Stop loss in points : Customize 4. Strat time in GMT : Customize 5. End time in GMT : Customize (It means no need to open a new
Hi. I will require a MT4 EA with 3 indcators for a specific time frame, certain parameters can be adjusted and should be able to automated trading. 1. RSI 2. EMA EA 3.Trading Volume . 4 & 5 digits can use 1.) 1 RSI . and 2 EMA ( cross over ) 1.1.) All different timeframe can use ( adjustable ). 1.2.) Entry pricing will need to meet at least 2 out of 3 indicators levels. 1.3.) Each indicators can be adjusted. 2.)
Need MT4 EA which will trade based on Round Number and Supertrend. Trading conditions: If buy supertrend is >= lower round number and <= the higher round number, EA will place a buy pending order at the higher round number. If sell supertrend is <= higher round number and >=lower round number, EA will place sell pending order at the lower round number. If the trade is exited because of SL/BE, EA will place another
Hi Everyone, I need a cloud based licensing system to protect my MT4 / MT5 Indicators and Expert advisors Secure an unlimited number of EAs, indicators, and scripts. Create and manage unlimited license keys for secured EAs, indicators, and scripts. Instantly suspend license keys in case of refund. Lock EA/indicator to specific accounts and time frame similar to this
I need a ea 50+ USD
I need an ea for my prop firm challenge 5000usd account. that can execute trade itself with 0.5R risk and at least 1:2 target.Not maximum drawdown 2-3% and can generate monthly return 10 to 20%
Hello Devs! I like to create a new EA based on the below conditions: (Please do not bid if you have no confidence of fulfilling the codes requirements. Thanks!) You can code MT4 or MT5 or both depending on your preference. 1. Different Magic numbers for BUY and SELL 2. Add on time filter for each day individually. Eg: Mon = 00:01-23:59, Tue = 01:00-23:30 etc. (Monday to Sunday) True/false to close all trades at end
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
I need an EA which takes confluence of 4 ema on 3 different time frame before taking a trade. Ea should have risk to reward option, option to add xyz pips above stoploss criteria in order to avoid hitting sl due to spreads. Customizable RR to cl9se trade partially when desired RR is reached. Also require source code to get future changes done
I need MT4 and MT5 hedging locker expert advisors that hedge existing trades either with pending or market order hedging trades. With pending hedge trades the entry price may optionally be made to trail the existing open orders. There should be option for a breakeven and trailing of the hedge trade’s stop

Informazioni sul progetto

Budget
20 USD
IVA (19%): 3.8 - 3.8 USD
Totale: 23.8 - 23.8 USD
Per lo sviluppatore
18 - 18 USD
Scadenze
1 giorno(i)