'Trade.mqh' Trade.mqh 11'Object.mqh' Object.mqh 11'StdLibErr.mqh' StdLibErr.mqh 11'SymbolInfo.mqh' SymbolInfo.mqh 1'OrderInfo.mqh' OrderInfo.mqh 11'HistoryOrderInfo.mqh' HistoryOrderInfo.mqh 11'PositionInfo.mqh' PositionInfo.mqh 11'DealInfo.mqh' DealInfo.mqh 11'ENUM_ACCOUNT_MARGIN_MODE' - declaration without type Trade.mqh 364'POSITION_TICKET' - undeclared identifier PositionInfo.mqh 8437'PositionGetInteger' - no one of the overloads can be applied to the function call PositionInfo.mqh 8418'ENUM_ACCOUNT_MARGIN_MODE' - undeclared identifier PositionInfo.mqh 2594'margin_mode' - undeclared identifier PositionInfo.mqh 25929'margin_mode' - some operator expected PositionInfo.mqh 25929'ACCOUNT_MARGIN_MODE' - undeclared identifier PositionInfo.mqh 25986'ACCOUNT_MARGIN_MODE' - cannot convert enum PositionInfo.mqh 25986'AccountInfoInteger' - some operator expected PositionInfo.mqh 25967Account_margin_mode_retail_hedg...'. - undeclared identifier PositionInfo.mqh 26420'PositionSelectByTicket' - function not defined PositionInfo.mqh 32511'ENUM_ACCOUNT_MARGIN_MODE' - undeclared identifier PositionInfo.mqh 3324'margin_mode' - undeclared identifier PositionInfo.mqh 33229'margin_mode' - some operator expected PositionInfo.mqh 33229'ACCOUNT_MARGIN_MODE' - undeclared identifier PositionInfo.mqh 33286'ACCOUNT_MARGIN_MODE' - cannot convert enum PositionInfo.mqh 33286'AccountInfoInteger' - some operator expected PositionInfo.mqh 33267Account_margin_mode_retail_hedg...'. - undeclared identifier PositionInfo.mqh 33420'PositionGetTicket' - function not defined PositionInfo.mqh 33620'position' - struct member undefined Trade.mqh 19612'position' - struct member undefined Trade.mqh 19635'position_by' - struct member undefined Trade.mqh 19712'position_by' - struct member undefined Trade.mqh 19735'position' - struct member undefined Trade.mqh 5085'position_by' - struct member undefined Trade.mqh 5185'm_margin_mode' - undeclared identifier Trade.mqh 9444'ENUM_ACCOUNT_MARGIN_MODE' - undeclared identifier Trade.mqh 9459'ACCOUNT_MARGIN_MODE' - undeclared identifier Trade.mqh 94103'ACCOUNT_MARGIN_MODE' - cannot convert enum Trade.mqh 94103'AccountInfoInteger' - some operator expected Trade.mqh 9484'position' - struct member undefined Trade.mqh 35414'POSITION_TICKET' - undeclared identifier Trade.mqh 35442'PositionGetInteger' - no one of the overloads can be applied to the function call Trade.mqh 35423'PositionSelectByTicket' - function not defined Trade.mqh 3678'position' - struct member undefined Trade.mqh 37314
possible loss of data due to type conversion Trade.mqh 37322'position' - struct member undefined Trade.mqh 42720'POSITION_TICKET' - undeclared identifier Trade.mqh 42748'PositionGetInteger' - no one of the overloads can be applied to the function call Trade.mqh 42729'PositionSelectByTicket' - function not defined Trade.mqh 4728'position' - struct member undefined Trade.mqh 49214
possible loss of data due to type conversion Trade.mqh 49223'PositionSelectByTicket' - function not defined Trade.mqh 5138'PositionSelectByTicket' - function not defined Trade.mqh 5178'TRADE_ACTION_CLOSE_BY' - undeclared identifier Trade.mqh 52926
不起作用 - 这些行本身不在 Impulse 中....
根据编译器信息,它们在 Impulse 中,但它们的调用不可用,因为在您的 CStrategy 版本中没有定义 Ask、Bid 等函数。
您如何定义它们...版本必须是我的...从我的交易策略中插入...它们是 Ask 和 Bid,似乎对所有常见的都一样...
有 CStrategyList 管理器;但没有 Impuls 类...也许这就是原因。
如何不能?MQL5/Include/Strategy/Samples/Impulse.mqh。
如何将止损单变成限价单,因为似乎更多的人要求限价单......并改变距离.....如何将批量减少到 0.01....太多了,不可能找到任何东西......))))
如您所见,这并不复杂。您必须自己计算目标值。
我从头开始试过这样做,但行不通,止损一直是这样的....。
我这样试了一下 - 没用 - 止动器还是这样.....。
我现在就检查...
我在猫头鹰中添加了 SL 和 TP 水平以及拖网 - 它在 Metaquotes 演示版上显示完美......当再次切换到真实版时,有些东西看不到 - 它出错了 - 最主要的是,我干净利落地复制了所有东西,整个库 - 但仍然出错......又出什么问题了....。一个很大的请求 - 是否有可能以某种方式将注释合并到一个 EA 中......可以说,为了清楚地理解所有描述的本质......对您所做的伟大工作深表敬意......非常感谢......我还想知道 - 是只有我有这样的不理解,还是其他人在测试....。而且没有出错...