Article

Profit History - first easy trading analyzer

Hi, is there any output from Profit History?

 

------------------

In my full automated strategy I need to analyze some running process. Not for trading, only for analyze - for example usually behavior of market, if profit is bigger or loss smaller anytime, or the profit is oscillating around zero etc.

-------------

Any saved output...

 

Updated by Stefan, August 25, 2015


SaveBotDataBotTrigger uses just one parameter: CsvFolder, the folder name where you want to save your csv files, for instance: CsvFolder:F:\Temp

Bot saves: Bot name;Selection name;Back prize;Back size;Lay price;Lay size;Hedged profit

Download “SaveBotDataBotTrigger” script if you want to test it or build your own script from it.

Comments ( 16 )


  • Stefan
    7.9.2015 13:23:01

    Miro, I believe that using common sense is in place here, as I already said, you have got bot trigger source code, so you have got “documentation” to this SaveBotData bot.


    You have got Visual Studio installed. If I publicly released this bot, I did so mainly for those who want to learn betfair bot programming, so including Bfexplorer BOT SDK and all my publicly available bots, they have got a lot of bot code to learn from and to build on this code, its own betfair bots.


    Therefore please open Visual Studio, open Bfexplorer BOT SDK solution, and open this bot source code, then you can learn how this bot saves bot’s bet position only for those bots inherited from SelectionBot.


    My common sense says to me that you should manage to do so, right? You installed Visual Studio, so you must know how to use it, otherwise, my common sense says, you did not install something you have no idea how to use it, right?


    The bot code is very simple, and you can see what method is actually used to detect when SaveBotData bot needs to save a bet position of the bot that has just ended its execution:


    (market.RunningBots :> INotifyCollectionChanged).CollectionChanged.AddHandler SaveBotDataHandler


    Ok, you will say you have got no idea about bot programming, but even you are not a software developer, I believe you are able to read some English words, right?


    market - running bots - collection changed - save bot data


    You said you use Repeat Until bot. Unfortunately, for this type of bot your SaveBotData bot will not detect that your action bot ended its execution, so will not save its bet position to CSV file.


    It seems this article is not more about bots, but more about quarrelling who is right or wrong, who has and use a common sense or not.


    Last days I visited some other forum of my competitors offering betfair automation. Frankly to say, sometimes I had no idea about what people were asking for, and I was surprised that even simple operations like closing bet position or placing bets has to be done by combinations of different rules, or settings and a lot of things could not be done at all. I was surprised by people’s understanding of those rules and features; actually no one has been complaining that something cannot be done, or the way how it is done or implemented. All users have base understanding, some way they grasped a common sense in using app features,  and I must say that those features are a lot of complicated comparing to bfexplorer ones, that is at least my opinion.


    Back to the common sense in using bfexplorer features. If you start a bot, in the Output view you can read the message: The bot XY has been started. When a bot ends its execution, in the Output view you can read the message: The bot XY ended.


    The above mentioned fact is important, mainly in the context how the SaveBotData bot works. The bot detects when a bot is removed from the market bot collection, and at the moment saves its bet position.


    The bot Repeat Until, or Chain Execution bot, execute its action bot/s internally without exposing them to bfexplorer. Bfexplorer, the Market Bots view knows only about the Repeat Until, or Chain Execution bot, but nothing about internally executed bots, and you could learn this common knowledge just by observing what bot writes to the Output view, or what bots are presented in the Market Bots view.


    Miro, so it is again just about a common sense in using bfexplorer features, some way you still did not grasp it when using bfexplorer, and in this case it is really quite simple, how the bot SaveBotData can save bet position of market running bots, if those action bots are not presented in Market Bots view?


    Please, read this:


    market - running bots - collection changed - save bot data

  • Mir.
    7.9.2015 21:38:45

    I give up!

     

    I do not want and I will not waste your time. It is not about my common sence, about my truth etc.


    I or the others can use the software with own intent.

     


    Question: Must be your customers a programmers?

    Answer: Yes.

     

    Logic, UI, detailed knowledge of how what works and why not, trading habits upside down, "customer care" ... is only for programmers.

    You need a programmers.

    I am only the one of many traders without common sense but with non-transferable feel for the markets. I'm not a programmer neither when I have installed Visual Studio.

     

    Do you understand me?


    Do you understand your customers?

     

     

    --------------------------

    btw: try to find a car dealer who will scream out that you're a bad driver and you don't know how it is made of tire

     

  • Stefan
    8.9.2015 1:03:53

    Miro, I really think it is you who do not understand what you are talking about.


    Any feature or bot you asked here on forum actually did not exist in base bfexplorer features or in the code base of bfexplorer backend. So any of your questions starting with: is it possible, how can I do that or this one, was not from my side about explaining bfexplorer feature, but actually about implementing a new feature to bfexplorer or creating a custom built bot for you.


    I think you really cannot say that you did not know about it, because in one of my emails to you I said that this is my last custom bot script I built for you and it will be only up to you, how you manage to update it, if necessary, to suit your needs or requirements later.


    Anyone interested, can click on your forum name to list all your forum posts and read your ideas or requirements.


    I did not implement all you asked for, but as it is with any request from my customers, I did implement what I thought was interested or useable for others as well. When saying usable then I do not mean exact bot feature, but implementation code behind, the interfaces which allows extending bfexplorer features. I believe you are not able to understand this fact, and all what you can see and think that was done, is bfexplorer application user interface or bot scripts you downloaded.


    Man, what you can actually see is just 20% of my work I have done when working on your custom bot scripts, because anything you could see this way, is supported by a lot more code in bfexplorer backend.


    Let’s take just last bot script for saving bot status to csv file, to make it work I had to change any bfexplorer bot already implemented in My Bots, to expose necessary data. Anytime I updated your bot scripts I said you need to install the latest version of bfexplorer and re-download your bot script/s. 


    I patiently explained new features and how to use them, and I repeated it in some cases many times.

    I appealed on your common sense because I really did not know how to further explain the same features again and again, when I tried to say it from different point of view, and you still did not understand what I had been talking about.


    You used my kindness and willingness to help you implement your bot scripts, and you knew what I said, that it will be only up to you, to make changes to them later.


    Now, when you say that SaveBotData bot script does not save bot data of Repeat Until bot, and I explained why is it so, again appealing on your common sense, because all it was already said before, you complain about my customer support and about not knowing my customer’s needs.


    Now you say that you are not a programmer, but you agreed that I program for you all those bot scripts. So you used my kindness, because if I knew that, I had never built all those bot scripts for you, just because I have almost no spare time, so I am not able to manage your bot scripts indefinitely.


    Well, bfexplorer can do a lot just by setting some parameters or clicking on some buttons. What you asked for was nothing standard in bfexplorer features, and I believe you know/knew it. What you asked for was extending bfexplorer features by bot script programming.


    I really like to see support from bet angel for instance, when you ask them to add your bot to their product, so you can execute your bot by clicking on ladder. You have got a lot of betfair products you can choose from, so please show me at least one better customer support, on the same set of features in their app I implemented for you.

  • Mir.
    8.9.2015 22:01:49

    Are you seller or not?


    Do you realize that others perceive how you behave, eg. to me...


    The one side is: "Write some ideas, how to extend Bfexplorer..." other side "You are a fool without common sense which abuse my kindness and willingness..."


    I think that this story is too complicated, for me, especially...

     

    ----------------------------------

    All bots work very well.
    Nice job.

     

    Btw: I must congratulate on fantastic feature: executing your own bot by clicking on ladder (you reminded in the last post). An incredible competitive advantage... It had to be idea not from idiot without common sense...

     

  • Stefan
    9.9.2015 0:33:33

    The bot scripts I made for you extend bfexplorer bot features; this is not a case for common support I offer for my Professional subscribers.


    We agreed that I will build a bot for you (from one bot there were 3 bot scripts at the end). I really wanted to help you, but there are some limits.


    I hoped that as we agreed I build a bot and you will be doing any necessary changes to the bot by yourself.


    Actually any bot developer can confirm that bot code is nothing complicated, because it is actually bot script that orchestrates built-in bfexplorer action bots, for instance Place bet and close bet position bot (the trading bot your bot scripts use) is 12 times more complicated, if we just measure the length of the bot source code.


    I have done my job, and delivered your bot scripts, and I made a lot of changes to bfexplorer as well, for instance Use Ladder to start bot execution by clicking on a ladder, such feature was implemented in the old bfexplorer, but to the new bfexplorer I added this feature only after introducing Bot Trigger scripts.


    So as agreed you received your bots, and the hell started, when you started to use your bots and wanted to make some changes. I was forced to reply for really simple questions, you have got your bots, you have got your documentation to any bot feature, as you received source code of your bots, so such questions are not in place, mainly as we agreed that you will make changes yourself, so I hoped you will learn something about bot programming.


    At the end I appealed on your common sense, and not only in what you were asking but how you behave as well. Miro, we agreed on something and now you say that I must do it, as that is a customer support I am obliged to give you. I am not your slave.


    Of course, I am happy to give you customer support you paid for, but this customer support does not include development of custom built bots or trading solutions in the extend you require.


    I can build simple bot, if necessary, just to show my customer how to start with bot development, what I actually did for you, but I am not able to spend 3-4 hours daily just to change something in your bots, and in following day to learn that you want to do add some new feature, and what I made a day before is useless.


    I asked you to show me how behave other betfair vendors to your questions for building similar bots as I did for you.


    I could simply reply, as I believe they will reply to you: Unfortunately, such feature is not yet supported by our product; we will consider adding it in a near future. Thank you for asking.


    And that is the end of this story.

  • Mir.
    9.9.2015 23:33:08

    You can say too: sorry, this feature is not yet supported by my product.

    Why you do not write it?

    Every other piece of Betfair software is for a specific user. For example trading In-play horse racing in Bfexplorer is almost impossible now (my experience)

     

    You want compare Bet Angel - Geeks Toy - MarketFeeder Pro - Bfexplorer?It is better compare incomparable for you?
    It is crazy!


    ---------------------

    All what you made is usefull. It is your project, your business. Any feature from community appreciates your software - any custom script you can sell to others users.

     

    ...and you are not right. This is not the end of this story. This story will continued, because this story is about you!