Author Topic: Keep user variable when reloading trigger  (Read 437 times)

Tags:
  • All members
  • Posts: 166
  • Karma: +2/-0
Keep user variable when reloading trigger
« on: Wed, 06 February, 2019, 13:52 »
Hi
I have made a trigger that backs in certain races at a particular course.

It also increases stake after a loser by a% of the starting stake that is set by a user variable called lo_st.

The name of the course is set in constants. Then I create a user variable called tra_name from the constant, and one of the conditions for backing is market name contains "tra_name".

Now this all works fine, the issue is, when I wish to change the track name.

At the moment when I wish to change the name I change the constant to another course say MrktR. So far so good. Then I have to reload the trigger to change the track name but this also erases all the values of the variable lo_stk.

So my question is; is there anyway to change the track name without having to reload so I don't lose the value of lo_st, or indeed save the value of lo_st when I reload?

Cheers
Mike

  • Moderator
  • Posts: 4423
  • Karma: +251/-10
  • Gender: Male
*
Re: Keep user variable when reloading trigger
« Reply #1 on: Wed, 06 February, 2019, 15:36 »
hi
open the user variable screen , type tra_name
hover the mouse pointer over the name and click the right mouse button , you should see Set Value , click this and then type the new track name.

mcbee
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: 166
  • Karma: +2/-0
Re: Keep user variable when reloading trigger
« Reply #2 on: Wed, 06 February, 2019, 15:49 »
Hi
Sorry I don't understand
Hovering and right clicking gives me copy action, clone action, delete action

  • Moderator
  • Posts: 4423
  • Karma: +251/-10
  • Gender: Male
*
Re: Keep user variable when reloading trigger
« Reply #3 on: Wed, 06 February, 2019, 15:59 »
hi
the user variable screen after you type the tra_name


mcbee
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: 166
  • Karma: +2/-0
Re: Keep user variable when reloading trigger
« Reply #4 on: Wed, 06 February, 2019, 17:24 »
Still cannot see that.
So I have created a condition in backing
Markets name is in file ...
Not as tidy but means I can just update the file instead of the trigger
Mike

  • Moderator
  • Posts: 4423
  • Karma: +251/-10
  • Gender: Male
*
Re: Keep user variable when reloading trigger
« Reply #5 on: Wed, 06 February, 2019, 18:53 »
hi
you have to right click before selecting the variable.
do not press the left mouse button.

mcbee
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: 166
  • Karma: +2/-0
Re: Keep user variable when reloading trigger
« Reply #6 on: Sat, 09 February, 2019, 13:28 »
Hi
I have tried and tried but this still gets me.
I have made a trigger that runs three separate horse racing systems that works perfectly, except for this one issue, I just cannot see how this works I have really got my stupid head on at the moment
Mike

  • Administrator
  • Posts: 7492
  • Karma: +249/-0
  • Gender: Female
*
Re: Keep user variable when reloading trigger
« Reply #7 on: Sat, 02 March, 2019, 18:51 »
Hello!

Here is a step-by-step video tutorial:

https://www.youtube.com/watch?v=q-JxOiJcZek
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Usuários brasileiros, bem vindos ao nosso WhatsApp chat!

Присоединяйтесь к нашей официальной группе ВКонтакте!