怎么样根据历史交易记录划线?在图表上划出入场离场的点位
1. 画趋势线,用ObjectCreate
bool ObjectCreate( string object_name, // object name ENUM_OBJECT object_type, // object type int sub_window, // window index datetime time1, // time of the first anchor point double price1, // price of the first anchor point datetime time2=0, // time of the second anchor point double price2=0, // price of the second anchor point datetime time3=0, // time of the third anchor point double price3=0 // price of the third anchor point );
2. 趋势线的2个点,分别是 P1(开仓时间,开仓价格), P2(平仓时间,平仓价格)
Ziheng Zhuang:
1. 画趋势线,用ObjectCreate
2. 趋势线的2个点,分别是 P1(开仓时间,开仓价格), P2(平仓时间,平仓价格)
版主問的應該是要該如何正確的找到P1跟P2座標位置
其實我也很想知道的 哈哈哈
Hung Wen Lin:
版主問的應該是要該如何正確的找到P1跟P2座標位置
其實我也很想知道的 哈哈哈
遍历历史单就有了。
MT4很简单,查看文档 OrdersHistoryTotal()