Author Topic: Help with L2B trigger  (Read 1207 times)

Tags:
  • All members
  • Posts: 17
Help with L2B trigger
« on: 03 Jun 2020, 11:35 »
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,

  • Moderator
  • Posts: 3597
*
Re: Help with L2B trigger
« Reply #1 on: 03 Jun 2020, 17:59 »
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
 
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: 17
Re: Help with L2B trigger
« Reply #2 on: 03 Jun 2020, 19:07 »
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.

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: Help with L2B trigger
« Reply #3 on: 04 Jun 2020, 14:21 »
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.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • Moderator
  • Posts: 3597
*
Re: Help with L2B trigger
« Reply #4 on: 04 Jun 2020, 16:36 »
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.
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.

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: Help with L2B trigger
« Reply #5 on: 05 Jun 2020, 10:07 »
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?
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • Moderator
  • Posts: 3597
*
Re: Help with L2B trigger
« Reply #6 on: 05 Jun 2020, 10:28 »
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
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: 17
Re: Help with L2B trigger
« Reply #7 on: 05 Jun 2020, 10:37 »
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.

  • All members
  • Posts: 17
Re: Help with L2B trigger
« Reply #8 on: 22 Jun 2020, 13:42 »
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.


 

Please note, BetFair is seems to be currently OFFLINE