Replies

cpxiom
20 Feb 2024, 11:43

RE: RE: Indicator instance problem? [SOLVED]

Solved with booleans. 

 


@cpxiom

cpxiom
16 Feb 2024, 12:25 ( Updated at: 17 Feb 2024, 05:50 )

RE: Indicator instance Bug?

PanagiotisCharalampous said: 

Hi there,

It is hard for anybody to assist you without the source code for your indicator and cBot, as well as steps to reproduce this behavior.

Best regards,

Panagiotis

Hi, on a second thought, most probably it's the indicator… as I see the problem appears more often on one of the signal pairs, lighter red and lighter green signals. If it would be a problem from the app, it would make sense to multiply all of the signals. As that is not happening, it means it's an indicator problem. Also, if I am the only one having this problem, then it's even more clearer. :). 

This is the part I am most concerned of… UpHisto and DnHisto are private IndicatorDataSeries, with CreateDataSeries();. Then:

where UpTrendBuy, is one of the plotted hits lines, as signal. 

As specifics, the indicator plots histogram lines for signals, based on quite a few other indicators combination and calculations. I made it this way to output directly the strategy signals, thinking that it's easier for a cBot to reference only one indicator, not 5, let's say. As best practice… is it better to develop the strategy in the cBot, referencing all the indicators and combinations in the cBot, and not in the indicator? Or it's the same. 

Thank you. 


@cpxiom