1. 首页
  2. 易语言 - EasyLanguage
  3. 根据交易所限定分析技术的运行 Restricting access to an exchange

根据交易所限定分析技术的运行 Restricting access to an exchange

本文描述如何实现让您的分析技术只针对某一交易所的股票运行。 This page describes how to restrict your studies so that they can only be run on symbols from a particular exchange. 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 exchange.

Vars:	ExchangeName("NASDAQ"); 
 
If GetExchangeName = ExchangeName then Begin 
           {all your code here} 
end;

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

更新于 2020年5月15日

这篇文章对您有帮助吗?

相关的话题

留言评论