Simple adjustment of trailing stop to consider POSITION_TICKET in hedge account

MQL5 Experts

Job finished

Execution time 1 day

Specification

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

Files:

MQH
CTrade.mqh
55.6 Kb

Responded

1
Developer 1
Rating
(878)
Projects
1391
67%
Arbitration
117
32% / 42%
Overdue
215
15%
Free
2
Developer 2
Rating
(253)
Projects
358
49%
Arbitration
24
25% / 50%
Overdue
80
22%
Free
3
Developer 3
Rating
(28)
Projects
36
17%
Arbitration
5
20% / 40%
Overdue
17
47%
Free
4
Developer 4
Rating
(27)
Projects
28
54%
Arbitration
4
0% / 50%
Overdue
5
18%
Free
5
Developer 5
Rating
(586)
Projects
1047
49%
Arbitration
39
28% / 41%
Overdue
49
5%
Free
Similar orders
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
I would like a trading robot / Expert Advisor that simply operates on two basic trading view indicators to enter trades. Everything happens on the 1 minute time frame for this robot. Make the settings of both indicators full customization enabled from my end and also the risk percentage must be adjustable from my end but the risk-to-reward ratio must be fixed to 1:1.5. The scalping robot must operate based on two
I want my own bot for trading, an effective bot that I do not want to lose, and if it has artificial intelligence, it will be better for trading on a platform

Project information

Budget
20 USD
For the developer
18 - 18 USD
Deadline
from 1 to 2 day(s)