I have excellent debugging AOS, but I have several questions related to position sizing and their application in Script. I would appreciate if someone helps me.
Q1. Calculation of Kelly and Lead Risk is realized through a double variable.
The result is the size of the position of "double", and is rounded to an integer. Open position requires variable "int".
EnterLong (int, "BuyLong1");
And here is precisely the problem as I add value to double = int because EnterLong function does not work with double variable?
Q2. For my calculations, position sizing using the function
"Performance.AllTrades .....", for back-testing.
I think the real trading will be used function Performance.RealtimeTrades. Is this correct?
Q3. Is it possible to change the quantity of contracts, or some setting strategy when this strategy is running? I am asking is because the demo does not allow me to change settings.
and finally
Q4. If the strategy is running, and I have to restart your computer or platform, I re-start the strategy. Will my business strategy to know what was taken? "Performance.RealtimeTrades"
Apologies for my English.
Thank you for your reply Rasto
Comment