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

PanagiotisCharalampous
23 Nov 2018, 17:58

Hi netread2004,

Go to Documents\cAlgo\API and delete the contents of the folder. Then launch your cTrader 3.0 again. Let me know if it resovles the problem.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 17:26

Hi Ian,

I am not sure what kind of example you need. PendingOrder.TargetPrice is the price at which the order is set to trigger. If you need to modify it so that the order trails the price fluctuation, you will use ModifyPendingOrder to change the target price. Let me know a simple scenario you wish to see programmed so that I can provide with a sample code.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 17:17

Hi nguyendan81985,

See below how to get the pips separating the currect SpanA value from the current Bid price, above and below

           //Above
           var pipsFormBidAbove = (ichimokuKinkoHyo.SenkouSpanA.Last(27) - Symbol.Bid) / Symbol.PipSize;
           //Below
           var pipsFormBidBelow = (Symbol.Bid - ichimokuKinkoHyo.SenkouSpanA.Last(27)) / Symbol.PipSize;

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 15:24

Hi laurentgeboes,

No, backtesting is just for cBots.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 14:59 ( Updated at: 21 Dec 2023, 09:21 )

Hi laurentgeboes,

You need to navigate to cTrader Automate. See below

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 14:12

Hi Ulises,

Please send me the video at community@spotware.com so that I can see what happens.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 14:11

Hi ctid723683,

I am not sure what you mean with activate. If cTrader is launched and cBot running then it should work without any further intervention.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
23 Nov 2018, 14:07

Hi Ian,

Yes you can. Just use ModifyPendingOrder to set the new target price each time the price is recalculated.

Best Regards,

Panagiotis


@PanagiotisCharalampous

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