Write to a file - How to write buy or sell operation
-
Hi,
I need to write in csv file in a column the kind of operation has been opened: buy or sell. It is all this morning that I am trying to find the solution but unsuccesfully. Thanks in advance to anybody can help me. -
@notoriusfx That info is not available directly from the block options. You will need a variable withthat info and then embed it into the 'write to file' block.
-
you can make a file just with buys and one file just with sells
or you make it as @l-andorrà said with a modify variable block ("trade_dir"as string with "buy" and "sell") after buy or sell and then attach the write file block with the trade_dir variable