Drag-drop creates new file (as documented)

Hello, hopefully you've got the solution already. I've just bumped into the same issue. In my case, it's in the path\to\AmiBroker\Formulas\Drag-drop_Price.afl, my formula is written into that file. Everytime I load the formula, it's copied into the bottom of the file. So it becomes duplicate function declaration in that file. I deleted it manually and it works again. I dunno why it's always appended to that file though.

@Hairo This is not a problem but by design a feature of Drag-&-Drop ( D&D).

When you D&D an AFL onto a pane, a copy of file is created in D&D folder.
All subsequent D&D of other indicators on same pane will be appended to that file and stored separately.

What this means? The original AFL files for individual indicators etc aren't modified by the collection is maintained separately for a user.
Read more https://www.amibroker.com/guide/h_dragdrop.html

1 Like

@Hairo - I wonder why on earth people like you simply don't read the documentation. Instead of guessing you should just ReadThisFineManual https://www.amibroker.com/guide/h_dragdrop.html

Entire TUTORIAL section http://www.amibroker.com/guide/tutorial.html is a MUST READ for every user. Without reading the tutorial you will be like a lost child.

2 Likes