Looking For Amibroker AFL Code for RANGE BAR setting

Hello,

At the moment there are only 5 types of Range Bar setting possible. At some point I run more than 5 symbole whose price are different so I need to set different range bar setting.

I need 20R, 50R, 100R, 150R, 120R, 40R, 500R, 1250R, 4000R, 7500R setting.

can anyone help t get the AFL code so that I can set from there.

BR//
Pradip

hello @pradipkumarmajumder

Automatically changes the range bars according to their name
there are 3 different ways in this afl.

    • One is with param()
    • Second is with IIF()
    • Third solution is with switch()

I recoment the switch() one

Wrong. There is UNLIMITED number of possible interval selections. You just TYPE 15R into Interval combo or whatever other interval.
image
Nothing else is required. You don't need to define in preferences. Just type interval and that's it.

I find it amusing when people instead of asking, make "statements" about AmiBroker even if their knowledge about AB is near zero.

3 Likes

that is true
Sorry Tomasz i forgot about Interval combo that is the most usefull

Thanks.

This I will built in AFL for scan and Backtest.

BR//
Pradip

Fantastic tips. Never thought that way.

Thanks Tomasz.

BR//
Pradip