-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LotAmount/PIPCost issues #1
Comments
Seems that playing with the PIP together with the LotAmount variable in the assets list changes the behaviour. However I think the default PIP value (0.01) is correct and shouldn't be changed. |
I think the culprit is Zorro docs say this:
With Plugging that in the script with function run()
{
asset("BTC/USD");
Lots = 100000000;
MaxLong = 1;
enterLong();
PlotBorder = 100;
set(PLOTNOW,LOGFILE);
} purchases 1 BTC |
I think this would be fixed by modifying the logic here:
fprintf(f, "%s,%.8f,%.8f,0.0,0.0,%.8f,%.8f,0.0,1,%.8f,0.000,%s\n",
prod.display_name.c_str(), ticker.ask, (ticker.ask - ticker.bid), prod.quote_increment,
prod.quote_increment, prod.base_increment, prod.id.c_str()); becoming fprintf(f, "%s,%.8f,%.8f,0.0,0.0,%.8f,%.8f,0.0,1,%.8f,0.000,%s\n",
prod.display_name.c_str(), ticker.ask, (ticker.ask - ticker.bid), prod.quote_increment,
prod.quote_increment * prod.base_increment, prod.base_increment, prod.id.c_str()); but this may be wrong when using non-USD symbols ?
|
I was trying to follow the snippet in the README:
With the mention that by Accounts entry was generated by the plugin:
However, in the simulations I'm getting values that make me think it actually purchases 10k full BTC at once:
This is also reflected in the strategy result too:
Any thoughts how to work with fractional amounts of BTC or other crypto?
The text was updated successfully, but these errors were encountered: