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

PanagiotisCharalampous
13 Jul 2020, 16:25

Hi Eliezer,

You can get the current spot prices using Symbol.Bid and Symbol.Ask properties.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 14:42

Hi Vadivelan,

The condition below checks if there is a pending order in a distance less than 10 pips from the bid price before executing the code

            if (PendingOrders.Min(x => Math.Abs(x.TargetPrice - Symbol.Bid) / Symbol.PipSize) > 10)
            {
                // do something
            }

You can use it as a starting point in implementing your logic.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 14:24

Hi nhatitp,

Your question is not written in very good English therefore I cannot understand what is the problem. Can you please try explaining better and provide some more information e.g. screenshots?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 14:22

Hi MZen,

You are right, my response above was not correct. When the hasMore flag is set to true, it means that the number of records by filter is larger that the ones returned by the message. Therefore you will need to manually request for the rest or break your queries into requests with smaller sizes.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 11:53

Hi renereiner,

Check here to find out how to reference a custom indicator in your cBot.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 10:53

Hi Paolo,

There is no hotkey at the moment.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 10:51

Hi Sam,

Here is an example

            var ma = Indicators.SimpleMovingAverage(Bars.ClosePrices, 14);
            Positions[0].ModifyStopLossPrice(ma.Result.Last(1));

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 09:48

Hi koktos632,

You can check the Timeframe property.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 09:43

Hi Uri,

There is no limitation in how many accounts you can authorize. To investigate your issue further, we will need more information. Please send us at connect@spotware.com the following

  1. Application ID
  2. Token
  3. Account ID
  4. Account Type (live, demo)
  5. Broker

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 09:37

Hi Eliezer,

What do you mean when you say "real price of an open position"? What is a real price of an open position?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 09:35

Hi MZen,

Could you please elaborate on how I should read more messages? In the Sample project we have Listener tread, so do you mean I have to watch for more messages as output of Listener?

Yes this is correct. The example project is already programmed to do so.

Best Regards,

Panagiotis 

Join us on Telegram

 

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 09:31

Hi jerryde,

No this is not possible.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 09:30

Hi koktos632,

This information is not available via the API. You will need to calculate it yourself.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 09:29

Hi Samuel,

You can use ModifyStopLossPrice to do so.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 09:26

Hi koktos632,

No there are not updates on this subject.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 09:24

Hi GridSurfer,

The PipSize and swaps are determined by the broker so it would be better to talk to them.

Regarding 

How can Total Pips and Average Pips be negative while overall Net Profit was positive?

This can happen when the winning positions are of a larger size than the losing ones.

 

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 09:19

Hi malas7malas,

Seems correct to me. Greenwich Mean Time is the same as UTC time.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 09:16

Hi niloytom,

Yes it does.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
13 Jul 2020, 08:55

Hi rgasch,

Just get one of the previous bricks and check the difference in pips between the open and close prices e.g.

 var size = Math.Abs(Bars.ClosePrices.Last(1) - Bars.OpenPrices.Last(1)) / Symbol.PipSize;

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
10 Jul 2020, 08:43

Hi GridSurfer,

You should see it here

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous