1. 首页
  2. 易语言 - EasyLanguage
  3. 根据股票代码限定分析技术的运行 Restricting access to a symbol

根据股票代码限定分析技术的运行 Restricting access to a symbol

本文描述如何实现让您的分析技术只针对某一股票代码运行。This page describes how to restrict your studies so that they can only be run on a particular symbol. To restrict your code fully you need to add this functionality and then see the Protecting EasyLanguage Code page.

The following code restrict the strategy or indicator to a particular symbol.

Vars:	Sym("ES"); 
 
If SymbolRoot = Sym then Begin 
           {all your code here} 
end;

Note that the ‘Sym’ variable must be in CAPITALS. Place the above code around your entire study code (except the Inputs: and Variables: declarations).

更新于 2020年5月15日

这篇文章对您有帮助吗?

相关的话题

留言评论