2
Follow
3
Followers
O cálculo está correto na simulação js, mas errado no cálculo real
Created 2019-05-30 10:35:09
2
1692
Eu tenho um cálculo: data.lastprice é o preço de venda inicial, changeprice_sell é o valor de mudança, data.avgprice é o preço médio.
O objetivo desta operação é encontrar o valor máximo entre o preço de transação + o valor de mudança e o preço médio + o valor de mudança.
O código é o seguinte:
nextsell = _N(Math.max(data.lastprice + changeprice_sell, data.avgprice + changeprice_sell),2);
nextsell é uma variável local dentro da função, o objeto de dados e changeprice_sell são variáveis globais, onde changeprice_sell pode ser modificado em tempo real através do modelo interativo

Agora o problema é que a simulação funciona e que o NextSell calcula corretamente.

O disco rígido não tem registros corretos

Related Recommendations
Get Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?5.5 Trading strategy optimization5.4 Why do we need an off-sample test5.3 How to read the strategy backtest performance report

