Replies

PanagiotisCharalampous
23 Apr 2020, 13:49

Hi Anton,

Assuming you are referring to h1 bars and you are using GMT time, here is an example

            var bars = MarketData.GetBars(TimeFrame.Hour, Symbol.Name);          
            for (int i = 0; i < 24; i++)
            {
                if (bars.OpenTimes.Last(i).Hour == 8)
                    Print(bars.ClosePrices.Last(i));
            }

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2020, 09:26

Hi byStoyan,

Try clearing your browser cache (Ctrl+F5) and let us know if the charts are reset.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2020, 09:00

Hi bodhisvaha.forex,

I am not sure what do you mean when you say "to lose it". Order information is not provided by FIX API. You need to keep track of this information yourself and make sure you do not lose it.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2020, 08:38

Hi faisal.nadeem1401,

Thanks for your suggestion but please use Suggestions section for such proposals else it will be lost among other threads.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2020, 08:32

Hi omidfx10,

Your question is not clear and does not seem to be related to the subject of the thread. Can you please create a new thread and explain your question better? 

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2020, 08:25

Hi haroonfx,

Theoretically it should work. It worked the last time I tried this :) You can just test it and let us know.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
23 Apr 2020, 08:21

Hi mizo.rakkii,

You can not use Ticks as an input to a SimpleMovingAverage. The method takes only DataSeries as an input. The only workaround to this is to get the timeframe as a parameter. See below an example

        [Parameter()]
        public TimeFrame Timeframe { get; set; }

        protected override void OnStart()
        {
            var sma1 = Indicators.SimpleMovingAverage(MarketData.GetBars(Timeframe, Symbol.Name).ClosePrices, 20);
        }

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Apr 2020, 17:40

Hi Kenneth,

It will be empty because that line of code will be executed before the bars are retrieved. That's the whole point of asynchronous execution, to proceed with the execution of the main thread while another task is executed in parallel on the side. Why do you need to use GetBarsAsync() and not just GetBars()?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Apr 2020, 17:11

Hi Kenneth,

I am not sure what is the problem. The below seems to be working fine for me

            var lbrs = new List<Bars>();
            MarketData.GetBarsAsync(TimeFrame, Symbol.Name, bars =>
            {
                lbrs.Add(bars);
                Print(lbrs.Count + " Bar collection added");
            });

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Apr 2020, 15:28

Hi Takis,

We have just released a fix on Spotware Beta that resolves this issue. The update will be rolled out to brokers soon.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Apr 2020, 15:28

Hi Velox,

We have just released a fix on Spotware Beta that resolves this issue. The update will be rolled out to brokers soon.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Apr 2020, 12:04

Hi RayAdam,

No this is not possible.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Apr 2020, 11:29

Hi lutroderzi,

The lines are missing at the moment. They will be added in an upcoming update.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Apr 2020, 11:17

Hi Luca,

It is probably the same issue as above. If you set wrong stop loss prices they will not be accepted. The stop loss needs to be lower than the entry price for buy positions and higher than the entry price for sell positions.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Apr 2020, 09:20

Hi firemyst,

This information is not provided by the API. You will need to "invent" something yourself.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Apr 2020, 09:08

Hi Tj11,

Are you using the same workspace on all instances? If yes, then these changes will be synchronized. Chart configuration is saved in workspaces. If you wish to have a different configuration per instance then you need to use a different workspace as well

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Apr 2020, 08:27

Hi bodhisvaha.forex,

Yes this is correct. With this tag you can control slippage. It is the worst price you accept to take. If the order cannot be filled completely under this condition then your order will not be filled or filled partially.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
22 Apr 2020, 08:24

Hi there,

I tried this but I cannot reproduce such an issue. Can you send us a screenshot with the error message and the relevant url address?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 16:43

Hi firemyst,

As far as I can remember, nobody ever requested this information. No, we do not have plans to add this at the moment.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
21 Apr 2020, 14:59

Hi firemyst,

It seems to work fine for me. This is what I get when I close partially a position

Please note that the History contains only closing deals. Hence if for example you are adding volume to a position, hence creating an opening deal. this will not be recorded. It will be recorded only when the deal closes. 

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous