mql4 - 如何清除Error138代码?我想使用前一根蜡烛的收盘价开单
问题描述
if(OrdersTotal() < 1)
{
if (Close[1] < MA && signal == 1)
{
int OrderID_Buy = OrderSend(_Symbol, OP_BUY, Lot_Size, Close[1], Slipage, (Ask-Stop_Loss*Point),
(Ask+Take_Profit*Point), Magic_Number);
}
else if (Close[1] > MA && signal == 1)
{
int OrderID_Sell = OrderSend(_Symbol, OP_SELL, Lot_Size, Close[1], Slipage, (Bid+Take_Profit*Point),
(Bid-Take_Profit*Point), Magic_Number);
}
}
/ OrderSend 函数上使用的 Close[1] 是否有替代方法?/
解决方案
推荐阅读
- symfony - 组合 ManyToOne 和 OneToOne 时的 Doctrine Bug:删除时的 ForeignKeyConstraintViolationException
- amazon-web-services - AWS ECS 容器环境变量 terraform
- python - 熊猫如何通过运行范围添加组列
- code-coverage - 如何在 xml 文件中收集 Jacoco 覆盖信息?
- outlook - Outlook for Windows 2019 - 如何手动删除加载项 cookie?
- html - 当背景颜色已经在使用时,如何为 topnav 着色?
- arrays - 获取具有值的对象数组,但在尝试使用它们时 - 它们是未定义的
- python - unreal.EditorStaticMeshLibrary 中没有 get_lod_build_settings()。(UE4 Python)
- qt - Qt 样式表不适用于树莓派中的第一个选项卡 QTabBar
- android - 无法使用 Fragment 启动活动 compenetInfo