Thank you for reporting this issue. Unfortunately we were not able to reproduce this behavior. Could you please share a video demonstrating this behavior andsend us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.
I think there is also a huge issue on the lot calculation on the FOREX. I tried the function on GBPUSD
For an account of $1.000.000 and 10 pips Stop Loss, the function Symbol.VolumeForProportionalRisk proposed me to buy 2.500.00 lots which is by far too much…
But when I trued to reverse it with the function Symbol.AmountRisked, it says that I risk $2.500 which is the right number because my risk is 0.25% of the balance.
But obviously, it is not the risk that I have for 2.500.000 lots with a 10pips Stop Loss.
I can't even put a trade with that figures…
Is it also a but? When do you expect to fix it?
Thank you
protected override void OnStart()
{
Print("Symbol "+ Symbol.Name);
Print("Pip size "+Symbol.PipSize);
Print("Account Balance " + Account.Balance);
Print("Volume to risk for SL 10pips " + Symbol.VolumeForProportionalRisk( ProportionalAmountType.Balance, RiskPerTrade, 10));
Print("Amount risked for Volume 2 500 000 with SL 10pips " + Symbol.AmountRisked(Symbol.VolumeForProportionalRisk( ProportionalAmountType.Balance, RiskPerTrade, 10), 10));
I started my cBot as an external process and it works fine.
But when I copy the exact same command and try to invoke it from the command prompt by first going to the folder where we have the ctrader-cli.exe I get an error saying the password file needs to be specified.
When I specify the password file which is a text file with my password it continues to say password file could not be found. I tried all formats of specifying the path but no luck, I always sayd password file not found.
Can someone give me an example of a command with the password file specified that works.
As you might have noticed, the code sample provided above was only intended to report an issue.
My question was obviously generic.
Thanks for clarifying the community on this by providing an effective answer. It would be also of value to see documentation on this available.
Hello is there news on this ? I have the same issue.. When I backtest in Visual mode it is not the same results than in not visual..
Hi, any news? I have the same issue. I don't know how reliable my code is. The visual mode shows a fairly large negative value, while the silent mode shows positive value of the same magnitude.
PanagiotisCharalampous
01 May 2024, 05:43
Hi there,
Can you share a screenshot demonstrating what you are looking at?
Best regards,
Panagiotis
@PanagiotisCharalampous