Hi Support,
How can I set the object visibility per timeframe? for instance I want the pivot line to be visible on the 15 minute and Hourly timeframes only on the chart. I found this here:
https://www.dukascopy.com/wiki/#Chart_object_attributes public enum ATTR_INT {
TIMEFRAMES, // Value can be one or combination (bitwise addition) of object visibility constants to set/get timeframe object property
}
and tried this but without success:
obj= chart.draw(String.valueOf(PP), IChart.Type.SHORT_LINE , linestart, PP, linestop,PP);
obj.setAttrInt(IChartObject.ATTR_INT.TIMEFRAMES, 15 );
What values must one set for the
IChartObject.ATTR_INT.TIMEFRAMES attribute in order to make the object visible on the M15 and H1 timeframes only??
Thanks!