Buy and Hold / Forex

Keep Learning With Boot Camp

Complete Boot Camp and Boost your Skills

Overall Progress: Completed


Upcoming Boot Camp:

participants | Video tutorial

Boot Camp Lessons

Lesson Overview


In this lesson we will implement a buy and hold strategy on FOREX assets - exploring how to request FOREX data; set your brokerage models, leverage and placing your first FOREX trades.

What You'll Learn

  • Requesting forex data, specifying your data resolution, and asset market.
  • Setting a brokerage model to mimic real life trading constraints.
  • Accessing bid and ask quote information from data.
  • Rounding orders to the nearest lot size required by the brokerage.
  • Submitting a limit order and calculating position size.

Lesson Requirements

We recommend a working understanding of C# or Python, and to have completed the Lesson: Buy and Hold with Equities.

Lesson Content

Status
Initializing the AlgorithmStatus
Request Forex Data
Set Brokerage Model
Accessing the DataStatus
Accessing Quote Prices
Placing the OrderStatus
Applying Lot Size Rounding
Placing Forex Orders

About the Author

QuantConnect Team

Selected group of pseudo-humans that can type without looking at the keyboard and use a super advanced neural network to transform coffee and orange juice into code.