Replies

PanagiotisCharalampous
20 Sep 2024, 05:31

RE: RE: Check if position has already been opened and closed?

rick2010 said: 

PanagiotisCharalampous said: 

Hi there,

You can track the closed positions using the Positions.Closed event. There you can add the closed positions in a collection as the one you posted above.

Best regards,

Panagiotis

Thanks… I don't care about the event, I need to be able to look up a history of closed/filled trades. For example before placing a trade for id XYZ123 I first need to make sure that trade id XYZ123 hasn't already been opened and closed… this is to prevent duplicate trades from occurring. And if I just add them to a collection I'll lose that collection of closed trades next time the cBot is restarted which will allow duplicate trades to occur. TIA

 

There is no option to access closed positions. You can only access past deals through History. Nevertheless if you want the information to persist between cBot restarts, you can always save it in a file


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2024, 12:19

Hi there, 

There is nothing special you need to do. Just launch cTrader two times and use the account you want on each instance.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2024, 12:17

Hi there,

Could you please send us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.

Best regards,


 


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2024, 09:35

RE: Display indicator on unhide -Code

VIZAINT said: 

Nothing out of the ordinary, there is a method of creating the box and then in Calculation it is repeated 10 times, to form part of the vertical line on the right.

public override void Calculate(int index) {
for (int ib = 0; ib < 10; ib++)
               {
                   ////////////
                   ///---------------
                  ///////////

                   DrawMyRectangle(ib, index, Start, End, currentPrice, by10, MaxBoxIndex, MinBoxIndex);

               }
}

 

public ChartRectangle DrawMyRectangle(int ib, int ind, int start, int end, double currPrice, double by10, double MaxBoxIndex, double MinBoxIndex)
       {
           double sum = Xcind(ind, start, end);
           List<double> mSum = new();
           mSum.Add(sum);

           var Minut = TimeFrame.GetHashCode();
           var newOffset = Minut * OffsetBox;
           var topbx = by10 - (by10 * 0.1);
           var btmbx = by10 - (by10 * 0.9);
           var newColor = sum > 0 ? Color.FromArgb(TranspBox, UpColor) : Color.FromArgb(TranspBox, DownColor);

          ////////////
          ///---------------
         ///////////

           return rec;
       }

hi there,

I would need the full source code of the indicator to assist further


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2024, 06:39

Hi there,

You should ask your broker to investigate from where these orders were executed. The broker can see from which application was the position opened. This could help you understand what is going on.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2024, 06:36

Hi there,

Could you please send us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.

Best regards,

Panagiotis


 


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2024, 06:35

Hi there,

Please share your indicator code so that we can reproduce it.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2024, 06:34

RE: Horizontal Line - Price Level

BlackGesusTrading said: 

bro now its automatically hidden and I don't know how to find where to unhid it …. ive been struggling for 3 days now and can't find the awnser no where… anybody can help me?

Hi there,

Can you share a screenshot of what you are looking at?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2024, 06:31

Hi there,

This feature is not available yet in cTrader for Mac.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2024, 06:11

Hi there,

You can track the closed positions using the Positions.Closed event. There you can add the closed positions in a collection as the one you posted above.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2024, 05:48

Hi there,

The problem is that your are calling a property that does not exist. Bars do not have a Volume property.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2024, 05:38

Hi there,

Feel free to share your code so that we can advise you what the issue is.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2024, 05:37

Hi there,

From your description it seems the problem is with your email provider, not with cTrader. You should investigate that further.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Sep 2024, 05:35

Hi there,

We do not have such plans at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Sep 2024, 05:22

Hi Robert,

Unfortunately there is no screenshot in your post.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Sep 2024, 05:21

RE: RE: CBot instance crashed with error #C15EF25B - BUG (issue found).

scotpip said: 

Bug still unfixed as of 17/09/24.

Hi there,

Could you please send us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.

Best regards,

Panagiotis
 


@PanagiotisCharalampous

PanagiotisCharalampous
18 Sep 2024, 05:19

Hi there,

There is no way to do this at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Sep 2024, 05:15

Hi there,

You can see the logs of the previous day by clicking on Show in Folder

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2024, 05:34

Hi there,

It is better to talk to your prop firm regarding this matter.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Sep 2024, 05:32

RE: Payment issue

PSMGold said: 

I tried to purchase the fixed range volume profile. I was qouted a discount rte of 9.95. I live in Thailand and my card is registered to me here but it is issued offshore in I-O-M. The payment was refused and i was asked to supply a local card, which i don't have. There's the option to pay more but that seems a little unfair. Any ideas?

 

 

 

Hi there,

You should contact ClickAlgo directly regarding this matter.

Best regards,

Panagiotis


@PanagiotisCharalampous