你用 OrderSend() 的时候做 take profit price 吗?
int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)
OrderProfit 是那个order睁多少钱的意思
OrderTakeProfit是一个价格,你的order要关闭
OrderTakeProfit() 是获取止赢值的函数。
如果你没有设置止赢,当然获取不到了
Print("定单 #",OrderTicket()," 盈利: ", OrderTakeProfit()," 盈利: ",OrderProfit());
OrderTakeProfit()取不到盈利值,求指教