Pages:
Actions
  • #1 by Matt Lock on 03 Jun 2020
  • Hi guys,

    I'm trying to setup a simple L2B trigger on horses, where it trades out for profit or loss equal to half the initial lay stake, but I'm struggling with the cash out.
    I've trade to green up for 100% profit, or trade out with a conditional that selection profit/loss is equal to stake/2, but they don't behave as I expected.

    Any help would be appreciated.


    Also, does anyone know if the imported values from a csv file have to be numeric or can they be text? My thinking is rather than having a separate csv file for each group of selections to be used in the triggers, I could use one csv and include the strategy next to the selection then use the imported_1 variable as a condition to check if the selection is "L2B" or "DOB" for example.  I've tried it, and it didnt seem work, but could have been me.

    Thanks,
  • #2 by MarkV on 03 Jun 2020
  • Hi
    Various ways to do that, try this:

    text file format:
    "selection name"<tab>"L2B"

    load markets
    import selections

    triggers:

    lay
    condition: selections trigger expression imported_1 is equal to "L2B"

    trade out
    conditions:
    selections trigger expression tradeout_net is equal or greater than bm_laya/2
    or selections trigger expression tradeout_net is equal or less than -bm_laya/2
     
  • #3 by Matt Lock on 03 Jun 2020
  • Thanks Mark.

    I've been playing around tonight and figured out the import thing - it looks like it doesn't like it went you import the selections and have a condition to check the horses name is in the txt file - once I took that condition out it worked, which is fine as it's not needed.

    I've also got the trade out working, but I've specified to trigger based on the back odds. I'll give that tradeout_net expression a go too.
  • #4 by Oxa (WellDoneSoft) on 04 Jun 2020
  • Quote
     it looks like it doesn't like it went you import the selections and have a condition to check the horses name is in the txt file - once I took that condition out it worked, which is fine as it's not needed.

    If you give me a concrete example, i.e. the names of the selections and the patterns you were trying to look for, I may find the explanation, as normally this condition should be working.
  • #5 by MarkV on 04 Jun 2020
  • Quote
    it looks like it doesn't like it went you import the selections and have a condition to check the horses name is in the txt file - once I took that condition out it worked, which is fine as it's not needed.
    If you give me a concrete example, i.e. the names of the selections and the patterns you were trying to look for, I may find the explanation, as normally this condition should be working.
    Hi Oxa
    If I may, there is an example in reply#19 in this topic
    https://community.welldonesoft.com/marketfeeder-triggered-betting/win-bet-placement-from-excel-file/msg95332/#msg95332
    basically if a text file with selection names and import values is imported, the condition "selection's name is in file" returns FALSE. However, as seen in that topic and this one, the condition is not needed because the selections have already been imported.
  • #6 by Oxa (WellDoneSoft) on 05 Jun 2020
  • basically if a text file with selection names and import values is imported, the condition "selection's name is in file" returns FALSE. However, as seen in that topic and this one, the condition is not needed because the selections have already been imported.

    Thank you MarkV, but what I don't get is whether the file at C:\Users\IAN\MarketFeeder Pro 8\Bets.txt contains exactly the same lines as the import file? I.e. the same file is used both for the condition and the import?
  • #7 by MarkV on 05 Jun 2020
  • basically if a text file with selection names and import values is imported, the condition "selection's name is in file" returns FALSE. However, as seen in that topic and this one, the condition is not needed because the selections have already been imported.
    Thank you MarkV, but what I don't get is whether the file at C:\Users\IAN\MarketFeeder Pro 8\Bets.txt contains exactly the same lines as the import file? I.e. the same file is used both for the condition and the import?
    yes exactly the same file

    sequence of events is similar for both users:
    • initially selection names only in text file using "selections name in file". condition works fine
    • users add some tab delimited selection-related data, so file needs to be imported. now "selections name is in file" returns false
    • however, "selections name is in file" is now a redundant condition because selections have been through import process, so problem is resolved by removing the condition
    I don't think there is any problem as such with "selections name is in file" condition not working

    hope that makes sense
  • #8 by Matt Lock on 05 Jun 2020
  • It might be design I suppose.
    But I'm also getting and issue using the same txt file to add markets in the market locator - if it's just a plain list then it works, but if it has tab delimited values then it fails, so I still have to use two txt files with the same selections.

    I guess both features use the same logic. It just would be nice to only have to use the one text file. But two ain't too bad.
  • #9 by Matt Lock on 22 Jun 2020
  • Following on from my L2B trigger, I'm having issues with the odds running through the stop loss on some races when the odds move quick, and me taking a bigger loss than wanted.

    I've played around with various ways for trading out - such as the trade out trigger and distribution loss - but the all give them similar behavior in this scenario.

    Can anybody advise on the best way to put a stop loss in on lay-to-back?

    I've considered just taking best price when the odds hits 2/3 of that taken lay price (as that's where the loss/profit should be equal to half the stake) but it is doesn't take those odds exactly then the stake is disproportionate.

Pages:
Actions