资源加载中... loading...

Introduction to Pine language quantitative trading

No knowledge of Python? No knowledge of JavaScript? No knowledge of C++? No problem! Get started with quantitative trading effortlessly using Pine language.

  • A Preliminary Study of Pine Language
    Quantitative trading and programmatic trading have only become increasingly visible in the last few years, but these techniques have appeared for a long time and have only been difficult to popularize because there is a certain learning threshold for most traders. Because of work, I communicate with traders who are fighting in various markets more, most traders are interested in quantitative trading and program trading, however, it is easy to be discouraged by various programming languages and computer technologies. Based on the Pine language script of Trading View, which is popular all over the world, let us know and use the Pine language of Trading View through the FMZ Quant Trading platform, so as to get started and master quantitative trading technology easily.
  • Model Execution(1)
    There are several very important concepts in the Pine language that need to be understood when getting started. We will learn one of them in this video - "Model Execution". The content of this chapter is long. In order to understand them step-by-step, we will teach in three parts. The content related to "model execution" in the Pine language mainly describes the specifications and rules of the Pine language script code in the execution process. Some who have used Trading View know that the Pine language script code is running based on the chart, which is the K-line chart we often see. The Pine language strategy is a program that performs a series of calculations and operations on the chart based on the chart market data.
  • Model Execution(2)
    We continue to explain the second important concept in "Model Execution" in the Pine language, the rollback mechanism (Bar model) when executing the strategy on the real-time Bar.
  • Model Execution(3)
    The history of the series variables used in the Pine language function is created with each successive call to the function. If the function is not called on every bar on which the script runs, this will result in the difference between the historical values ​​of the series inside and outside the function's local block. Therefore, if the function is not called on each bar, the series referenced inside and outside the function with the same index value will not refer to the same historical point.Is that a little hard to understand? Nevermind, we will figure it out with a test code on FMZ.
  • Time Series
    Hello everyone, welcome to the class of Pine Language quantitative trading practice series of tutorials. Time series in Pine language is a very important concept. In this course, we will explore the concepts and knowledge of time series in the Pine language.
  • Script Structure
    Hello everyone, welcome to the tutorial series of Pine Language Quantitative Trading Practice. We have learned about the concepts of "model execution" and "time series" in Pine language. Next, we will move to the "script structure" in Pine language.
  • Markers and Operators(1)
    Hello everyone, welcome to the tutorial series of Pine Language Quantitative Trading Practice. We have used many variables and functions in writing strategy examples before, so what are the specific rules for naming these variables and functions? We will learn the naming of identifiers and the use of various operators in the Pine language through the tutorial video today.
  • Markers and Operators(2)
    When it comes to these assignment operators, we must expand on two keywords here: var and varip; 1. var is a keyword used for assigning and one-time initialization of variables, and the var variable assignment grammar, which usually does not include the keyword, would cause the value of the variable to be overwritten every time the data is updated. In contrast, when variables are assigned using the keyword var, they can "keep state" despite data updates; 2. varip (var intrabar persist) is a keyword for assigning and one-time initialization of variables. It is similar to the var keyword, but variables declared with varip retain their values when real-time K-line updates.
  • Markers and Operators(3)
    In this tutorial video, we will explain arithmetic operators, comparison operators, and logical operators in the Pine language. The video needs more time to learn than before, it's a bit long-winded, and if there is anything wrong or not complete in the vedio, please put forward improvement suggestions!
  • Markers and Operators(4)
    In this tutorial video, we mainly explains the details of the use of ternary operators and historical operators and the precedence of all operators in the Pine language.
  • Variable Declaration
    We have already studied the concept of "marker", which is used as the name of a variable, that is, a variable is a marker that holds a value. So how do we declare a variable? What are the rules for declaring variables? This lesson focuses on the use of the input function, which is an important function to build the parameters of the strategy interface, and it has a similar use in the Trading View. We can easily design controls, hints, default values, and grouping information for quantitative trading strategy parameters if we master the input function in this lesson.
  • Condition Structure
    In this lesson, we will study conditional structures in the Pine language and learn the specific use of the if and switch keywords. We will understand the design details of conditional structures in the Pine language.
  • Loop Structure
    The loop structure is a design often used in the Pine language. This video focuses on the use of for loops, for in loops, and while loops.
  • Arrays(1)
    In this video, we will explain some concepts and usage examples of array types in the Pine language.
  • Arrays(2)
    In this section of the Pine language tutorial, let's take a look at some operation functions and related calculation functions of arrays. Construct a queue mechanism by using an array structure to calculate the tick-level moving average.
  • Functions(1)
    Functions in the Pine language are divided into custom functions and built-in functions: Custom functions we have used many times in previous courses, here is a summary of some rules of custom functions.This section of the video tutorial focuses on strategy. series of built-in functions, strategy. series of functions are functions that we often use in the design of strategies, these functions are closely related to the execution of trading operations when the strategy is running.
  • Functions(2)
    In this video course, we will continue the learning of functions chapter in the Pine language, this video focuses on the usage of the strategy.exit function, which is a very powerful position exit function.
  • Functions(3)
    In this video course, we will mainly focuses on learning another order-placing function--strategy.order, and we will design a simple grid trading logic by using it and function strategy.exit as the core.
  • Super Trend Indicator Strategy
    In this video course, we will explains a trend tracking strategy by using the super trend indicators, and demonstrate how to run a trading strategy on the FMZ Quant Trading Platform.
  • Dynamic Balance Strategy
    In this video course, we will design and write a simple dynamic balance strategy by using the Pine language. The strategy code is very short, which is suitable for beginners to learn how to write Pine script strategies.
  • Design a Trailing Stop-profit and Stop-loss Mechanism for the Strategy
    In the previous course, we have learned the strategy.exit position exit function, in which the trailing stop-profit and stop-loss function is not explained by examples. In the strategy design example in this course, we use the stop-profit and stop-loss trailing function of the strategy.exit function to optimize a super trend strategy.