This chapter equips you with basic programming skills in R before proceeding to strategy writing. This chapter covers reading a data.table, creating new columns in the table, calculating returns by different methods, loop functions, conditional functions, and plotting of datasets.