MT4转Powerlanguase
请问,我有MT5的程序,主要策略是马丁。能转成powerlanguage 吗? powerlanguage如何获取持仓单和计算每个单子的盈亏一直没搞清楚。例如下面这段代码:
for (int i = 0; i < PositionsTotal(); i++)
{
ulong position_ticket=PositionGetTicket(i);
PositionSelectByTicket(position_ticket);
{
if(PositionMagicNumber() != MAGIC) continue;
op=NormalizeDouble(PositionOpenPrice(),digits);
lt=NormalizeDouble(PositionLots(),2);
}
}
页:
[1]