Method for logging in a text file

MQL4 Experten

Auftrag beendet

Ausführungszeit 2 Tage

Spezifikation

Hi, i need a method which logs into a text file CSV following data:

for each position:

id open; description open; open time; open price; id close; description close; close time; close price; volume; profit

I have a lot different methods=strategies for opening/closing positions. And meanwhile it has become difficult to analyses which of the methods is profitable and which is not. I want be able to look after a backtesting in a file and simply add all profits of one method (=id) to see this at once. If the file is CSV, i can use excel to filter for ID.


For this purpose you will have to write a method

void pos_log(int type, int id, string description)
type: -1=open sell, 1=open buy, 99=close all

. I will call the method each time when opening/closing a position(s).

There is a global variable "Lots" where the volume can be accessed.

I have already a function and a structure, which is collecting some necessary info about open positions. You can add there some info. And when the position should be closed, you have to write the data into file.

struct STRUCT_ORDER_INFO {
 datetime ot;
   double op;
   double lot;
      int type;
   string sign;
   int magicNr;
};
STRUCT_ORDER_INFO order_info[];

//==========================================================================================================================================================//
void GetTickets_and_OrdersInfo() 
{  
...
}
//20140922 DIUBAKIN (end)

Bewerbungen

1
Entwickler 1
Bewertung
(236)
Projekte
440
26%
Schlichtung
125
21% / 57%
Frist nicht eingehalten
96
22%
Arbeitet
2
Entwickler 2
Bewertung
(97)
Projekte
121
25%
Schlichtung
5
20% / 60%
Frist nicht eingehalten
17
14%
Frei
3
Entwickler 3
Bewertung
(28)
Projekte
47
23%
Schlichtung
13
31% / 15%
Frist nicht eingehalten
12
26%
Frei
4
Entwickler 4
Bewertung
(548)
Projekte
825
73%
Schlichtung
15
53% / 13%
Frist nicht eingehalten
193
23%
Arbeitet
Ähnliche Aufträge
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link
so basically I have an EA(mql5), AI script(python), flask server and socket server both on python. Now this is an experimental script as I am trying to learn. However the EA is not entering any trades. How much would it cost for you to troubleshoot this for me? Thank you in advance
NEW FUNCTION 50+ USD
La idea es la siguiente, sería un EA semi automático. Yo como trader opero en zonas. En adelante las vamos a denominar ``zonas calientes´´. El EA debe que necesito debe operar conforme a 4 zonas calientes que yo configure en el mismo. ¿Qué hará el EA en cada una de esas zonas calientes que yo he configurado? En cada una de estas zonas el EA debe realizar hedging (crear un rango en el cual el EA entrara en sell o en
I have the bot just over half made, from another developer who let me down and decided they no longer wished to finish the project, so I have a basic example of the fundamentals of what it could look like, although multiple functions I require do not work, but I can show this to you on request. There are multiple features that I require, so please read the in depth requirement sheet on the attachment. Function: To
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. - Can recognize RSI. - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss below/above support/resistance, but risk must be fixed at a certain price. - Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
"I need an expert advisor (EA) based on stochastic divergence and candlestick formation. It should be able to identify both hidden and regular divergences. The EA should also include modified risk-reward ratios, modified timeframes, and a trailing stop loss. It is important that the EA is 100% accurate. Once an experienced developer applies, I will share the complete strategy."
I am seeking a highly skilled and experienced developer to assist with an important project. I need a development of an automated trading bot for NinjaTrader, utilizing a 4 SMA (Simple Moving Average) crossing strategy, with additional custom diversions for trade entries. The bot needs to be based on a strategy involving the crossing of four different SMAs. The exact periods for these SMAs and the conditions for
I need someone that can make expert advisor for backtesting purpose. The input file is History trade report export file from MQl5 the expert advisor should open position the exact time of open trade on the report. The same as the close time

Projektdetails

Budget
50+ USD
MwSt (19%): 9.5 USD
Insgesamt: 59.5 USD
Für die Entwickler
45 USD
Ausführungsfristen
bis 5 Tag(e)