trade29.sc.SCBridge.set_intraday_bar_period_parameters#
- SCBridge.set_intraday_bar_period_parameters(key: str, intraday_chart_bar_period_type: int = 0, intraday_chart_bar_period_parameter1: int = 0, intraday_chart_bar_period_parameter2: int = 0, intraday_chart_bar_period_parameter3: int = 0, intraday_chart_bar_period_parameter4: int = 0) SetBarPeriodParametersResponse #
Set the bar period for an intraday chart This is a convenience method to set_bar_period_parameters_request
The parameters to this function follow the SC ACSIL function, reference the SC docs for usage details
SC docs: https://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scSetBarPeriodParameters
- Returns:
Examples
The following snippet changes chart es_2 to an NQ intraday chart.
from trade29.sc.bridge import SCBridge bridge = SCBridge() ret = bridge.set_intraday_bar_period_parameters( key='xx', intraday_chart_bar_period_type=0, intraday_chart_bar_period_parameter1=300) print(ret.rdata)