Replace file content

Created at 05 Mar 2018, 07:07
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
swingfish's avatar

swingfish

Joined 25.06.2016

Replace file content
05 Mar 2018, 07:07


i have a small Algo that writes the current trades in a file.

but the data gets Apended (because i use the ApendAll in init)

is there a way to clean the file each time the function runs before 

 

what i want to accomplish is that ONLY the active trades are in the file.

 

 


@swingfish
Replies

PanagiotisCharalampous
05 Mar 2018, 11:06

Hi swingfish,

Please check this post. It might be helpful for you.

Best Regards,

Panagiotis


@PanagiotisCharalampous