在EA上,怎么在图表上画趋势线
时间: 2024-05-24 15:12:27 浏览: 12
在EA上画趋势线的步骤如下:
1. 打开想要画趋势线的图表。
2. 点击“插入”菜单中的“趋势线”选项。
3. 在弹出的“趋势线”对话框中,选择合适的趋势线类型,如直线、斐波那契等。
4. 根据需要设置趋势线的属性,如颜色、线型、标签等。
5. 点击“确定”按钮,趋势线将被画在图表上。
6. 可以通过拖动趋势线的端点来调整趋势线的位置和角度。
注意:EA上画趋势线时,需要根据具体的操作系统版本和软件版本来进行设置,具体步骤可能会略有不同。
相关问题
在EA上,怎么在图表上画趋势线,用代码表示
要在EA上画趋势线,可以使用以下代码:
```
ObjectCreate("Trendline", OBJ_TREND, 0, Time[0], Low[0], Time[10], High[10]);
```
这个代码会在当前时间和10个bars前之间画一条趋势线,连接最低点和最高点。可以根据需要修改时间和价格坐标,以适应不同的趋势线。
如果要在代码中使用已有的对象来画趋势线,可以使用以下代码:
```
ObjectSet("Trendline", OBJPROP_TIME1, Time[0]);
ObjectSet("Trendline", OBJPROP_PRICE1, Low[0]);
ObjectSet("Trendline", OBJPROP_TIME2, Time[10]);
ObjectSet("Trendline", OBJPROP_PRICE2, High[10]);
```
这个代码会在已有的"Trendline"对象上重新设置起点和终点,以画出新的趋势线。可以根据需要修改时间和价格坐标,以适应不同的趋势线。
如何在Windows上启动Elasticsearch?
你可以按照以下步骤在Windows上启动Elasticsearch:
1. 下载Elasticsearch: 从Elasticsearch官网 https://www.elastic.co/downloads/elasticsearch 下载最新版本的Elasticsearch。
2. 解压Elasticsearch: 解压下载的文件到你想要安装的目录。
3. 启动Elasticsearch: 打开命令提示符,切换到Elasticsearch的bin目录,执行以下命令启动Elasticsearch:
```
cd <path_to_elasticsearch>/bin
elasticsearch.bat
```
4. 测试Elasticsearch: 打开浏览器,输入http://localhost:9200/,如果Elasticsearch已经启动,将会看到如下输出:
```
{
"name" : "my-node",
"cluster_name" : "my-cluster",
"cluster_uuid" : "p6YX6VXJQ4mZfJv6V6jLxw",
"version" : {
"number" : "7.9.2",
"build_flavor" : "default",
"build_type" : "zip",
"build_hash" : "d34da0ea4a966c4e49417f2da2f244e3e97b4e6e",
"build_date" : "2020-09-23T00:45:33.626720Z",
"build_snapshot" : false,
"lucene_version" : "8.6.2",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
```
如果看到这个输出,说明Elasticsearch已经成功启动了。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)