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

PanagiotisCharalampous
10 Nov 2023, 07:14

Hi there,

You cannot delete a strategy, it is automatically deleted 30 days after it is stopped.

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2023, 07:13

Hi there,

Make sure you do not have two cBots in the same project file


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2023, 07:12

RE: RE: HOW TO DISPLAY A VALUE ON CHART

sarvann24 said: 

PanagiotisCharalampous said: 

Here is an example

        protected override void OnTick()        {            var DIFF = Bars.HighPrices.Last(6)-Bars.LowPrices.Last(6);                        Chart.DrawText("Diff", DIFF.ToString(),  Bars.OpenTimes.Last(0), Symbol.Bid, Color.Red);                               if (rsi.Result.LastValue < 30)                {                    Close(TradeType.Sell);                    Open(TradeType.Buy);                }                else if (rsi.Result.LastValue > 70)                {                    Close(TradeType.Buy);                    Open(TradeType.Sell);                }            }

HI, Can we set rules to make only one trade per bar ONTICK( ),

Only reversing the old postion .

Hi there,

Yes, use a flag after you place a trade and reset it on each bar.


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2023, 07:10

Hi Noppanon,

Unfortunately it is not possible to determine the problem with this information. Please send us the complete solution file to community@spotware.com

 


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2023, 07:07

Hi there,

Your report did not log any disconnections. You need to send the troubleshooting not less than a couple of minutes after the disconnection happens.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2023, 06:57

Hi there,

cTrader FIX API sends the security list in the correct order. You can see the correct response here. Below see a part of an example response as obtained by our sample application.

8=FIX.4.49=8338635=y34=249=CSERVER50=QUOTE52=20231110-06:55:46.86256=demo.ctrader.367668057=3676680320=1322=responce:1560=0146=246255=204801007=CAMECO CORP1008=255=11007=EURUSD1008=555=204811007=GRUMA SAB-ADR (NO SHORT-SELLING)1008=255=21007=GBPUSD1008=555=204821007=MULTIMEDIA GAMES1008=255=31007=EURJPY1008=355=204831007=ANHEUSER BUSCH1008=255=41007=USDJPY1008=355=204841007=MELLANOX TECH1008=255=51007=AUDUSD1008=555=204851007=GOOGLE CLASS A1008=255=61007=USDCHF1008=555=204861007=BROADCOM CORP1008=255=71007=GBPJPY1008=355=204871007=FIRST ENERGY1008=255=81007=USDCAD1008=555=204881007=BANK OF AMERICA1008=255=91007=EURGBP1008=555=204891007=ADTRAN INC1008=255=101007=EURCHF1008=555=204901007=NATIONAL RETAIL1008=255=111007=AUDJPY1008=355=204911007=NIKE INC CL B1008=255=121007=NZDUSD1008=555=204921007=GREEN MOUNTAIN COFFEE1008=255=131007=CHFJPY1008=355=204931007=EQ RESIDENT1008=255=141007=EURAUD1008=455=204941007=BRITISH

Please check your implementation.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
10 Nov 2023, 06:35

Hi there,

How can we reproduce this problem?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Nov 2023, 06:39

Hi there,

Do you still experience disconnections?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Nov 2023, 06:37

Hi there,

Check the documentation and the examples here.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Nov 2023, 06:32

Hi there,

No there is no built in method for this.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 Nov 2023, 12:59 ( Updated at: 09 Nov 2023, 06:30 )

Hi there,

OnProtoHeartbeatEvent checks for incoming heartbeats. If you want to send heartbeats at a specific interval, you should use a Timer.

Best regards


@PanagiotisCharalampous

PanagiotisCharalampous
08 Nov 2023, 09:50 ( Updated at: 21 Dec 2023, 09:23 )

RE: News tab missing

swapd0 said: 

My broker is icmarkets.

Seems there 


@PanagiotisCharalampous

PanagiotisCharalampous
08 Nov 2023, 06:35

Hi there,

If you get this message then probably that's the problem. Your log does not shed any light to what your code is actually doing. It would be easier for you to compare your implementation to the example application and see what you are doing different. If you can reproduce the issue with the example application, then we are happy to have a look.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 Nov 2023, 06:31 ( Updated at: 08 Nov 2023, 06:32 )

Hi there,

Which broker are you using?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
08 Nov 2023, 06:30

Hi there,

You need to set your chart object as interactive

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Nov 2023, 11:08 ( Updated at: 08 Nov 2023, 12:53 )

Hi there,

Try making the line interactive

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Nov 2023, 11:05 ( Updated at: 07 Nov 2023, 11:06 )

Hi eynt,

  1. There is OnDestroy()
  2. No, the indicator is reinitialized

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Nov 2023, 06:55

Hi there,

Your trading volume can be set in steps. So rounding up or down is unavoidable.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Nov 2023, 06:53

Hi there,

Can you record a video demonstrating this issue?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Nov 2023, 06:52

RE: RE: Differences between optimization and backtesting results

ctid6328327 said: 

dave.anderson.consulting said: 

This issue has never been resolved since it was reported. We are now 4 years later and still no fix on cTrader version 4.8.23.
I needed to optimize a client's cBot and ran into this bug today.
To make sure it's not my fault I grabbed the above passed cBot and tested it and saw that there is still a difference between Optimization and Backtest results. Exactly as it was reported here in 2019.

This is not the only issue. With some bots there is a difference between Visual and Non-Visual backtest. 

Hi there,

There is no known issue at the moment. If you can reproduce such issue, please share the information requested above.

Best regards,

Panagiotis


@PanagiotisCharalampous