mt4自帶交易系統(macd sample) - 財經

By William
at 2011-04-16T20:41
at 2011-04-16T20:41
Table of Contents
這兩天開始自學mql4自帶交易系統
看了mt4的自代交易系統 ====> macd sample <===這一個
其中的一段程式碼我有疑問
在最後平倉的那一段(87行)
// but it is more important to exit it correctly...
for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderType()<=OP_SELL&& // check for opened position
^^^^^^^^^^^^^^^^^^^^^
就是這個....
OrderSymbol()==Symbol()) // check for symbol
{
.
.
.
有高手可以幫忙解釋一下
為什麼 OrderType()<=OP_SELL 是確認有沒有開倉
為什麼不是 OrderType()<=OP_BUY 或其他的
想不通啊......OrZ
先謝謝高手了....
--
看了mt4的自代交易系統 ====> macd sample <===這一個
其中的一段程式碼我有疑問
在最後平倉的那一段(87行)
// but it is more important to exit it correctly...
for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderType()<=OP_SELL&& // check for opened position
^^^^^^^^^^^^^^^^^^^^^
就是這個....
OrderSymbol()==Symbol()) // check for symbol
{
.
.
.
有高手可以幫忙解釋一下
為什麼 OrderType()<=OP_SELL 是確認有沒有開倉
為什麼不是 OrderType()<=OP_BUY 或其他的
想不通啊......OrZ
先謝謝高手了....
--
Tags:
財經
All Comments

By Sarah
at 2011-04-19T03:29
at 2011-04-19T03:29

By Heather
at 2011-04-22T12:46
at 2011-04-22T12:46

By Jessica
at 2011-04-26T23:32
at 2011-04-26T23:32

By Kelly
at 2011-04-29T09:12
at 2011-04-29T09:12
Related Posts
圖形化分析

By Quintina
at 2011-04-16T10:40
at 2011-04-16T10:40
圖形化分析

By Jacky
at 2011-04-16T09:52
at 2011-04-16T09:52
圖形化分析

By Jacob
at 2011-04-16T02:51
at 2011-04-16T02:51
台指選交易記錄20110414

By Caroline
at 2011-04-14T13:48
at 2011-04-14T13:48
台指選交易記錄20110413

By Victoria
at 2011-04-13T13:55
at 2011-04-13T13:55