Author Topic: Traded out, without an opening trade  (Read 792 times)

Tags:
  • All members
  • Posts: 59
Traded out, without an opening trade
« on: 05 Nov 2022, 14:18 »
Having a bit of trouble with a complicated trigger.



So in the screenshot is a trade out trigger.  It traded out, even though there was no opening trade.

  • So the first 3 conditions were met.  
  • Then I manually cancelled the trade
  • Then I opened a lay at a different price, using a different trigger
  • Then this trigger fired

So technically the last condition was met, but I need it to be correlated with the 3rd condition.  Is there a way of doing that?


  • Moderator
  • Posts: 3597
*
Re: Traded out, without an opening trade
« Reply #1 on: 06 Nov 2022, 11:44 »
Hi
If you do not want this trade out to fire if a different trigger makes the opening trade add this condition:
and trigger <name of different trigger> number of runs per selection is equal to 0

If the trade out is to operate if either trigger opens the trade then use a condition block:
AND
     trigger LAY LPBP number of runs per selection is greater than 0
     or trigger <name of different trigger> number of runs per selection is greater than 0  
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: 59
Re: Traded out, without an opening trade
« Reply #2 on: 06 Nov 2022, 23:54 »
Thanks for your reply, Mark.

The problem I have is roughly this:
  • trigger 1 sets unmatched lay at 1.5
  • trigger 2 sets unmatched back at 1.9
  • trigger 1 cancels lay
  • trigger 2 back gets matched
  • trigger 2 trades out with lay at 1.8
  • trigger 1 sees the lay placed by trigger 2 and triggers it's own trade out

What are my options to only trade out trigger 1 if it gets matched, regardless if any other triggers are fired?

1. I've been poking around and I can see that there's a Source, but couldn't find a way of accessing it.  Is it possible to access?  Also, why are only 2 showing here?


2. The second thing I was thinking was using User Vars.  I can see how to set a user var, but I can't seem to work out how to set it if the trade is matched.  

3. The third thing was using the stake or price, which is what, Mark, you suggested for cancelling the bet.  But I can't find "priced between" or "bet size between" (which are in the cancel options) in the Conditions section.


These are my raw ideas.  Are any of them possible? Thanks

  • Moderator
  • Posts: 3597
*
Re: Traded out, without an opening trade
« Reply #3 on: 07 Nov 2022, 17:35 »
Hi
Number of runs condition is the key but I will need to see your trigger file to understand and test it. Please could you either post it here or send it in a private message and I will have a look.
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: 59
Re: Traded out, without an opening trade
« Reply #4 on: 07 Nov 2022, 17:40 »
Fantastic. I'll drop you a PM.  Cheers.

 

Please note, BetFair is seems to be currently OFFLINE