Signals/Stored Values To Stop Laying The Server After 2 Loss In-a-row

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
User avatar
lotora
Posts: 754
Joined: Thu Dec 24, 2009 9:20 am

Today I am using: "Close Trade Profit Condition: The selection's trading profit condition with greening is greater than -X", as a way to limit a potentiel greater loss. However, it would have suited me better to ALSO use signals/stored values to add another condition, for example: Stop laying the server when the 2 latest bets where BOTH NOT profitable.

Since It's a little bit too technical for me, I would really appreciate if anyone could help me out. Please edit the file attached (copied from viewtopic.php?f=43&t=11747). (A "random file" in order to make it easier to understand how it could be done).
You do not have the required permissions to view the files attached to this post.
User avatar
lotora
Posts: 754
Joined: Thu Dec 24, 2009 9:20 am

Anyone?...maybe Dallas?
User avatar
Dallas
Posts: 23599
Joined: Sun Aug 09, 2015 10:57 pm

I don't have time to make the whole file, but can type out some instructions or if you go as far as you can I can check what you've got then advise any changes still to make
User avatar
lotora
Posts: 754
Joined: Thu Dec 24, 2009 9:20 am

Thanks Dallas! When you have the chance, nice if you can type out some instructions.
User avatar
Dallas
Posts: 23599
Joined: Sun Aug 09, 2015 10:57 pm

What you'll need is a Set/Modify Stored Value rule
to store the value of your P/L
This rule also needs to 'Increment a Signal' on the selection

So basically as the rule fire it sets a signal of 1, if it fires again it sets a signal with a value of 2

This rule needs to trigger at the start and then only after your green up rule triggers.


You'll then need a 'Set/Modify Signal' rule
to Clear the signal above

With a Stored value condition to test the P/L is greater than the one created above

So if signal sets as 1 then you next trade is a profitable one it resets the signal value back to 0 and so on


Finally you'll need another green up rule with a Signal Value condition to test
The signal (you created with the first rule)
Value is equal to 2

Those three rules will do what you want, you'll just need to set the timings and add in a condition here and there for them to trigger as detailed further up
Post Reply

Return to “Bet Angel - Automation”