Replies

PanagiotisCharalampous
23 Nov 2018, 12:40

Hi ctid723683,

Thanks for posting in our forum. cBots run on the client\s computer therefore cTrader needs to be running for them to execute your strategy.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 11:28

Hi nguyendan81985,

From a first look, your logic seems correct. Did you test it? Do you get correct entries? If not. then share the full cBot code and I can have a another look on backtesting.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 11:18

Hi sean.n.long,

Thanks for the nice comments. I am not sure what you mean with Exponential Moving Average Line. How is this different from the EMA indicator?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 11:05

RE: RE: RE: RE:

Hi stajefala,

The behavior you describe is not intentional and we are trying to reproduce the issue. If you can, please post a screenshot with the color settings of the object and how it looks on your chart.

Best Regards,

Panagiotis

stajefala said:

bart1 said:

stajefala said:

Sorry but i have no idea on how to build, i just tried building it for 30mins.. could not figure it out.

  1. Go to Automate
  2. Create new cBot
  3. Replace all the text in code editor with example from above
  4. Build it

Then you can add this cBot to the chart with transparent objects and run it. Logs will have some info:
22/11/2018 15:51:47.321 | cBot "New cBot" was started successfully for EURUSD, h1.
22/11/2018 15:51:47.477 | 3 objects on the chart
22/11/2018 15:51:47.477 | 2 objects with transparent color
22/11/2018 15:51:47.477 | Colors fixed

 

Never mind, the objects are "semi transparent" this code only changes if its fully transparent.. not the first time a cTrader update has caused so much pain!
I´ll just refix everything manually.

It´s just strange that cTrader decides to change and fiddle automatically with colors/transparency and other stuff, most of my London ranges are out of place and not at all at the london H/L

 


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 11:00

Hi ulises.guerrero,

Thanks for posting in our forum. There is no way to choose your proxy in cTrader. cTrader automatically connects to the best available proxy. If it connects to Amsterdam, it means that the London proxy is not the optimal choice at that moment.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 10:56

Hi ggan,

There is no such mapping at the moment.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 10:51

Hi Ian,

I am not sure I understand your question. You can use an index with PendingOrders, if this is what you ask. If you want to find the distance from the current price to the order, then you need to use the Target Price. See below

PendingOrders[0].TargetPrice

Let me know if this is what you were looking for.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 10:08 ( Updated at: 21 Dec 2023, 09:20 )

Hi laurentgeboes,

Here it is

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 10:03

Hi netread2004,

It is a very general question to give a specific answer. It all depends on what you are trying to do. The only advice I can provide is that the sample application has been developed with a sole purpose of demonstrating how to send and receive FIX messages using cTrader FIX API. It has not been designed for use in production software, therefore you should be very cautious if you decide to use any of its components in your cBot and make sure your cBot passes a rigorous testing procedure. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
22 Nov 2018, 16:20

Hi netread2004,

Ok now I understand. The reason this happens is because the two streams share the same message sequence number while they should not. You need to keep a separate sequence number for quote stream and for trade stream. I will try to update the example project soon to take this into consideration.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
22 Nov 2018, 15:52

Hi netread2004,

I used the FIX API example application to send the order. I would suggest you try it as well and make sure the order is placed. Maybe something was messed up on code transfering.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
22 Nov 2018, 15:19

Hi noppanon,

We will start development of this feature soon but do not have any estimations for delivery yet.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
22 Nov 2018, 14:45

Hi netread2004,

Something is wrong with your stop order but unfortunately I cannot reproduce this behavior. You should be getting an execution report and not a resend message. I used your details to send the below message for a stop order and I get an execution report and a successful order placement 

Order

8=FIX.4.49=15135=D49=circlemarkets.400002256=CSERVER57=TRADE50=TRADE34=252=20181122-12:43:4411=1055=254=160=20181122-12:43:4338=100040=399=1.2890759=110=114

Execution Report

8=FIX.4.49=20335=834=249=CSERVER50=TRADE52=20181122-12:43:44.18956=circlemarkets.400002257=TRADE11=1014=037=3195938=100039=040=354=155=259=160=20181122-12:43:44.18199=1.28907150=0151=1000721=1806810=214

Can you let me know if the order has been placed on your cTrader.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
22 Nov 2018, 14:18

Hi Eklon,

We are aware of this issue and will be fixed soon.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
22 Nov 2018, 14:17

Hi ratrabbit1211,

Thanks for posting in our forum and for reporting your problem. Can you please provide us with more information about the issue you experience? Which drawings and are you referring too? Can you post some screenshots to understand the problem?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
22 Nov 2018, 14:12

Hi equantfx,

I investigated this issue and this behavior is by design. Position entry price is calculated based on open deals composing the position. Complex positions (the ones consisted of more than one deals) are partially closed based on the FIFO rule, therefore if partial closing closes entirely one the oldest deals, this will cause the recalculation of the entry price. For now we do not have any plans to change this behavior.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
22 Nov 2018, 12:22

Hi netread2004,

In tag 59 of your stop order message you use value 3. As per our Rules of Engagement, you need to use either 1 or 6. 3 can be used only for market orders. Can you please fix and try again?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
22 Nov 2018, 12:05

Hi nguyendan81985,

As long as it does what you expect it to do then it looks fine to me.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
22 Nov 2018, 11:11

Hi nguyendan81985,

Last(0) will return the values for the bar just opened. Therefore Open and Close prices will be the same. If you are interested in the values of the bar just closed, use Last(1).

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
22 Nov 2018, 10:53

Hi man-gus,

Can you try downloading from here and let me know if it resolves the issue?

Best Regards,

Panagiotis


@PanagiotisCharalampous