I have set a rule to close profit condition.
I want the rule to re set after triggered because if I enter trigger once. It will only work once. However if I change it to say trigger 1000 and wait 5 seconds soon as my close position has reached its limit if another position is opened it automatically closes that position again.
I just want it to reset. So if my close profit was at -1 and thats reached, the next trade will only close if that selection reaches -1 (which would total -2). Instead my method either doesnt work more then once because of the trigger or if I have more triggers it almost instanly closes my position as any position opened is now obviously below -1.
Hope this doesnt sound to complex basically I want the automation to understand that each trade is indivdual. So I only want my close profit condition to work based on the merits of each individual position and individual trade.
Thanks for your help
Close profit condition
- mjmorris335
- Posts: 180
- Joined: Mon Jun 06, 2016 11:29 am
SeaHorseRacing wrote:Hope this doesnt sound to complex basically I want the automation to understand that each trade is indivdual. So I only want my close profit condition to work based on the merits of each individual position and individual trade.
Thanks for your help
This isn't going to help you at all, and I'm very sorry about that, but this reminds of something called JSP (Jackson's Structured Programming), which was designed to teach the logic behind coding rather than the coding itself. I'm not sure whether it's still taught, but one extremely slimline book (and an aged lecturer) enabled me to create programs using Pascal, COBOL, C, C++, SQL and many other languages since.
The point I'm making is, if you understand the logic, you'll be able to understand how to implement it within the rules that BA automation provides. But there is some work to be put in.
If you upload the 'baf' file I'd be happy to have a look.
Also, I find it really useful to write down the logic of what I'm trying to do 1st, then apply BetAngel rules to it, but maybe that's just my simple brain's inability to deal with too much complexity.
Also, when I've used close profit conditions in the past I've used an incremental signal to trigger the next bet with a different stop limit. This means that losing trades don't get triggered ad infinitum.
In addition, and working in a live market, the value of the loss on one selection is permanent and cannot be reset, so it is necessary to increase the stop from say -£10 to -£20 if you need to have another crack at a trade on that particular selection. There's absolutely no way around that thank goodness.
To simplify an automation I tend to just replicate the 1st rule I create as many time as I need to with the 'Copy selected rule button' then make changes to each to meet my criteria, then look to combine them into one rule if possible. This definitely helps when paper trading, and using the log to identify the errors in a system helps a lot too.
Hope that's of some use.
Also, I find it really useful to write down the logic of what I'm trying to do 1st, then apply BetAngel rules to it, but maybe that's just my simple brain's inability to deal with too much complexity.
Also, when I've used close profit conditions in the past I've used an incremental signal to trigger the next bet with a different stop limit. This means that losing trades don't get triggered ad infinitum.
In addition, and working in a live market, the value of the loss on one selection is permanent and cannot be reset, so it is necessary to increase the stop from say -£10 to -£20 if you need to have another crack at a trade on that particular selection. There's absolutely no way around that thank goodness.
To simplify an automation I tend to just replicate the 1st rule I create as many time as I need to with the 'Copy selected rule button' then make changes to each to meet my criteria, then look to combine them into one rule if possible. This definitely helps when paper trading, and using the log to identify the errors in a system helps a lot too.
Hope that's of some use.