Replies

PanagiotisCharalampous
10 Aug 2020, 07:56

Hi samuel.jus.cornelio,

Can you define what "touch" means? Do you mean the close price to be the same with the EMA or the EMA price to be between the open and close prices? In any case, both comparisons seem pretty straight forward. Let us know what is the difficulty for you.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
10 Aug 2020, 07:51

Hi warren.mitchell.12,

Make sure you are using your broker's cTrader. If yes and you can still not see your account, please contact your broker.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
10 Aug 2020, 07:50

Hi vikkineshwar,

You can use a MessageBox for this task.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
10 Aug 2020, 07:49

Hi mchocho,

Can you please post in English?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
07 Aug 2020, 08:20

Hi samuel.jus.cornelio,

Please post the complete cBot code to check.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
07 Aug 2020, 08:18

Hi samuel.jus.cornelio,

You do not pass these values as parameters to the indicator. They are not a part of the indicator's calculation.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
07 Aug 2020, 08:16

Hi eliezer,

I still do not understand. I do not see the position in my results. Can you show it to me?

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
07 Aug 2020, 08:12

Hi kylem-93,

The positions were partially closed to maintain the equity to equity ratio because the strategy provided made a deposit on  6 Aug at 9:40.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
07 Aug 2020, 08:10

Hi koktos632,

OnTick() should be called once and OnBar() 21 times.

Best Regards,

Panagiotis 

Join us on Telegram

 

 


@PanagiotisCharalampous

PanagiotisCharalampous
07 Aug 2020, 08:08

Hi Space,

Can you check again? It seems ok to me now.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2020, 12:45

Hi jitenlodhia,

This is probably caused by corrupted data in one of the two charts, probably the daily chart. If bars are missing from the daily chart, this will cause the bars to shift to the left and stay below the trend line.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2020, 12:33

Hi kylem-93,

Can you please tell us your broker?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2020, 11:54

Hi galaaoui.salma,

The root of the problem is the same. You cannot use CurrencyPair.MarketData since it is not initialized anywhere. This property is only initialized when the cBot is attached to a chart.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2020, 11:06

Hi ac15x,

Seems fine to me. Did you run into any issues? 

The cBot timezone is defined in the Robot attribute

 [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2020, 10:45

Hi fang0092,

Unfortunately this information is not accessible by the API.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2020, 10:22

Hi fang0092,

Do you ask how to determine the color of the rectangle that will be drawn using DrawRectangle()?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2020, 08:49

Hi eliezer,

I tried reproducing this trade with the cBot you sent but I do not get such a position opened. See below

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2020, 08:40

Hi tommy123,

You can check how ROI is calculated here.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2020, 08:38

Hi heychirag,

These events are sent by Open API. Check ProtoOAExecutionEvent.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2020, 08:23

Hi samuel.jus.cornelio,

You need to fix your brackets. Do you have any experience in C# programming? It seems that you are just copying and pasting code in the wrong places.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous