Method for logging in a text file

MQL4 Esperti

Lavoro terminato

Tempo di esecuzione 2 giorni

Specifiche

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)

Con risposta

1
Sviluppatore 1
Valutazioni
(236)
Progetti
440
26%
Arbitraggio
125
21% / 57%
In ritardo
96
22%
In elaborazione
2
Sviluppatore 2
Valutazioni
(97)
Progetti
121
25%
Arbitraggio
5
20% / 60%
In ritardo
17
14%
Gratuito
3
Sviluppatore 3
Valutazioni
(28)
Progetti
47
23%
Arbitraggio
13
31% / 15%
In ritardo
12
26%
Gratuito
4
Sviluppatore 4
Valutazioni
(550)
Progetti
827
73%
Arbitraggio
15
53% / 13%
In ritardo
193
23%
In elaborazione
Ordini simili
I would like to create an EA based on the Shved Supply and Demand indicator. you can find the Shved Supply and Demand v1.7 indicator in the following link https://www.mql5.com/en/code/29395 NB: Checks the trading robot must pass before publication in the Market ( https://www.mql5.com/en/articles/2555 ) MQ5 file to be provided
Im looking for an coder to code an EA: Trade management 1. opening trades according to the indicator 2. trades settings to choose from like: open all trades according to the signal open only trade 1,2,3 or 4 % per trade ( example 50/30/20 of the lot settings, with 4 trades it would be for example 50/30/10/10) 3. SL/Trailing settings: Move SL to entry after hitting TP1/TP2 or TP3 moving SL by % keep the original SL
Hi I'm looking to have 2 of my pinescript strategies converted to MQL5 and was wondering if you could first give me a quote for the more simple strategy and then for both the simple and complex strategy together. The simple strategy is a MACD crossover type thing that uses a special EMA script that filters out some ranging price action and also fractal candles for the stop loss. The second strategy is market
I want grate robot for making profits that know when to start a good trade and close a trade and must be active all time to avoid lost of money
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
Mbeje fx 50+ USD
I like to own my robot that why I want to build my own.i like to be a best to every robot ever in the life to be have more money
I need an MT5 EA that can do the following: I have to give the EA a price in advance, when the price is reached the EA has to automatically place a buy stop or sell stop order 0.5 pips below or above the price. Is this possible
Dr Pattern 30+ USD
good day i need the service of the seaso coder to help me fix my ea The Job required 1 knowledge of Mt4 and Mt5 indicator coding 2. Telegram code 3. ability to code indicator to work on multiple Time frame combine to trade 4 Ability to Join two or three indicator on same ir different time frame if you have these skill please let chart i will discuss the details of the Job inside to you The required day including
Good day, I want someone to help me create a universal news filter with on/off switch, with start and end settings, and drawdown control with magic number of EAs, etc. Thanks
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

Informazioni sul progetto

Budget
50+ USD
IVA (19%): 9.5 USD
Totale: 59.5 USD
Per lo sviluppatore
45 USD
Scadenze
a 5 giorno(i)