PanagiotisCharalampous's avatar
PanagiotisCharalampous
26 follower(s) 0 following 1006 subscription(s)
Replies

PanagiotisCharalampous
08 May 2024, 07:47

RE: RE: RE: RE: RE: My ROI (Monthly) View is Wrong

GMT.Invest said: 

GMT.Invest said: 

PanagiotisCharalampous said: 

GMT.Invest said: 

PanagiotisCharalampous said: 

Hi there,

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.

Best regards,


@PanagiotisCharalampous

PanagiotisCharalampous
08 May 2024, 06:58

RE: RE: ghost bracket orders

atrrwilder said: 

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.

atrrwilder@gmail.com

Hi there,

We finally managed to reproduce this problem and we will be fixing it in the next update of cTrader Desktop. 

Thank you for your assistance.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 May 2024, 06:04

Hi there, 

Can you please explain what do you mean when you say it is not working?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 May 2024, 05:55

RE: RE: RE: Problesm with Visual vs non Visual Backtesting

trading1 said: 

trading1 said: 

PanagiotisCharalampous said: 

Hi there,

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; }
        
      
      //Declare Indicators and name them
       
         private AverageTrueRange atr;
         
         private SSLChannel ssl;
         private MovingAverage rsiMA, bl; 
         private RelativeStrengthIndex rsi;
         private MacdCrossOver macd;
         
         public string botName;
         
       
                      

        protected override void OnStart()
        
        
        
       
        
            {  atr = Indicators.AverageTrueRange(ATRPeriod, MovingAverageType.Exponential);
               ssl = Indicators.GetIndicator<SSLChannel>(SSLPeriod,SSLMAType);
               rsi = Indicators.RelativeStrengthIndex(Bars.ClosePrices, RSIPeriod);
               rsiMA = Indicators.MovingAverage(rsi.Result, RSIMAPeriod, RSIMAType);
               macd = Indicators.MacdCrossOver(MACDLong, MACDShort, MACDSignal);
               bl = Indicators.MovingAverage(Bars.MedianPrices, BLMAPeriod, BLMAType);
            
            }

        protected override void OnBarClosed()
        {
            
            
                       
            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);
               
                 
            
            if (C2 > 0  & Symbol.Bid > BaseLine &  C7 > 50  & Macd > MacdSig & Macd > 0 ) 
                  {  Open ( TradeType.Buy, "SSL Buy");        
                      
                   } 
                 
             else if(C2 < 0  & Symbol.Ask < BaseLine & C7 < 50  & Macd < MacdSig & Macd < 0)  
                  {      Open(TradeType.Sell, "SSL Sell");
             
                  
                       
                   }                     
                       
              if (C2 < 0) // & C6 < C7) 
                   {    
                        Close (TradeType.Buy, "SSL Buy");
                   }
                       
               else if (C2 > 0) // & C6 > C7)  
                     {    
                         Close (TradeType.Sell, "SSL Sell");
                         
                     }
    }
           
            // New Function for Opening  trades
                                 
            private void Open(TradeType tradeType, string Label)
                
              { 
                   var ATR = Math.Round(atr.Result.Last(1) / Symbol.PipSize);
                  
                
                       
                    var position = Positions.Find( Label, SymbolName, tradeType);
        
                  if (position == null & Server.Time.Hour > 1 & Server.Time.Hour < 23)
                        
                    {
                        ExecuteMarketOrder (tradeType , SymbolName ,20, Label, SLM * ATR, TPM * ATR );  //TradeAmount/2
                        
                    }
            }
       
         private void Close(TradeType tradeType, string Label)
       
               {
                        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?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 May 2024, 05:40

Hi there,

When do you expect this to happen? As far as I remember, one of these conditions will always be true

            if (Bars.ClosePrices.Last() > _supertrend.UpTrend.Last())

            {

                return TrendType.Bullish;

            }

            else if (Bars.ClosePrices.Last() < _supertrend.DownTrend.Last())

            {

                return TrendType.Bearish;

            }

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 May 2024, 05:37

Hi there,

Can you please share with us the source code of your cBot and provide us with instructions on how to reproduce this problem?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 May 2024, 05:34

RE: RE: Price alert when price cross SMA

philippegrosjean said: 

PanagiotisCharalampous said: 

Hi there,

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.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 May 2024, 05:32

Hi there,

Can you please be more specific? Why do you thing market sentiment is stuck? What would you expect to happen instead?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 May 2024, 05:30

RE: RE: Bug: Use of Advanced Stop Loss

raulsanta87 said: 

PanagiotisCharalampous said: 

Hi Andrea,

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?

Best Regards,

Panagiotis 

Join us on Telegram 

The same just happened to me, see journal:

Hi there,

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?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 May 2024, 05:25

Hi there,

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.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 May 2024, 06:53

RE: RE: Custom Tooltip on Output

jstewartcenter said: 

PanagiotisCharalampous said: 

Hi testpossessed,

No there is no such option.

Best Regards,

Panagiotis 

Join us on Telegram

 

Is this still the case @PanagiotisCharalampous ?

Yes, each indicator's output shows the description as part of the tooltip. There is no way to override that at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 May 2024, 06:37

Hi there,

It looks fine to me

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 May 2024, 06:33

Hi there,

It looks like a problem with your broker's price feed. Check it with them.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 May 2024, 06:31

Hi there,

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


@PanagiotisCharalampous

PanagiotisCharalampous
07 May 2024, 06:25

Hi there,

Are you using cTrader Desktop or cTrader for Mac?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 May 2024, 06:24

Hi there,

Make sure your notifications have been enabled

https://id.ctrader.com/my/settings/notifications

If yes, check your spam folder. If you still cannot get the notifications, please reach out to community@ctrader.com to investigate this further.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 May 2024, 06:19

RE: RE: Inquiry Regarding Stop Loss and Take Profit Formulas in cTrader

Saad_D said: 

PanagiotisCharalampous said: 

Hi there,

There is no formula for Price and Balance. They are fixed values. Regarding the rest

Pips: (Entry Price - Bid/Ask Price) / Pip Size 

P&L: (Volume * (Entry Price - Bid/Ask Price)) - (Commissions + Swaps)

Best regards,

Panagiotis

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.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 May 2024, 06:05

Hi there,

It's the Automate tab.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 May 2024, 06:04

RE: RE: SITE in chrome don't work correctly

appacc4dl said: 

PanagiotisCharalampous said: 

Hi there,

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?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 May 2024, 05:43

Hi there,

These services are only available to brokers subscribed to the service. Please contact your broker regarding this matter.

Best regards,

Panagiotis


@PanagiotisCharalampous