Hello,
I'm new to programming.
I would like to write a program that gets crypto symbols, dates, hours, stop-loss values and take-profit values from a list. The program needs to fetch the data from a CSV file, and place trades at the specific hour (UTC time) with stop loss when exceeding the lower or higher values (from the csv file), and the same for taking-profit. The program also needs to buy the crypto if the data is "UP", to short sell if the data is "DOWN" and to not do anything if the data is "NON".
I will apprrciate any help with how to make the trades.
Rahul Chowdhury
Hey Tal,
You can download the data from your CSV file using Download. Download returns a string with the data on the CSV file. You can then parse it and use the information to place trades.
Keep in mind that if you download your data this way, you may subject your algorithm to a lookahead bias. Instead, the best practice is to add Custom Data imported from your CSV.
I also encourage you to complete the bootcamps. They are a great way of learning features on Lean. This bootcamp teaches you how to create a trailing stop loss.
Tal Shoham
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!