Modify method so that it can return the highest running profit

  • Status: Closed
  • Prize: $10
  • Entries Received: 1
  • Winner: Buckner

Contest Brief

First place that fulfills all requirements will get $240 BONUS!!! Second and third place will also get a BONUS. You will get more than $100 if your work is in the top results.

Fix method BuySellSignalExtensions.CalculateBuySellSignal. It cannot be curve fitting - you have to define buy and sell rules. There are data files available. When you run Console.sln, the program will print out outputs. Please read the README if you want some background into what previous devs have asked me. I will award the prize to whoever comes up with the best algorithm that shows the best result that beats the following current console output. I might award second and third place algorithm. If the code has too much curve-fitting instead of coming up with interesting and unique algorithms, I will not accept that solution.

running profit: 0.30 cost and profit: -21.84 last bought: 22.14 sold count: 3 - ATSG$0.20$.csv
running profit: 1.265 cost and profit: -17.945 last bought: 19.21 sold count: 2 - CORE$1.10$.csv
running profit: 0 cost and profit: 0 last bought: none sold count: 0 - EMD$0.10$.csv
running profit: 0 cost and profit: 0 last bought: none sold count: 0 - FAT$0.00$.csv
running profit: 0.10 cost and profit: -19.40 last bought: 19.5 sold count: 1 - JBLU$0.10$.csv
running profit: 0 cost and profit: -8.5 last bought: 8.5 sold count: 0 - MGI$0.14$.csv
running profit: 0.295 cost and profit: 0.295 last bought: none sold count: 2 - QUAD$0.25$.csv
running profit: 0 cost and profit: -6.57 last bought: 6.57 sold count: 0 - RRD$0.30$.csv
running profit: 59.588332 cost and profit: -6500.993486 last bought: 6560.581818 sold count: 4 - ZT1$48.05$.csv
running profit: 1183.63 cost and profit: -7302.11 last bought: 8485.74 sold count: 54 - ZT2$1183.63$.csv
running profit: 0.04 cost and profit: -6512.51 last bought: 6512.55 sold count: 2 - ZT3$0.04$.csv
running profit: 813.01 cost and profit: -6561.99 last bought: 7375 sold count: 52 - ZT4$813.01$.csv

Recommended Skills

Employer Feedback

“James put 100% effort and communicates his findings with the client. He took the project seriously and it shows in his communication with me.”

Profile image mysti9uemirage, United States.

Public Clarification Board

  • mysti9uemirage
    Contest Holder
    • 4 years ago

    Please DO NOT blindly submit buy/sell signals!

    • 4 years ago
  • Buckner
    Buckner
    • 4 years ago

    THERE IS AN ISSUE WITH YOUR EXCEL FILES THAT IS MAKING THE CONSOLE SILENTLY FAIL TO LOAD ZT2, ZT3, ZT4. I kept thinking the sample data just incluided some extra source data that we didn't have, but that's not the case. Starting at Row 30002 of file ZT2, the price value is missing, but the first column continues to show a value of "date" until Row 1048576. This leads to System.FormatException: 'Input string was not in a correct format.' as the line variable is then reading "date,,,,," I am going to edit the file and delete the rows from 30002 to the end as looking at your sample data, it appears the original source file stopped at row 30001.

    • 4 years ago
    1. Buckner
      Buckner
      • 4 years ago

      There is also an error in ZT4 where the Close, High, Low, Open continue to the end Row 30001, however the Date/Time field goes blank at Row 179 leading again to a Format Exception. I was able to correct the two .CSV files by deleting all rows after 30001 in file ZT2 and by adding in the date/time field that increments by one minute each row into file ZT4 starting at Row 179. My entry includes a screenshot of the original algorithm console output as proof that the changes I had to make to those two .csv files were done correctly, and also a screenshot of my better performing algorithm. Thanks.

      • 4 years ago
    2. mysti9uemirage
      Contest Holder
      • 4 years ago

      Please use the data files as-is. Just use the Movement information as assigned in the parameter. I need this to compare with other submissions.

      • 4 years ago
  • subirbbiswas0
    subirbbiswas0
    • 4 years ago

    Hi, Could you please explain the logic for buy and sell in simple plain english. That might help further to understand the code. Further, is there any possibility to do it in some other language like Python?

    • 4 years ago
  • knales
    knales
    • 4 years ago

    Hello,

    I'm getting following error:

    Error while adding package 'NUnit' to project. The project does not support adding package references through the add package command.

    How am I supposed to do it?

    Bests,

    Luilver

    • 4 years ago
    1. mysti9uemirage
      Contest Holder
      • 4 years ago

      I've built the project in VS2015 and it built correctly. There should be no need to add NUnit since this will be a console project. I'm not sure why you're getting the error. Try cleaning and rebuilding, or if you can post the full error and step by step to get to that error, then I can help. You can see that there's a built exe at Console/bin/Debug/Console.exe

      • 4 years ago

Show more comments

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!