Save all trades in .csv file
-
Hello, I created this structure to save data of closed orders in a .csv file in lines, each closed order must be recorded in one line, always in the next line without deleting the previous order.
What I noticed is that some orders are not being saved.
Why does this happen?
Can you help me?
https://fxdreema.com/shared/5oJrjZhGc -
@ontradingx I am unsure, would think this is how to do it.
-
@ontradingx You are requesting the loop to be executed avery tick. You'd better save the info just once by trying this on the 'on trade' tab:

-
@l-andorrà Will this allow saving all operations that happened at the end of a backtest?
I managed to achieve my goal by placing the pinv block once per position/order.
But I will try the way you mentioned.
Thanks for your help. -
@ontradingx It should work, but never tried it personally. Please confirm if it works.
-
@l-andorrà Hello my friend, I tested the way you said and data was missing, the best way I found was putting the pink block " once per trade/order" connected to "For each closed position" and it worked perfectly.
Thank you for your help, always very present and enlightening. -
@ontradingx Thank you for sharing your testing. Very appreciated!