This is what I see at the moment. Is the issue still there for you?
Best regards,
Panagiotis
Hi Panagiotis,
Unfortunately, I still see the below on my end: (on Ctrader Web and via Desktop v. 4.8.30 as well)
That's weird. Could you please double check it why this discrepancy is happening?
Ty! Best!
Hi there, can you pelase advise the timezone your computer is using?
Hey,
UTC-3 (Brazil Time)
Hi Panagiotis,
Any updates here? I'm still seeing the discrepancy on my side.
Tks,
Hi there,
It seems like a glitch in the way we aggregate trades for each day, causing this discrepancy in the case GMT -x timezone is selected. The correct results should show with GMT 0 selected. We will reconsider this in a future update.
I've made the link to the video public, so anyone can see the issue for themselves. I know how to replicate the problem so I cannot be surprised by it like before, but the rest of your users are at risk.
If you need further assistance please send me an email to discuss my software consulting services. Thank you.
If you can share the cBot code, we can have a look. Also make sure you use tick data for your backtesting.
Best regards,
Panagiotis
Here is the Bot Code .
You can find the parameters I used in the pictures above.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using cAlgo.API; using cAlgo.API.Collections; using cAlgo.API.Indicators; using cAlgo.API.Internals;
namespace cAlgo.Robots {
[Robot(TimeZone = TimeZones.WEuropeStandardTime, AccessRights = AccessRights.None)] public class EBOTTRADEIRL: Robot {
[Parameter("Risk %", Group = "Risk",DefaultValue = 0.02)] public double RiskPCT { get; set; }
[Parameter("ATR MA Type",Group = "ATR")] public MovingAverageType ATRMAType { get; set; }
[Parameter("ATR Period", Group = "ATR", DefaultValue = 14)] public int ATRPeriod { get; set; }
[Parameter("RSI MA Period", Group = " RSI", DefaultValue = 8)] public int RSIPeriod { get; set; } [Parameter("RSI Type", Group = " RSI" , DefaultValue = MovingAverageType.Exponential)] public MovingAverageType RSIType { get; set; }
[Parameter("RSIMA MA Period", Group = " RSI", DefaultValue = 8)] public int RSIMAPeriod { get; set; }
[Parameter("RSIMA Type", Group = " RSI" , DefaultValue = MovingAverageType.Exponential)] public MovingAverageType RSIMAType { get; set; }
[Parameter("SSL Period", Group = " SSL ", DefaultValue = 8)] public int SSLPeriod{ get; set; }
[Parameter("SSL Type", Group = " SSL" , DefaultValue = MovingAverageType.Exponential)] public MovingAverageType SSLMAType { get; set; }
[Parameter("Baseline Period", Group = " Baseline ", DefaultValue = 8)] public int BLMAPeriod{ get; set; } [Parameter("Baseline MA", Group = " Baseline" , DefaultValue = MovingAverageType.Exponential)] public MovingAverageType BLMAType { get; set; }
[Parameter("MACD Long Cycle", Group = " MACD ", DefaultValue = 21)] public int MACDLong{ get; set; }
[Parameter("MACD Short Cycle", Group = " MACD ", DefaultValue = 8)] public int MACDShort{ get; set; } [Parameter("MACD Signal", Group = " MACD ", DefaultValue = 12)] public int MACDSignal{ get; set; }
[Parameter("StopLoss Factor", Group = "Risk", DefaultValue = 1)] public double SLM { get; set; } [Parameter("TakeProfit Factor", Group = "Risk", DefaultValue = 1)] public double TPM { get; set; }
var C2 = ssl._sslUp.Last(0) - ssl._sslDown.Last(0); var PrefC2 = ssl._sslUp.Last(1)-ssl._sslDown.Last(1); var C2U = ssl._sslUp.Last(0); var C2D = ssl._sslDown.Last(0);
var C6 = rsi.Result.Last(0); var PrefC6 = rsi.Result.Last(1);
var C7 = rsiMA.Result.Last(0); var C8 = rsiMA.Result.Last(1);
var BaseLine = bl.Result.Last(0);
var Macd = macd.MACD.Last(0); var MacdSig = macd.Signal.Last(0);
{ foreach (var position in Positions.FindAll(Label, SymbolName, tradeType))
ClosePosition(position); }
// Handle cBot stop here }
}
As per your suggestion , I ran the bot with Tick data and also found that there is no consistency in the Visual and non visual testing.
The bot now did not show a profit with the Tick data, but it made 2000 trades more with the non visual vs visual testing and it stopped 2 weeks later when the balance ran to zero.
This is a problem which CTrader must address because it leaves a situation where no algo supplier can be be trusted with their bots on any broker platform.
Hi there,
We are still missing the SSL Channel indicator you are using. Can you please share it with us?
The general answer to the general question is that you can achieve this by developing a custom indicator or a cBot. But I am sure this is not what you want to hear. Therefore can you make your question more specific? Did you try something and it did not work. What information are you missing so that we can provide it?
Best regards,
Panagiotis
Hi and thx for your reply.
I am a new user of Ctrader, because i am using Ninja since a very long time. But Ctrader looks good. For example in Ninja, you have an option to create alert. in tghis case, its ask you if you want alert for time, for a cross point β¦ So I just say when SMA cross price.
Is there any tool like this one, because I don't know how to develop.
Thx
Unfortunately there is no built in feature for this. You would need to develop your own indicator to achieve this.
As per the above conversation, we will need more information. Can you provide it to us? Is it possible to get the Journal so that we can see what actually happened?
The journal indicates that the SL is removed but it does not say what action caused this happen. It could be caused by an action you took. Can you record a video showing that the SL is changed without any user intervention?
This means that the price feed of your broker was available only until 4pm in the past. You should talk to your broker in case they can enhance their historical data.
The general answer to the general question is that you can achieve this by developing a custom indicator or a cBot. But I am sure this is not what you want to hear. Therefore can you make your question more specific? Did you try something and it did not work. What information are you missing so that we can provide it?
Thank you for your response. However, it did not address my specific query regarding the calculation of Stop Loss and Take Profit values in the input fields before opening a position. I am seeking clarification on how the Entry Price is determined.
In your previous response, you provided the formula for P&L calculation as: (ππππ’ππΓ(πΈππ‘ππ¦πππππβπ΅ππ/π΄π ππππππ))β(πΆπππππ π ππππ +ππ€πππ )(VolumeΓ(EntryPriceβBid/AskPrice))β(Commissions+Swaps)
If the Entry Price is the same as the Bid/Ask Price (for example, 3152), and considering a Volume of 1 with Commissions and Swaps as 0, the result would be: 1Γ3152β3152β(0+0)=00Γ3152β3152β(0+0)=0 This result appears to be incorrect.
I am specifically inquiring about the functionality within Spotware's cTrader, as shown in the attached screenshot. How are these calculations interconnected? For instance, if I enter 100 pips, how is the price formulated as 64517.05, when my current price is 64528.600? Additionally, could you provide detailed documentation on these calculations?
Your assistance in clarifying these points would be greatly appreciated. Thank you.
Hi there,
If the Entry Price is the same as the Bid/Ask Price (for example, 3152), and considering a Volume of 1 with Commissions and Swaps as 0, the result would be: 1Γ3152β3152β(0+0)=00Γ3152β3152β(0+0)=0 This result appears to be incorrect.
I do not understand what you are trying to highlight here. Obviously when the market price is at the same level as the position's entry price, then the P&L is 0. So the calculation is correct. If you replace the Bid/Ask price with the TP/SL price then you will find the P&L at the TP/SL level.
For instance, if I enter 100 pips, how is the price formulated as 64517.05, when my current price is 64528.600?
If you are asking how are SL/TP prices estimated, then it is just Entry Price +/- (SL/TP pips * Pip Size)
Additionally, could you provide detailed documentation on these calculations?
There is no documentation for this since this is not cTrader specific information. It is straightforward algebra and it works the same way no matter which platform you use.
Can you be more specific? Can you share some screenshots showing the respective issues?
Best regards,
Panagiotis
Thank you .
first off i cant work with menus in chrome , specificly (API and Algorithms ) drop down menu, it doesn't show in chrome
but in EDGE it work
Hi there,
I tried this on Google Chrome and it shows fine, so is probably not a general problem. Do you use the latest version of Chrome? What is your OS? Does it happen on other computers as well? Can you record a video capturing the entire UI and demonstrating that the menu does not show on click?
PanagiotisCharalampous
08 May 2024, 07:47
RE: RE: RE: RE: RE: My ROI (Monthly) View is Wrong
GMT.Invest said:
Hi there,
It seems like a glitch in the way we aggregate trades for each day, causing this discrepancy in the case GMT -x timezone is selected. The correct results should show with GMT 0 selected. We will reconsider this in a future update.
Best regards,
@PanagiotisCharalampous