
Topics
Replies
PanagiotisChar
08 Aug 2023, 05:32
RE: RE: cTrader calculate wrong Max equity drawdown
chatcpe said:
PanagiotisChar said:
Hi there,
Your drawdown calculation is wrong. The drawdown is calculated from the peak equity to the lowest equity after that.
Need help? Join us on Telegram
Where? THis is my code
private void CalculateDDForAccount()
{
try
{
var newDDdol = Account.Balance - Account.Equity;
if (newDDdol > MaxEquityDDInDol)
{
MaxEquityDDInDol = newDDdol;
}var newDDPercent = newDDdol / Account.Balance * 100;
if (newDDPercent > MaxEquityDDPercent)
{
MaxEquityDDPercent = newDDPercent;
}}
catch (Exception ex)
{
Print($"Error in CalculateDDForAccount : {ex.Message}");
}
}
Everywhere :) The whole code is wrong
@PanagiotisChar
PanagiotisChar
07 Aug 2023, 12:16
RE: RE: RE: backtest data problems
majidmesbah123456 said:
majidmesbah123456 said:
yes thank you
I did this, but unfortunately I did not get any results
I must emphasize that this problem does not exist in other time frames and only in Renko
I remind you again that I have been working for maybe a year and I did not have this problem
Spotware said:
Dear Trader,
Could you please remove your backtesting cache which is located in the following path:
C:\Users\%UserName%\AppData\Roaming\%Broker Name% cAlgo\BacktestingCache
Hi there,
This is an eight years old thread. Maybe creating a new one and providing some more information on how can somebody reproduce your problem?
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
07 Aug 2023, 12:14
Hi there,
Your drawdown calculation is wrong. The drawdown is calculated from the peak equity to the lowest equity after that.
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
07 Aug 2023, 11:53
Hi there,
You will not receive something on your screen. You will receive a code in your URL which can be used to retrieve the token. Check the web example on GitHub, it might be helpful
https://github.com/spotware/OpenAPI.Net/tree/master/samples/ASP.NET.Sample
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
07 Aug 2023, 11:40
( Updated at: 21 Dec 2023, 09:23 )
RE: How it is possible
birlatrimayacontact said:
how can we do that exactly , can you please ellaborate it
You can choose where the indicator will be displayed here
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
07 Aug 2023, 11:37
Hi there,
If you want to propose a feature, you can do it here
https://ctrader.com/forum/suggestions
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
07 Aug 2023, 11:34
Hi there,
These values are calculated on the client side. You need to calculate them yourself. FIX provides you with the entry price and the current Bid/Ask prices to calculate this.
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
07 Aug 2023, 11:17
Hi there,
You should talk to IC Markets about this.
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
03 Aug 2023, 05:44
Hi there,
It is hard for somebody to understand your problem with this kind of information. Maybe share something more, like screenshots, a video etc?
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
03 Aug 2023, 05:43
Hi there,
You can't. There is no such feature in cTrader Desktop. Trailing stop loss is triggered immediately.
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
03 Aug 2023, 05:41
Hi there,
There are several reasons this can happen. Have a look at the link below
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
03 Aug 2023, 05:37
Hi there,
Not sure what problem you are referring to but your stop loss and take profit are wrong. You need to pass stop loss and take profit in pips, not in actual price.
Aieden Technologies
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
02 Aug 2023, 05:34
Hi there,
Where did you get this code?
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
02 Aug 2023, 05:33
Hi there,
Better talk to Pepperstone about this.
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
01 Aug 2023, 07:32
Hi,
I would like to only receive one email at the close of the bar if the condition is met at the close of that bar. Do you have any suggestion how to proceed based on this information?
You need to have a flag that would check if an alert was triggered within that bar and send the alert only when it hasn't. Reset this flag on each bar change.
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
01 Aug 2023, 06:56
Hi there,
It is not possible to install algos and indicators on the mobile apps.
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
01 Aug 2023, 06:54
Hi there,
I don't think so :)
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
31 Jul 2023, 06:41
Hi there,
You can only do this in the Automate tab.
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
31 Jul 2023, 06:39
Hi there,
You can hide/unhide this panel by pressing Ctrl+E
Need help? Join us on Telegram
@PanagiotisChar
PanagiotisChar
08 Aug 2023, 05:35
Hi there,
Instead of stopping it, you should use a flag and set it to false. When the flag is set to false, don't trade. On the change of each day, set the flag back to true.
Aieden Technologies
Need help? Join us on Telegram
@PanagiotisChar