Topics
26 May 2020, 12:08
 1157
 2
25 May 2020, 13:09
 894
 2
25 May 2020, 12:46
 0
 793
 1
22 May 2020, 15:45
 1029
 4
22 May 2020, 13:28
 832
 2
22 May 2020, 10:00
 0
 892
 1
22 May 2020, 09:58
 0
 873
 1
22 May 2020, 09:57
 1
 864
 1
21 May 2020, 23:28
 1019
 4
21 May 2020, 20:37
 817
 2
21 May 2020, 20:34
 1421
 4
21 May 2020, 20:32
 1209
 2
Replies

eynt
02 May 2025, 07:54

RE: RE: RE: RE: RE: Clipboard.GetText() not working

These are all too complex, I don't see a reason why a simple copy-paste shouldn't wotk


@eynt

eynt
02 May 2025, 05:58

RE: RE: RE: Clipboard.GetText() not working

I create a button which once clicked gets the text from the clipboard and runs code based on it


@eynt

eynt
02 May 2025, 05:50

RE: Clipboard.GetText() not working

Hi

 

This is the print I got from the code below after copying some text to the clipboard. The a and b prints are working well but not the one of the Clipboard.GetText():

 

02/05/2025 05:46:32.491 | Info | Indicator instance [CopyText, EURUSD, h1] loaded.
02/05/2025 05:46:35.257 | Info | a
02/05/2025 05:46:35.272 | Info | 
02/05/2025 05:46:35.272 | Info | b
 

namespace cAlgo
{
    [Indicator(IsOverlay = true, AccessRights = AccessRights.FullAccess)]
    public class CopyText : Indicator
    {
        [STAThread]
        protected override void Initialize()
        {
            Print("a");
            string text = System.Windows.Forms.Clipboard.GetText();
            Print(text);
            Print("b");
        }

        public override void Calculate(int index)
        {
        }
    }
}

@eynt

eynt
13 Apr 2025, 20:38

RE: OnPendingOrders Events are not triggered

What about the StopLoss/TaleProfit orders?


@eynt

eynt
11 Mar 2025, 07:47

Is it possible to get Workspace name via code? If not, is it possible to get the chart's selected color from the top left corner?

 

Thanks


@eynt

eynt
26 Jan 2025, 13:32

It seems to be working now I'm not sure what solved it, either simply waiting a few minutes or deleting the C:\Users\%Username%\AppData\Roaming\Spotware\Settings folder


@eynt

eynt
17 Dec 2024, 15:08

Anything new? Is there a way to pause an optimization run in the middle?


@eynt

eynt
14 Nov 2024, 10:47

RE: Apply as default settings for vertical line does not apply for the color.

Why? It creates needless work.

 

Thanks


@eynt

eynt
01 Oct 2024, 13:11

RE: Repeated Disconnections

eynt said: 

Hello

 

Disconnections keeps happaining, several times each week. I sent a technical report about 10-15 minutes after the disconnection with a refernce to this forum thread.

 

I'm looking forward to hear from you

 

Hello

 

anything new?

 

thanks


@eynt

eynt
18 Sep 2024, 20:44

Hello

 

Disconnections keeps happaining, several times each week. I sent a technical report about 10-15 minutes after the disconnection with a refernce to this forum thread.

 

I'm looking forward to hear from you

 


@eynt

eynt
21 Aug 2024, 16:28

I suggest there there will be a way to place on a chart a vertical line date and time by typing it and not moving it on the chart. (Just like when placing an horizol line it is possible to type its value/price).

Sometimes you want the line to be placed exactly at a given date, especially when working with automated trading.

 

 

Thanks


@eynt

eynt
11 Aug 2024, 14:21

RE: RE: RE: RE: RE: RE: Load more History on Backtest

When is v5.2 expected to be released?

Thanks


@eynt

eynt
11 Aug 2024, 14:18

RE: RE: RE: RE: RE: RE: RE: How can I know when the stop loss is triggered

It makes a lot of sense if cTrader cant provide accurate real time data.

Is there a way via code to tell cTrader at OnTick to check *now* from the broker the positions status instead of waiting for the Positions.Closed event to be triggered?

 

Thanks


@eynt

eynt
07 Aug 2024, 11:42

RE: RE: RE: RE: RE: How can I know when the stop loss is triggered

 

 

You can't and probably that will be the case in live environments too. It takes some time for the server to notify the client application that a position was closed.

 

Is there a way via code to “ask” the broker directly and not via cTrader properties/events?

I am not sure what do you mean…

As far as i know the only way to know about the positions states is using Positions which is a cTrader's object and is not necessarily updated.

Is there a way via code to communicate instead directly with the broker and get the updated positions status from there?

 

Thanks


@eynt

eynt
06 Aug 2024, 11:02

RE: RE: RE: How can I know when the stop loss is triggered

 

You can't and probably that will be the case in live environments too. It takes some time for the server to notify the client application that a position was closed.

 

Is there a way via code to “ask” the broker directly and not via cTrader properties/events?


@eynt

eynt
06 Aug 2024, 07:24

RE: How can I know when the stop loss is triggered

Hi

 

It seems the Positions.Closed event is triggered somehow late, meaning AFTER OnTick. So when I run the OnTick the cBot thinks the position is still open (and the position still appears on the Positions property).

How can I know from the OnTick that the position is already closed?

 

Thanks


@eynt

eynt
23 Jul 2024, 16:32

RE: RE: RE: RE: Load more History on Backtest

Hello, anything new?

Thanks


@eynt

eynt
08 Jul 2024, 05:50

RE: RE: Run restart after a build

eynt said: 

PanagiotisCharalampous said: 

No you cannot. As firemyst suggested, you would need a different setup for such a scenario. In principle, dev environment should be different to your production environment. 

Hi

I belive It used to be fine until now. I don't understand why was the change in last version. There's no sense of forcing a reload in the middle of a run. I suggest you change it back to the way it was.

 

Thanks

I want to emphasize this point. A part of  the developing is actually running the bot while developing and modifing it at the same time so it's impossible to seperate running a bot and developing. Especially when running it on backtest. The auto-reload doesn't give any addded value, only cause complications


@eynt

eynt
08 Jul 2024, 05:39

RE: Run restart after a build

PanagiotisCharalampous said: 

No you cannot. As firemyst suggested, you would need a different setup for such a scenario. In principle, dev environment should be different to your production environment. 

Hi

I belive It used to be fine until now. I don't understand why was the change in last version. There's no sense of forcing a reload in the middle of a run. I suggest you change it back to the way it was.

 

Thanks


@eynt

eynt
26 Jun 2024, 07:59

RE: what type of data am I running

firemyst said: 

It runs whatever was selected before you started the back test.

I meant, can I know which type from code, not from GUI


@eynt