Modify method so that it can return the highest running profit

  • Κατάσταση: Closed
  • Βραβείο: $10
  • Ληφθείσες Συμμετοχές: 1
  • Νικητής: Buckner

Σύνοψη Διαγωνισμού

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

Προτεινόμενες Δεξιότητες

Σχόλια Εργοδότη

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

Εικόνα προφίλ mysti9uemirage, United States.

Δημόσιος Πίνακας Διευκρινίσεων

  • mysti9uemirage
    Κάτοχος Διαγωνισμού
    • Πριν από 4 χρόνια

    Please DO NOT blindly submit buy/sell signals!

    • Πριν από 4 χρόνια
  • Buckner
    Buckner
    • Πριν από 4 χρόνια

    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 χρόνια
    1. Buckner
      Buckner
      • Πριν από 4 χρόνια

      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 χρόνια
    2. mysti9uemirage
      Κάτοχος Διαγωνισμού
      • Πριν από 4 χρόνια

      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 χρόνια
  • subirbbiswas0
    subirbbiswas0
    • Πριν από 4 χρόνια

    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 χρόνια
  • knales
    knales
    • Πριν από 4 χρόνια

    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 χρόνια
    1. mysti9uemirage
      Κάτοχος Διαγωνισμού
      • Πριν από 4 χρόνια

      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 χρόνια

Προβολή περισσότερων σχολίων

Πώς να ξεκινήσετε με τους διαγωνισμούς

  • Δημοσιεύστε τον διαγωνισμό σας

    Αναρτήστε τον διαγωνισμό σας Γρήγορα και εύκολα

  • Λάβε ένα σωρό συμμετοχές

    Λάβετε Πολλές Συμμετοχές Από όλο τον κόσμο

  • Βραβεύστε την καλύτερη καταχώρηση

    Βραβεύστε την καλύτερη καταχώρηση Κατεβάστε τα αρχεία - Εύκολα!

Αναρτήστε ένα Διαγωνισμό Τώρα ή Ελάτε Μαζί Μας Σήμερα!