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

PanagiotisCharalampous
05 Feb 2024, 07:11

Hi there,

Please provide us with the following information

  • Your account number.
  • Screenshots of the open positions that should be closed.
  • Screenshots of the strategy provider's showing that the positions have been closed.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2024, 07:08

Hi there, 

I am really lazy figuring out why your code does not work therefore I am quoting some code that has been tested and runs well


        [Parameter("Use Trailing Stop", DefaultValue = false, Group = "Trailing Stop Loss")]
        public bool UseTSL { get; set; }

        [Parameter("Trigger (pips)", DefaultValue = 20, Group = "Trailing Stop Loss")]
        public int TSLTrigger { get; set; }

        [Parameter("Distance (pips)", DefaultValue = 10, Group = "Trailing Stop Loss")]
        public int TSLDistance { get; set; }
 protected override void OnTick()
        {
            // If Trailing Stop Loss is set to true, then we execute the following code block
            if (UseTSL)
            {
                // we iterate through all the instance's positions
                foreach (var position in Positions.Where(x => x.Label == Instance))
                {
                    // If position's pips is above the trailing stop loss pips and the position has not trailing stop loss set
                    if (position.Pips > TSLTrigger && !position.HasTrailingStop)
                    {
                        // We check the position's trade type and excute the relevant code block
                        if (position.TradeType == TradeType.Buy)
                        {
                            // We calculate the stop loss based on the TSL Distance To Add parameter
                            var stopLoss = Symbol.Bid - (TSLDistance * Symbol.PipSize);

                            // We modify the stop loss price
                            position.ModifyStopLossPrice(stopLoss);

                            // We set the trailing stop loss to true
                            position.ModifyTrailingStop(true);

                            Print("Trailing Stop Loss Triggered");
                        }
                        else
                        {
                            // We calculate the stop loss based on the TSL Distance To Add parameter
                            var sl = Symbol.Ask + (TSLDistance * Symbol.PipSize);

                            // We modify the stop loss price
                            position.ModifyStopLossPrice(sl);
                            position.ModifyTrailingStop(true);

                            Print("Trailing Stop Loss Triggered");
                        }
                    }
                }
            }
        }

@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2024, 07:03

Hi there,

There was never such option for cTrader Web. This is available only in cTrader Desktop.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2024, 07:03

Hi there,

There was never such option for cTrader Web. This is available only in cTrader Desktop.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Feb 2024, 07:01

Hi there,

Please share with us the complete cBot code and steps how to reproduce this exception.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Feb 2024, 12:49

Hi there,

Both issues are known and will be resolved in the next major update of cTrader.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Feb 2024, 07:50

Hi there,

For deposits and withdrawals, you should talk to your broker.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Feb 2024, 07:27

Hi there,

You can find the account's balance in the ProtoOATrader message. You can retrieve your account's information using ProtoOATraderReq


@PanagiotisCharalampous

PanagiotisCharalampous
02 Feb 2024, 06:48

Hi there,

Can you share new screenshots that will show the account numbers as well as screenshots from your mobile phone showing which trades you would expect to see there?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Feb 2024, 08:59

RE: RE: Embedded .Net Compiler Output Not Recognised by VS

sirinath said: 

VS does not see the build artifacts compiled the cTrader embedded compiler. So even if a reference to the project (indicator) is added it cannot be used in code. Until you also compile the Project (Indicator) using VS also. Then a VS project can reference, see or use the compiled artefacts and the indicator.

If you use other than the embedded compiler (e.g. .net 8) in cTrader this also gives issues.

 

 

Hi sirinath,

I still do not understand. Please provide exact steps to reproduce the problem. Also note that only .Net 6.0 is supported at the moment.

Best regards,


@PanagiotisCharalampous

PanagiotisCharalampous
01 Feb 2024, 07:14

RE: RE: Backtest swaps are still missing in some cases

ncel01 said: 

PanagiotisCharalampous said: 

Hi ncel01,

Can you please provide more information?

Best regards,

Panagiotis

Hi Panagiotis,

Yes, of course. Just let know what exact information you need.

Account, broker and how we can see what you are looking at (cBot, screenshots etc)


@PanagiotisCharalampous

PanagiotisCharalampous
01 Feb 2024, 07:02

Hi there,

If you have stopped copying then the account's balance should have been moved to the main account.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Feb 2024, 07:00

Hi there,

Here is an example of how you can initialize a MACD for the m15 timeframe

 var macd = Indicators.MacdCrossOver(MarketData.GetBars(TimeFrame.Minute15, SymbolName).ClosePrices, 26,12,9);

You can use it to perform the same checks as with your m1 MACD indicator.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Feb 2024, 06:56

RE: Same Here

4ntonysuwarno said: 

I'm also from Indonesia and faced the same problem.

I had this problem a week before on the last weeks on january 2024, don't remember the exact date. But the day after, the app worked just fine so I thiught it was just a little glitch hiccup.

but a few days ago starting 29th january 2024, the same problem occured and to this day it still in this state. I tried on Ctrader desktop version and  Ctrader on web browser but all are the same, just keep trying to connect but failed.

I reached out to my broker, MPFUNDS, but they are also helpless (or should I say useless) even after I complained and gave evidence a few times. 

Hi there,

It seems that the platform is blocked in Indonesia. There is not much the platform can do in this case.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Feb 2024, 06:53

Hi lisabeaney,

Can you please provide clear steps to reproduce this behavior? We would need cBot code, broker, account type, backtesting parameters and exact moment we should break the execution.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Feb 2024, 06:47

Hi ncel01,

Can you please provide more information?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Feb 2024, 06:46

Hi sirinath,

It is not clear what do you mean by “recognised”. How can we reproduce this problem?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
31 Jan 2024, 06:45

RE: RE: different Timeframes & color change & trade history

fufu369 said: 

PanagiotisCharalampous said: 

Hi there,

The toolbar and deal map features will be added in future updates.

The color change bug will be fixed in an upcoming update as well.

Best regards,

Panagiotis

thanks for your respond. when can we expect the next updates? are the updates automatically within the app?

 

what about the trade history on the charts?

 

best regards

Hi there, 

The updated arrive automatically but we do not have an ETA at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jan 2024, 13:53

Dear trader,

Please post your thread in the correct topic. This one will be deleted.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
30 Jan 2024, 13:18

Hi there,

Are you using the Mac version?

Best regards,

Panagiotis


@PanagiotisCharalampous