Is it better to call the indicator or write the indicator yourself?
Is it better to call the indicator or write the indicator yourself?
01 Mar 2024, 07:06
When processing a basic indicator, I would like to know whether it is better to call it and process it, or to write the indicator program myself.
Assume that the basic indicator processing is the same in both.
The question is whether calling this will increase the amount of processing.
I don't think there is basically a big difference.
However, since there are many problems such as not being able to move objects in the chart area of ctrader, we thought it would be better to do as little processing as possible.
Thank you.
Replies
firemyst
03 Mar 2024, 03:30
RE: Is it better to call the indicator or write the indicator yourself?
PanagiotisCharalampous said:
Hi there,
Unfortunately I cannot understand the question and I guess many other readers. Could you please rephrase and provide some examples of what you are doing?
Best regards,
Panagiotis
I think what the OP is asking is if he's writing either a bot or a custom indicator that references a common indicator like the EMA, does the code execute faster if he references the native indicator in cTrader, or codes his own EMA within the custom indicator/bot he's writing.
Since nano-seconds can make a difference, he's essentially wonder if anyone's done any bench marks to see which way is faster.
That's how I read it.
@firemyst
PanagiotisCharalampous
04 Mar 2024, 06:45
RE: RE: Is it better to call the indicator or write the indicator yourself?
firemyst said:
PanagiotisCharalampous said:
Hi there,
Unfortunately I cannot understand the question and I guess many other readers. Could you please rephrase and provide some examples of what you are doing?
Best regards,
Panagiotis
I think what the OP is asking is if he's writing either a bot or a custom indicator that references a common indicator like the EMA, does the code execute faster if he references the native indicator in cTrader, or codes his own EMA within the custom indicator/bot he's writing.
Since nano-seconds can make a difference, he's essentially wonder if anyone's done any bench marks to see which way is faster.
That's how I read it.
In principle no, as long as the implementations are identical. However, since there are always specifics in each case, this needs to be checked on a case by case basis.
@PanagiotisCharalampous
firemyst
05 Mar 2024, 03:06
( Updated at: 05 Mar 2024, 06:44 )
RE: RE: RE: Is it better to call the indicator or write the indicator yourself?
PanagiotisCharalampous said:
In principle no, as long as the implementations are identical. However, since there are always specifics in each case, this needs to be checked on a case by case basis.
Out of curiosity, are the native built in cTrader indicators written in .Net as well? Or another language like C++
@firemyst
PanagiotisCharalampous
01 Mar 2024, 09:16
Hi there,
Unfortunately I cannot understand the question and I guess many other readers. Could you please rephrase and provide some examples of what you are doing?
Best regards,
Panagiotis
@PanagiotisCharalampous