Topics
Replies

imrealfighter
24 Nov 2020, 14:27

RE: RE:

imrealfighter said:

PanagiotisCharalampous said:

Hi imrealfighter,

To add a horizontal line to the chart, you need to use Chart.DrawHorizontalLine() method.

Best Regards,

Panagiotis 

Join us on Telegram

Hello There Again PanagiotisCharalampous
I have some problem with a horizontal line (again) hope you could suggest to me.

Why Chart.DrawHorizontalLine() can use only in protected override void OnStop(){} protected override void OnTick() and protected override void OnStart()

I want to use it in another class how could I do it so? 
 

Edit. Now I know that IF I want to use Chart.DrawHorizontalLine() on another class all I need is declare inherited class from robot class that all. 


and btw the reason that I won't delete my comment because for the sake of our community so maybe someone face the task in the same way like me so that's it. 
Thank you PanagiotisCharalampous  and all of helpers. 

 


@imrealfighter

imrealfighter
24 Nov 2020, 14:17

RE:

PanagiotisCharalampous said:

Hi imrealfighter,

To add a horizontal line to the chart, you need to use Chart.DrawHorizontalLine() method.

Best Regards,

Panagiotis 

Join us on Telegram

Hello There Again PanagiotisCharalampous
I have some problem with a horizontal line (again) hope you could suggest to me.

Why Chart.DrawHorizontalLine() can use only in protected override void OnStop(){} protected override void OnTick() and protected override void OnStart()

I want to use it in another class how could I do it so? 

Thank you.

 


@imrealfighter

imrealfighter
24 Nov 2020, 08:46

RE: RE:

imrealfighter said:

PanagiotisCharalampous said:

Hi imrealfighter,

To add a horizontal line to the chart, you need to use Chart.DrawHorizontalLine() method.

Best Regards,

Panagiotis 

Join us on Telegram

Thank you PanagiotisCharalampous I appreciate it. ! 

but if We use Chart.DrawHorizontalLine() method how are we gonna set isLocked(), isHidden() and IsInteractive() then ?  (already fixed)

 

 

Edit. I've tried to created Honrizontal line by Chart.DrawHorizontalLine() already and it can set isLocked() and the orthers just by Object.(method) 

so Thank you. :) 
 

 


@imrealfighter

imrealfighter
24 Nov 2020, 08:41

RE:

PanagiotisCharalampous said:

Hi imrealfighter,

To add a horizontal line to the chart, you need to use Chart.DrawHorizontalLine() method.

Best Regards,

Panagiotis 

Join us on Telegram

Thank you PanagiotisCharalampous I appreciate it. ! 

but if We use Chart.DrawHorizontalLine() method how are we gonna set isLocked(), isHidden() and IsInteractive() then ? 

 


@imrealfighter

imrealfighter
24 Nov 2020, 08:38

RE:

PanagiotisCharalampous said:

Hi imrealfighter,

Pending orders are stored in PendingOrders property.

Best Regards,

Panagiotis 

Join us on Telegram

Ok, then Thank you. (Y) 

 


@imrealfighter

imrealfighter
22 Nov 2020, 03:50

RE:

PanagiotisCharalampous said:

Hi imrealfighter,

I am not sure about which pdf or which API are you referring to. We have a pdf only FIX API.

Best Regards,

Panagiotis 

Join us on Telegram

Ok, it's about Pdf that teach us on how to code on cbot (I.E. how to code to set TP and SL how to code to creating market order ETC.) 

 


@imrealfighter

imrealfighter
22 Nov 2020, 03:49

RE:

PanagiotisCharalampous said:

Hi imrealfighter.

No there is no offline version of the reference available.

Best Regards,

Panagiotis 

Join us on Telegram

Ok, then. 
THank you.


@imrealfighter

imrealfighter
12 Nov 2020, 05:29

RE: PanagiotisCharalampous

PanagiotisCharalampous said:

Hi imrealfighter,

There is no built in feature for this but you can use a cBot to achieve this.

Best Regards,

Panagiotis 

Join us on Telegram


Thank you for your help and repiled.

 

Ok, then maybe I could work it out on the backtest.

anyway hope ctrader support team will build this feature in the future. 
It is not only me that requires this kind of feat I see a request topic like me before also.

 

Regard. 


@imrealfighter