Count profits and close some of the positions

MQL4 Experten Integration

Spezifikation

I would like to have a new function in my EA.

later i will upload the EA for Integration in the EA.



New Funktion:

extern bool   useBasketprofitpct_Low_high=true;         //new function
extern double basketprofitpct_Low_high=2;                    //new function

 If „xtern bool   useBasketprofitpct_Low_high=true;“
„extern double basketprofitpct_Low_high=2; „
à count profit closed buy-position (like „extern bool   useBasketprofitpct=true;“ but only the buy-posistions)
à count profit of the lowest open sell-position
à if (profit closed buy positions (similar like „useBasketprofitpct“) + profit of the lowest open sell posistion >=basketprofitpct_low_high*0.01*AccountBalance()
                then close all open buy-posistions and the lowest-open-sell-position

à count profit closed sell-position (like „extern bool   useBasketprofitpct=true;“ but only the sell-posistions)
à count profit of the highest open buy-position
à if (profit closed sell positions (similar like „useBasketprofitpct“) + profit of the highest open buy posistion >=basketprofitpct_low_high*0.01*AccountBalance()
                then close all open sell-posistions and the highest-open-buy-position

 

 

 

Function in the EA: „useBasketprofitpct“

    if(useBasketprofitpct)

     {

      if(basketpercentflag=="CLOSE")if(countall(1)==0)basketpercentflag="";

      if(countprofit(1)>=nd(basketprofitpct*0.01*AccountBalance(),2) || countprofit(1)<=-1*nd(basketlosspct*0.01*AccountBalance(),2)) basketpercentflag="CLOSE";

      if(basketpercentflag=="CLOSE")

        {

         close(OP_BUY);close(OP_SELL);deletes(7);deletes(8);

         timex=TimeCurrent();

        }

      //Comment("\nprofit = "+DoubleToStr(countprofit(1),2));

     }

 

ààà// i wanna the same just only fort he buy and the sell-posistions and adding the lowestsellposion and hightestbuyposistion!

 


Bewerbungen

1
Entwickler 1
Bewertung
(66)
Projekte
95
28%
Schlichtung
20
25% / 55%
Frist nicht eingehalten
24
25%
Frei
2
Entwickler 2
Bewertung
(53)
Projekte
79
18%
Schlichtung
13
15% / 54%
Frist nicht eingehalten
5
6%
Frei
3
Entwickler 3
Bewertung
(620)
Projekte
680
57%
Schlichtung
25
16% / 60%
Frist nicht eingehalten
228
34%
Frei
4
Entwickler 4
Bewertung
(600)
Projekte
934
46%
Schlichtung
31
39% / 29%
Frist nicht eingehalten
93
10%
Arbeitet
5
Entwickler 5
Bewertung
(28)
Projekte
47
23%
Schlichtung
13
31% / 15%
Frist nicht eingehalten
12
26%
Frei
6
Entwickler 6
Bewertung
(89)
Projekte
137
24%
Schlichtung
35
9% / 40%
Frist nicht eingehalten
52
38%
Frei
7
Entwickler 7
Bewertung
(219)
Projekte
370
42%
Schlichtung
145
17% / 41%
Frist nicht eingehalten
124
34%
Frei
Ähnliche Aufträge
Hello, I am looking for a professional programmer to optimize my existing EA integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. i want it to be an EA that can be trusted to carry trade with the help of chat gpt and also have a very low drawdown
Hey there, interested in your services for merging 2 pinescripts into one Ninjatrader Strategy. I have attached both scripts below and both will be running on Renko Charts. I added entry examples in the attachment as well. For this, I would like to add some user-defined variables such as Stop Loss and Profit Targets, or allow it to sync with my ATM strategies. Please advise if this would be possible. Additional
https://github.com/theshadow76/PocketOptionAPI https://lu-yi-hsun.github.io/pocketoptionapi/ i need someone to help with with connecting to this API and recieving signals from telegram channel i have created the app but can't make it connect with SSID and start trades and veiw these trades in realtime on the app if someone can help i would be thankful telegram : @sadscan
hi, just like mt5 plateform. there is one another new platefrom called TM9 whose website is( https://trademaster9.com/site/index.html ) i want you to create an API intigration to connect mt5 or mt4 plateform to this platform. i want you to create a copy trading software which can copy trade from mt5/mt4 to trade master 9 plateform. for more information please contact me directly. PRICE CAN BE NEGOTIATED. looking
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
Wavetrend 3D by Jdehorty open source to MT4 and then to .dll format. I do not want simple wavetrend I want the multitime frame one. If you are familiar with c++ or Delphi this is necessary https://www.youtube.com/watch?v=S64LjZVr9jE code python https://github.com/artnaz/wavetrend-3d
Job MT 30 - 150 USD
Hello developers, i need a copy trader over web with license id for mt4 and mt5, if you something available send me screenshots etc, please read the document attached and lets discuss about the project,maybe in future new features i will need
I'm looking for a developer to assist in creating an Expert Advisor (EA) for use in a prop firm. The EA should be designed for the MT4 trading platform and include the following features: Scalping strategy Maximum drawdown of 3% Please let me know if you're interested and capable of handling this project
I have an MT4 indicator, I want to receive an alert on WhatsApp when the indicator gives a buy or sell signal, I already have an API that will send the message, just send the json with the content, I will pass the API link when I have the proposal: { "symbol": "xauusd", "cellphonenumber": "00000000", "message": "test" }
My Goal: I want to make an EA that makes money using AI.. with zero losses and 100% winning chances and we will continue to upgrade and design the EA until we reach our goal. this could be a long term project

Projektdetails

Budget
20 - 30 USD
Für die Entwickler
18 - 27 USD
Ausführungsfristen
von 3 bis 5 Tag(e)