Stored Value, Safety Net Green Up!

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
User avatar
billbo001
Posts: 105
Joined: Mon Aug 01, 2016 3:45 pm

Evening all,
Just getting back into a bit of automation. I have attached part of the file which I am am having a problem with.
1. 1st bit of the file is the 'IN PLAY STORED PRICE', which stores the back price every refresh.
2. 2nd Lay file.(ignor the other lines in the this part of the file. Basically, once the lay has been triggered, it Stores a value of the 'MATCHED PRICE' (not totally because the price is thrown about a bit, but basically that what it does!
3. 3rd part of the file is what I call a 'Safety Net', so if the price starts wondering, it will 'close the trade and green up', if the MATCHED PRICE' falls below 85%.

It does that, that bit is cool. But the thing I dont want it to do, is to Green out straight away.Give it chance.....the price flashers in and out, and most of the time,
thats what horses/prices do.

I have tried adding 'stored value changed condition' 3 to 4 seconds but that doesnt seem to work.

Thats my question.....what can I do, if I cant use, the ''stored value changed condition', OR I could be just not putting the right info in the boxes. ANY THOUGHTS??

Thanks for your time.

Will




The other file
Drifting Bot (mainly Safety Green file).baf
You do not have the required permissions to view the files attached to this post.
sniffer66
Posts: 1824
Joined: Thu May 02, 2019 8:37 am

Sounds like you need to increment a signal each time the price goes above your threshold. Then trigger the green if the signal reaches a value
i.e refresh time is 200ms, signal value reaches 5, then you know the price has been low\high enough for 1 second. Set it for a multiple of that if you want it to be for longer time period

Reset the signal if the value comes back within "normal" range before it hits the threshold and start the count again from 0. That means the increments have to be consecutive
User avatar
billbo001
Posts: 105
Joined: Mon Aug 01, 2016 3:45 pm

Thanks for your reply bud. have a look below if you could. something like this?
Drifting Bot (mainly Safety Green file) TRY THIS.baf
You do not have the required permissions to view the files attached to this post.
User avatar
billbo001
Posts: 105
Joined: Mon Aug 01, 2016 3:45 pm

Just to add. Im at 20 m/s so set it at 200 = 4 secs.
:roll:
Post Reply

Return to “Bet Angel - Automation”