Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 00:07:26 +0000



renko bar predictor

View Count: 1449

[2018-08-30 20:43:55]
Devil_On_WallStreet - Posts: 67
I use flex renko with the setting "Allow Change of Direction Current Bar" which doesnt work with the predictor. I've already coded one specifically for this however, not sure how to have it detect what "trend change" option is selected... If you can point me towards some sample code for referencing this... I'll code up a predictor that works with all options and make it available to everyone...
[2018-08-31 18:19:26]
Sierra Chart Engineering - Posts: 104368
You need to use this particular function:

sc.GetBarPeriodParameters()
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2018-08-31 19:37:37]
Devil_On_WallStreet - Posts: 67
Thank you, however it lists the operators for referencing the bar types but not the different "Renko New Bar Modes" It lists all the different parameters for referencing the Bar size, trend, etc... the just gives an example with basic days, minutes, seconds... Would be really great if you could update with a list of the actual operators for referencing the different types of Renko New Bar Modes, and maybe put an example where all 4 of the parameters are referenced.
[2018-08-31 19:52:20]
Sierra Chart Engineering - Posts: 104368
Refer to the documentation for: s_BarPeriod::IntradayChartBarPeriodParameter4: in that section.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2018-09-01 02:38:57]
Devil_On_WallStreet - Posts: 67
I looked over the entire page... there are 12 different "Renko New Bar Modes" in the Chart Settings. No where in the documentation for s_BarPeriod::IntradayChartBarPeriodParameter4 does it mention how to specify which of the 12 I mean you list the chart bar periods
IBPT_VOLUME_PER_BAR = 1
IBPT_NUM_TRADES_PER_BAR = 2
IBPT_RANGE_IN_TICKS_STANDARD = 3
IBPT_RANGE_IN_TICKS_NEWBAR_ON_RANGEMET = 4
IBPT_RANGE_IN_TICKS_TRUE = 5
etc....

What about the different Renko New Bar Modes???
[2018-09-01 02:57:51]
Sierra Chart Engineering - Posts: 104368
    enum RenkoBarNewBarModeEnum : t_Byte
    { NEW_TREND_BAR_WHEN_EXCEEDED_NEW_REVERSAL_BAR_WHEN_REVERSAL_AMOUNT_MET = 0
    , NEW_TREND_BAR_WHEN_EXCEEDED_NEW_BAR_WHEN_OPEN_CROSSED = 1
    , NEW_TREND_BAR_WHEN_EXCEEDED_NEW_REVERSAL_BAR_WHEN_REVERSAL_AMOUNT_MET_PLUS_1_TICK = 2
    , NEW_TREND_BAR_WHEN_RANGE_MET_NEW_REVERSAL_BAR_WHEN_REVERSAL_AMOUNT_MET = 3
    , NEW_TREND_BAR_WHEN_RANGE_MET_NEW_BAR_WHEN_OPEN_CROSSED = 4
    , NEW_TREND_BAR_WHEN_RANGE_MET_NEW_REVERSAL_BAR_WHEN_REVERSAL_AMOUNT_MET_PLUS_1_TICK = 5
    , NEW_TREND_BAR_AFTER_RANGE_MET_NEW_REVERSAL_BAR_WHEN_REVERSAL_AMOUNT_MET = 6
    , NEW_TREND_BAR_AFTER_RANGE_MET_NEW_BAR_WHEN_OPEN_CROSSED = 7
    , NEW_TREND_BAR_AFTER_RANGE_MET_NEW_REVERSAL_BAR_WHEN_REVERSAL_AMOUNT_MET_PLUS_1_TICK = 8
    , NEW_TREND_BAR_AFTER_RANGE_MET_ALLOW_CHANGE_OF_DIRECTION_OF_CURRENT_BAR = 9
    , NEW_TREND_BAR_AFTER_RANGE_MET_NEW_REVERSAL_BAR_WHEN_REVERSAL_AMOUNT_MET_FIRST_TREND_BAR_SAME_LENGTH_REVERSAL = 10
    , NEW_TREND_BAR_WHEN_EXCEEDED_NEW_REVERSAL_BAR_WHEN_REVERSAL_AMOUNT_MET_PLUS_1_TICK_FIRST_TREND_BAR_SAME_LENGTH_REVERSAL = 11

}

Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2018-09-01 02:58:03

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account