Simple adjustment of trailing stop to consider POSITION_TICKET in hedge account

MQL5 Experts

Tâche terminée

Temps d'exécution 1 jour

Spécifications

Hi coders,

This is simple. My trailing stop is not working in a Hedge account.

My CTrade Class (attached) was built for Netting accounts. Now I need to adjust it to Hedge accounts.

Thus I need to identify an opened position by POSITION_TICKET in order to avoid the following error while updating the trailing stop:

"10036 - TRADE_RETCODE_POSITION_CLOSED - Position with the specified POSITION_IDENTIFIER has already been closed"

For experienced coders, I think this is going to be very fast.

Thank you.

Daniel

Dossiers :

MQH
CTrade.mqh
55.6 Kb

Répondu

1
Développeur 1
Évaluation
(878)
Projets
1391
67%
Arbitrage
117
32% / 42%
En retard
215
15%
Gratuit
2
Développeur 2
Évaluation
(253)
Projets
358
49%
Arbitrage
24
25% / 50%
En retard
80
22%
Gratuit
3
Développeur 3
Évaluation
(28)
Projets
36
17%
Arbitrage
5
20% / 40%
En retard
17
47%
Gratuit
4
Développeur 4
Évaluation
(27)
Projets
28
54%
Arbitrage
4
0% / 50%
En retard
5
18%
Gratuit
5
Développeur 5
Évaluation
(586)
Projets
1047
49%
Arbitrage
39
28% / 41%
En retard
49
5%
Gratuit
Commandes similaires
Hello, I’m looking for someone that can setup a trade copier or bridge to copy trades from meta trader 4 to the tradovate platform .Let me know if you can do this
Busco um desenvolvedor que faça um EA do Larry Williams 9.1, que execute com um parametro, um filtro que será uma média. Qualquer coisa me chame no email: thalyssontrader@gmail.com Interessados no propjeto, é só me contactar
Tradingview developer 30 - 35 USD
Hey greetings. I am in need of tradingview developer that can modify an open source PineScript indicator code to add additional features. Kindly bid for this project if it is what you handle and let proceed with the project
If you Are From Nigeria And You Are Abel to with draw money from the mql5 Market place Then I will Like You To Tell Me The Exact Method You Used To Be Able to withdraw and convert Funds from Dollars to Naira If You Are Able To Provide This Information And I Am To With draw I will Pay You #30,000 Naira for this information if i am Able to withdarw
Any one to assist with the function at a minimum fee (See t he attached pics) Point A- Fast EMA crosses Slow EMA Point B- The highest price before the Ask price retreats back to Slow EMA. Point C-Ask price touches/crosses below Slow EMA. What is required is a function that will 1 C alculate the number of bars between Point A and Point C, 2. After calculating the number of bars, compares if # of Bars > 3 and # of
Pine Editor code is attached This strategy uses EMA or TEMA with ADX (+DI and -DI) to identify buy signals. When a buy signal is triggered, it places a buy order with a specified stop loss and take profit. TP and SL should considered as custom parameters, A buy signal is generated when the closing price is above the EMA or TEMA, and the +DI crosses over the -DI ont the privius candle, a buy is placed on the opennig
I am looking for someone to create a NinjaTrader 8 indicator. The indicator is just a moving average that has 3 colors. Up down and flat. The color changes based on the moving average angle that you can input and change
Take the job 30+ USD
i need a simple ea for MQL5, i have all requirements in the pdf, i need to start also new project if this job will be ok with a good price, so if you have good reviews with low bad reputation or arbitration please apply to this job
Would like to as for a developer that can develop an EA for MT5 The EA is turned on and will run for a set number of days. Eg. 1 day 2 day 3 days up to 30 days. The Ea will then immediately purchase a position once its turned on. The Ea will be set on sell mode, or buy mode for those set days. Once days are up, EA should have an option for auto close all positions (on/off) The ea will add on positions if price drops
FXWAVE 101 50+ USD
NAME OF EA : FXWAVE 2.0 EA base on correlation hedging between 2 pairs (symbol 1 and symbol 2) , and entry rule will base on chart overlay indicator... EA should be able to trade both positive and negative correlation. user will be able to select 2 pairs of choice Trading Rule for Positive correlation: EA will open buy for pair that is s up on the overlay chart and sell for the pair that is down on the overlay chart

Informations sur le projet

Budget
20 USD
Pour le développeur
18 - 18 USD
Délais
de 1 à 2 jour(s)