About difference "Pad and align" and Foreign()/SetForeign()

Hello Tomasz,

Could U tell how works setup "Pad'n'align' in AA, like Foreign/SetForeign like fixup=1 or fixup=2 or something else?

Kind Regards,

Pad and align already works as described in manual http://www.amibroker.com/guide/w_settings.html and it can only be turned on or off. Missing bars before first available bar are padded with Nulls, missing bars after first available bar are padded with previous bar data.

1 Like

These two serve different purposes.
Both work as described precisely in the documentation with engineering precision
Foreign - http://www.amibroker.com/f?foreign
Pad and align - http://www.amibroker.com/guide/w_settings.html

When manual says "holes are filled with previous bar data" it means precisely that. Nothing more nothing less. Previous bar data means just that, previous bar data. Verbatim copy of previous bar.

The manual, not the forum, is a primary source of information. Sorry but I spent years to write over 1000+ pages of the docs and I don't want to spend years to repeat the same over the forum. Everything you need to know about AmiBroker (including precise answer to your questions) is in the manual. Read carefully and don't skip any sentence. The manual is very detailed but it is concise, which means you just can't skip any word, because every word matters.