Problem 45776. Algorithmic Trading - 1 (optimize simple trading strategy)
Solution Stats
Problem Comments
-
2 Comments
please fix testsuite
my solution works well with test cases presented here when I run it on my computer, but it fails when I submit same solution
Solution Comments
-
3 Comments
It seems that test 3 and 4 need some rework. Variables from test 2 are not available.
@T. Dunker: Those test cases have been combined with test case 2 to overcome that scope problem. I re-scored your solution and it passed.
Test suite fixed
Problem Recent Solvers1
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
41172 Solvers
-
Find the sum of all the numbers of the input vector
38234 Solvers
-
Determine whether a vector is monotonically increasing
15254 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
14194 Solvers
-
13274 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!