전에 인생에서 프로그래밍 한 적이 없다고하셨습니까? 클래스와 객체, 데이터 프레임, 메소드, 상속, 루프와 같은 단어를 들어 본 적이 없습니까? 프로그래밍을 두려워하나요?
두려워하지 마세요. 프로그래밍은 재미 있고 자극적 일 수 있으며 일단 프로그래밍을 시작하고 배우면 많은 전략을 프로그래밍하는 데 시간을 보내는 것을 좋아할 것입니다. 당신은 자신의 코드가 눈 깜짝 할 사이에 움직이는 것을보고 싶을 것입니다. 그리고이 코드가 얼마나 강력한지 보게 될 것입니다.
Executive Programme in Algorithmic Trading (EPAT™) 과정은 Python 및 R 프로그래밍 언어를 광범위하게 사용하여 전략, 백 테스팅 및 최적화를 가르칩니다. R의 도움을 받아 프로그래밍에 대한 두려움을 극복 할 수있는 방법을 보여줍니다. 다음은 초보자 프로그래머를위한 몇 가지 제안 사항입니다.
1) Think and let the questions pop in your mind
As a newbie programmer when you have a task to code, even before you start on it, spend some time ideating on how you would like to solve it step-by-step. Simply let questions pop up in your mind, as many questions as your mind may throw up.
Here are a few questions:
Is it possible to download stock price data in R from google finance?
How to delete a column in R? How to compute an exponential moving average (EMA)?
How do I draw a line chart in R? How to merge two data sets?
Is it possible to save the results in an excel workbook using R?
2) Google the questions for answers
Use google search to see whether solutions exist for the questions that you have raised. Let us take the second question, how to delete a column in R? We posted the question in the google search, and as we can see from the screenshot below we have the solution in the very first result shown by google.
R is an open-source project, and there are hundreds of articles, blogs, forums, tutorials, Youtube videos on the net and books which will help you overcome the fear of programming and transition you from a beginner to an intermediate level, and eventually to an expert if you aspire to.
The chart below shows the number of questions/threads posted by newbie and expert programmers on two popular websites. As you can see, R clearly tops the results with more than 10 thousand questions/threads.
(Source: www.r4stats.com )
Let us search in google whether QuantInsti™ has put up any programming material on R.
As you can see from the google results, QuantInsti™ has posted quality content on its website to help newbie programmers design and model quantitative trading strategies in R. You can read all the rich content posted regularly by QuantInsti™ here – https://www.quantinsti.com/blog
3) Use the print command in R
As a newbie programmer, don’t get intimidated when you come across complex looking codes on the internet. If you are unable to figure out what exactly the code does, just copy the code in R. You can use a simple “print” command to help understand the code’s working.
One can also use Ctrl+Enter to execute the code line-by-line and see the results in the console.
Let us take an example of an MACD trading strategy posted on QuantInsti’s blog.
I am unsure of the working of commands at line 9 and line 11. So I simply inserted a print(head(returns)) command at line 10 and one more at line 12. Thereafter I ran the code. Below is the result as shown in the console window of R.
The returns = returns[‘2008-06-02/2015-09-22’] command simply trims the original NSEI.Close price returns series. The series was earlier starting from 2007-09-17. The series now starts from 2008-06-02 and ends at 2015-09-22.
4) Use help() and example() functions in R
One can also make use of the help() and example() functions in R to understand a code, and also learn new ways of coding. Continuing with the code above, I am unsure what the ROC function does at line 9 in the code.
I used the help(“ROC”) command, and R displays all the relevant information regarding the usage, arguments of the ROC function.
There are hundreds of add-on packages in R which makes programming easy and yet powerful.
Below is the link to view all the available packages in R:
5) Give time to programming
Programming can be a very rewarding experience, and we expect that you devote some time towards learning and honing your programming skills. Below is a word cloud of some essential characteristics a good programmer should possess. The best suggestion would be to just start programming!!
If you want to learn various aspects of Algorithmic trading then check out the Executive Programme in Algorithmic Trading (EPAT™). The course covers training modules like Statistics & Econometrics, Financial Computing & Technology, and Algorithmic & Quantitative Trading. EPAT™ equips you with the required skill sets to be a successful trader. Enroll now!
As a newbie programmer, you have just made a start. The faculty at QuantInsti™ will teach and guide you through different aspects of programming in R and Python. Over the course of the program, you will learn different data structures, classes and objects, functions, and many other aspects which will enable you to program algorithmic trading strategies in the most efficient and powerful way.
The post Overcome the Fear of Programming appeared first on .