2
Follow
3
Followers
Le calcul est correct dans la simulation js, mais erroné dans le calcul réel
Created 2019-05-30 10:35:09
2
1692
J'ai fait un calcul: data.lastprice est le prix de vente, changeprice_sell est la valeur de la variation, data.avgprice est le prix moyen.
Le but de cette opération est de trouver la valeur maximale du prix de transaction plus la variation par rapport au prix moyen plus la variation.
Voici le code:
nextsell = _N(Math.max(data.lastprice + changeprice_sell, data.avgprice + changeprice_sell),2);
nextsell est une variable locale au sein d'une fonction, l'objet de données et changeprice_sell sont des variables globales, où changeprice_sell peut être modifié en temps réel via un modèle interactif

Le problème, c'est que la simulation fonctionne et que le calcul de NextSell est correct.

Le disque dur ne fonctionne pas correctement

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

