using Bar collection and indicators (eg DMS) in background job.
using Bar collection and indicators (eg DMS) in background job.
23 Aug 2024, 12:43
using Bar collection and indicators (eg DMS) in background job.
like var O = Bars[10].Open;
and like
var RS = Indicators.RelativeStrengthIndex(closePrices, entry.14);
var I DM = Indicators.DirectionalMovementSystem(entry.14);
Replies
Shares4us
23 Aug 2024, 15:28
( Updated at: 23 Aug 2024, 17:18 )
RE: using Bar collection and indicators (eg DMS) in background job.
Ofcourse, sorry for being that brief.
I have a backgroundworker that needs to use some indicators while running calculating some MTF bars. the values of the indicators are be used in the backgroundcalculations and the indicators should preferably be local to the backgroundworker (static)
@Shares4us
PanagiotisCharalampous
26 Aug 2024, 06:46
RE: RE: using Bar collection and indicators (eg DMS) in background job.
Shares4us said:
Ofcourse, sorry for being that brief.
I have a backgroundworker that needs to use some indicators while running calculating some MTF bars. the values of the indicators are be used in the backgroundcalculations and the indicators should preferably be local to the backgroundworker (static)
So what is the question :) ?
@PanagiotisCharalampous
Shares4us
26 Aug 2024, 10:03
RE: RE: RE: using Bar collection and indicators (eg DMS) in background job.
I have a backgroundworker that needs to use some indicators(eg DMS) while running calculating some MTF bars.
The values of the indicators are to be used in the backgroundcalculations and the indicators should preferably be local to the static backgroundworker.
Usage like var O = Bars[10].Open;
and like
var RS = Indicators.RelativeStrengthIndex(closePrices, entry.14);
var I DM = Indicators.DirectionalMovementSystem(entry.14);
How to achieve that without invoking the main thread?
@Shares4us
PanagiotisCharalampous
27 Aug 2024, 06:00
RE: RE: RE: RE: using Bar collection and indicators (eg DMS) in background job.
Shares4us said:
I have a backgroundworker that needs to use some indicators(eg DMS) while running calculating some MTF bars.
The values of the indicators are to be used in the backgroundcalculations and the indicators should preferably be local to the static backgroundworker.
Usage like var O = Bars[10].Open;
and like
var RS = Indicators.RelativeStrengthIndex(closePrices, entry.14);
var I DM = Indicators.DirectionalMovementSystem(entry.14);How to achieve that without invoking the main thread?
You can't. If you need data from the Bars object, you need to work on the main thread.
@PanagiotisCharalampous
Shares4us
05 Sep 2024, 13:33
RE: RE: RE: RE: RE: using Bar collection and indicators (eg DMS) in background job.
PanagiotisCharalampous said:
Shares4us said:
I have a backgroundworker that needs to use some indicators(eg DMS) while running calculating some MTF bars.
The values of the indicators are to be used in the backgroundcalculations and the indicators should preferably be local to the static backgroundworker.
Usage like var O = Bars[10].Open;
and like
var RS = Indicators.RelativeStrengthIndex(closePrices, entry.14);
var I DM = Indicators.DirectionalMovementSystem(entry.14);How to achieve that without invoking the main thread?
You can't. If you need data from the Bars object, you need to work on the main thread.
Ok. Related Question. Is there a way to start a Plugin from an indicator or Cbot. Alternate: can i start Backtesting (from plugin) in Indicator/Cbot?
@Shares4us
PanagiotisCharalampous
06 Sep 2024, 05:11
RE: RE: RE: RE: RE: RE: using Bar collection and indicators (eg DMS) in background job.
Shares4us said:
PanagiotisCharalampous said:
Shares4us said:
I have a backgroundworker that needs to use some indicators(eg DMS) while running calculating some MTF bars.
The values of the indicators are to be used in the backgroundcalculations and the indicators should preferably be local to the static backgroundworker.
Usage like var O = Bars[10].Open;
and like
var RS = Indicators.RelativeStrengthIndex(closePrices, entry.14);
var I DM = Indicators.DirectionalMovementSystem(entry.14);How to achieve that without invoking the main thread?
You can't. If you need data from the Bars object, you need to work on the main thread.
Ok. Related Question. Is there a way to start a Plugin from an indicator or Cbot. Alternate: can i start Backtesting (from plugin) in Indicator/Cbot?
No there isn't
@PanagiotisCharalampous
Shares4us
06 Sep 2024, 11:11
RE: RE: RE: RE: RE: RE: RE: using Bar collection and indicators (eg DMS) in background job.
No there isn't
may I ask why? ctrader itself uses headless indicators and bots in back testing and optimisation . Would be nice if we could use this to!
@Shares4us
Shares4us
06 Sep 2024, 11:11
RE: RE: RE: RE: RE: RE: RE: using Bar collection and indicators (eg DMS) in background job.
No there isn't
may I ask why? ctrader itself uses headless indicators and bots in back testing and optimisation . Would be nice if we could use this to!
@Shares4us
PanagiotisCharalampous
06 Sep 2024, 11:48
RE: RE: RE: RE: RE: RE: RE: RE: using Bar collection and indicators (eg DMS) in background job.
Shares4us said:
No there isn't
may I ask why? ctrader itself uses headless indicators and bots in back testing and optimisation . Would be nice if we could use this to!
There is no specific reason. Such a feature is just not implemented. Also you asked about accessing plugins and backtesting, not cBots and indicators
@PanagiotisCharalampous
Shares4us
06 Sep 2024, 14:02
RE: RE: RE: RE: RE: RE: RE: RE: RE: using Bar collection and indicators (eg DMS) in background job.
PanagiotisCharalampous said:
Shares4us said:
No there isn't
may I ask why? ctrader itself uses headless indicators and bots in back testing and optimisation . Would be nice if we could use this to!
There is no specific reason. Such a feature is just not implemented. Also you asked about accessing plugins and backtesting, not cBots and indicators
You’re right. Indicators and bots was related to the initial question.
@Shares4us
Shares4us
06 Sep 2024, 14:02
RE: RE: RE: RE: RE: RE: RE: RE: RE: using Bar collection and indicators (eg DMS) in background job.
PanagiotisCharalampous said:
Shares4us said:
No there isn't
may I ask why? ctrader itself uses headless indicators and bots in back testing and optimisation . Would be nice if we could use this to!
There is no specific reason. Such a feature is just not implemented. Also you asked about accessing plugins and backtesting, not cBots and indicators
You’re right. Indicators and bots was related to the initial question.
@Shares4us
PanagiotisCharalampous
23 Aug 2024, 13:45
Hi there,
It is not clear what you are trying to highlight with this post. Can you please elaborate?
Best regards,
Panagiotis
@PanagiotisCharalampous