Author Topic: Problem with file export  (Read 1576 times)

Tags:
  • All members
  • Posts: 110
Problem with file export
« on: 18 Aug 2017, 03:52 »
I am using MFPro in TEST mode to generate a file of selections based on criteria over a period of a few hours. I am using a second instance of MFPro in live mode to regularly import this file and place bets on the selections. I need to include the statement #all_active# at the end of the file I am creating so that all selections remain active when it is imported. However since the export to file process is an append this statement will gradually 'move up' the file as selections are added to it and the import will therefore not work correctly.

Have you any suggestions as to how I can solve this?

Thanks

Mike

  • Moderator
  • Posts: 3605
*
Re: Problem with file export
« Reply #1 on: 18 Aug 2017, 10:31 »
Hi
not very elegant this, but I tested and it seems to work
if you add another action to your write trigger, as the last action in that trigger: write to file text: #all_active#

the text file will have a jumble of selection names and multiple #all_active#, but there will always be a #all_active# at the end of the file.

the import process works correctly and the selections are imported, it's just the file looks a mess ;D 
 
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 110
Re: Problem with file export
« Reply #2 on: 20 Aug 2017, 08:21 »
Thanks Mark.
How do I create the TAB delimiter when writing the file from MFPro?

  • Moderator
  • Posts: 3605
*
Re: Problem with file export
« Reply #3 on: 20 Aug 2017, 09:08 »
Hi
it's \t
["sel_name"]\t1.56\t4.00\t[last_traded]
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 110
Re: Problem with file export
« Reply #4 on: 22 Aug 2017, 09:31 »
Thanks Mark - that's done the trick!

 

Please note, BetFair is seems to be currently OFFLINE