> For the complete documentation index, see [llms.txt](https://hdsd.dnse.com.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hdsd.dnse.com.vn/san-pham-dich-vu/ami-x/iii.-giao-dich-tu-dong-api/2.-cai-dat-quan-ly-lenh.md).

# 2. Cài đặt quản lý lệnh

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXebwnRySO4u8Err3Pynu6HseYI9oZ2jiyp6F3XtDl18q5SQRKv8amkBQOcMF9Oze8z_mlERKUhj7TJJihb0p0bm0LAxxM0Jidp6hYKQE6O2EKningbKc_Kg7hp2MemObmoo7NbCqODjh4A4BtBqa03ULIlY?key=cPUVtDEL9UPu0gPsYuXEhw" alt=""><figcaption></figcaption></figure>

* Vào tab Cài đặt giao dịch, xem mục Cài đặt quản lý lệnh:

&#x20;      \- Chọn Mở vị thế mua nếu bạn chỉ muốn giao dịch theo chiều Mua (giao dịch cơ sở). Chọn cả Mở vị thế mua và Mở vị thế bán nếu bạn muốn giao dịch theo cả 2 chiều (giao dịch phái sinh).

&#x20;      \- Chọn đóng vị thế ngược chiều (dành cho phái sinh) nếu bạn muốn hệ thống tự động đóng hết vị thế phái sinh ngược chiều trước khi vào lệnh mới.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeWLu8zJ11G2Q650KvCgRoLo-uqK9sQzy3zPrgs2BMRBm0hkuVa2PkjhQc6lak0Qv2oGxIu16C92LKvLo4ZwZ_csPSqBfDrhEJEZSy8SHrShpAMXSCE4EJdvmGyolkck_pxh2VNyvBPrjSRIG0_wA3RQVM?key=cPUVtDEL9UPu0gPsYuXEhw" alt=""><figcaption></figcaption></figure>

* Xem mục Cài đặt khác:

&#x20;     \- Chọn Chống lặp tín hiệu khi có vị thế cùng chiều để tránh lỗi đẩy lặp lệnh của Amibroker, phần mềm sẽ không nhận lệnh giống hệt lệnh cuối cùng trong vòng 1 phút kể từ lệnh cuối cùng.

&#x20;     \- Chọn Đóng vị thế lúc 14:00 nếu không muốn giữ lệnh qua ngày. Phần mềm sẽ tự động đóng hết các vị thế (cả cơ sở và phái sinh) vào đúng thời gian được cài đặt.

&#x20;     \- Chọn Chỉ mở vị thế trong khoảng thời gian nhất định nếu muốn tránh giao dịch vào những lúc thị trường biến động như sau 14:00.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hdsd.dnse.com.vn/san-pham-dich-vu/ami-x/iii.-giao-dich-tu-dong-api/2.-cai-dat-quan-ly-lenh.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
