Telegram BOT reply to messages with quote - page 3

 
Fabio Brondo #:


So if i've got your suggestion this part will look like this:

1:

2.  Yes, it has Start,init, deinit.

3.Ok i will keep _path

4. I don't care of the name, if it works :)

5. It will be like this:

Your path should start from data folder only. No need fullpath 
 
Lorentzos Roussos #:

Oh , the TelegramL.mqh The clean version does not have the get message id modification .

Here is the latest 

Thank you!
I've discovered that i'm also missing 

  • Jason.mqh
  • List.mqh 
  • ArrayString.mqh
Do you have these clean? 
 
Fabio Brondo #:

Thank you!
I've discovered that i'm also missing 

  • Jason.mqh
  • List.mqh 
  • ArrayString.mqh
Do you have these clean? 

You have these definitely . Place the telegramL in the includes telegram subfolder and call it from there , alongside the other one

 
Lorentzos Roussos #:

You have these definitely . Place the telegramL in the includes telegram subfolder and call it from there , alongside the other one

You right! I've found and placed them properly, and now everything is working! 🤩

 
Fabio Brondo #:

You right! I've found and placed them properly, and now everything is working! 🤩

Awesome , well done  😎

 

@Lorentzos Roussos i have a little-off topic maybe question for you, if you want to help me again...
Now what I have on the CSV file generated from the EA is like this:

Order ID;Order Type;Open Price;Open Time;Symbol;Lots;Stop Loss;Take Profit;Message ID

166816632;buy;1.20339;2023.02.06 13:49:38;GBPUSD+;0.01;0.00000;0.00000;648
166835123;buy limit;1.00000;2023.02.06 15:29:12;GBPUSD+;0.01;0.00000;0.00000;649
166816632;buy;1.20339;2023.02.06 13:49:38;GBPUSD+;0.01;0.00000;0.00000;650
166836511;buy;1.20568;2023.02.06 15:35:10;GBPUSD+;0.01;0.00000;0.00000;651
166836537;buy limit;1.00000;2023.02.06 15:35:17;GBPUSD+;0.01;0.00000;0.00000;652
166836757;buy limit;1.00000;2023.02.06 15:36:05;GBPUSD+;0.01;0.00000;0.00000;654
166836830;buy limit;90.00000;2023.02.06 15:36:23;SGDJPY+;0.01;0.00000;0.00000;655
166837990;buy limit;1.00000;2023.02.06 15:41:14;GBPUSD+;0.01;0.00000;0.00000;658
166837990;buy limit;1.00000;2023.02.06 15:41:14;GBPUSD+;0.01;0.00000;0.00000;659
166838990;buy limit;1.00000;2023.02.06 15:45:21;GBPUSD+;0.01;0.00000;0.00000;677
166839042;buy limit;1.00000;2023.02.06 15:45:38;GBPAUD+;0.01;0.00000;0.00000;679
166839078;sell limit;85.00000;2023.02.06 15:45:51;NZDJPY+;0.01;0.00000;0.00000;680

Now the "big" question...
If i modify any parameters such as the enter price of a pending order, or SL/TP, there is a way to update also the corrisponding row?

Let's imagine that i want to modify this row from:

166836757;buy limit;1.00000;2023.02.06 15:36:05;GBPUSD+;0.01;0.00000;0.00000;654

to:

166836757;buy limit;2.00000;2023.02.06 15:36:05;GBPUSD+;0.01;1.50000;3.00000;654

Is this something possible to do?


This is usefull also to better understand how to delete the corrisponding row once the order is closed or deleted.
I've read something here about the FILE_SEEK function but it's still unclear...


Thank you in advance!

 
Fabio Brondo #:

@Lorentzos Roussos i have a little-off topic maybe question for you, if you want to help me again...
Now what I have on the CSV file generated from the EA is like this:

Now the "big" question...
If i modify any parameters such as the enter price of a pending order, or SL/TP, there is a way to update also the corrisponding row?

Let's imagine that i want to modify this row from:

to:

Is this something possible to do?


This is usefull also to better understand how to delete the corrisponding row once the order is closed or deleted.
I've read something here about the FILE_SEEK function but it's still unclear...


Thank you in advance!

Hello , i think you have to read the contents store them , find the row and rewrite the entire file . I think . 

That is why the structures had the save/load methods in the beginning to avoid this situation :)

It is better if you have everything your program needs to operate in memory and then have save intervals when needed to write to a file .

Since it's not efficient to save/load with csv i am not familiar with editing them , and i only use them for exporting to excel .

I suggest you switch to FILE_BIN and write binaries which is faster and easier to manage as well .

Reason: