Skip to content

Advanced default parameter why task1 and task2 are the same? #327

Answered by kenorb
Harry040 asked this question in Q&A
Discussion options

You must be logged in to vote

It was surprising for me as well, but this was suggested by the optimization results at that time (especially for the lower deposit amounts).

Basically the task logic is: when equity reaches 5% above the balance, then close the most profitable order (a single one).
And the tasks are processed on each new minute (see: ProcessTasks).

So when sudden price movement happens (especially within a minute), we can say that one task was not called frequent enough to handle the closure of overall profits, so the 2nd one is "helping" with closing profitable orders fast enough. Basically they're equivalent to action like: close two the most profitable orders. Secondly, when the profitable order is clo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Harry040
Comment options

Answer selected by Harry040
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants