How to update .afl code in all charts that contain it , once saved and verified in the Editor

0 votes
asked Jun 27, 2017 in AmiBroker by pyhrus
Usualy , with all the same type of platform I am used to   , once a strategy code or indicator code is compiled within its Editor, the modified code is automaticaly update for all charts that run it .

 Surprisingly  , it seems it is not the case with AmiBroker , and once an .afl code has been modified and saved in the Editor ,    one has to delete and paste back  manually the .afl code , in each chart that use it , to get it updated in all  charts .

What a boring task !

     Is there a way to automatically update .afl code in all charts that use it , once it has ben modified and saved in the Editor ?

Thanks for your answer .

1 Answer

0 votes
answered Jun 27, 2017 by fxshrat (1,200 points)

User error! You have to click APPLY (in editor) but not save in order to update chart pane AFLs!

It's all mentioned in the User's Guide, BTW.

commented Jun 29, 2017 by pyhrus
edited Jun 29, 2017
Thanks to precise us  what  the acronym 'BTW' stands for .

  How to delete the afl code of a graph , once it has been attached to a graph using the "APPLY" command as the 'delete' graph command is not active in such a case ?
commented Jun 29, 2017 by fxshrat (1,200 points)
edited Jun 29, 2017 by fxshrat
BTW ->

Sorry, but I don't understand the rest of your comment as it makes no sense to me. How does it relate to your first post? I thought you want to update your code.

Anyway which "delete" command do you mean? Do you mean the one if your right click the chart title? That one appears if your code is in between _Section_Begin() and _Section_End() functions.
Or do you mean "closing" a pane when you are talking about "delete"?

BTW, if you want to apply the very same formula to multiple chart panes then you have to use "insert linked" but not simple "insert" or double click in Chart window. Latter ones create copies of the "Charts" window one. Those AFL copies are located in hidden folder "Drag-Drop". So right click the AFL in Charts window and choose "insert linked" if you want to apply the very same original AFL to multiple chart/panes.  

Keep in mind though that if you delete code sections (code parts being within _Section_Begin() and _Section_End() in your AFL) of your "insert linked" AFL code via chart title right click "Delete" selection then they will be gone forever!

And again if you want to properly update your APPLIED code via Formula editor then click "Apply" but not "Save".
commented Jun 29, 2017 by fxshrat (1,200 points)
But maybe it would be better if you would explain PRECISELY what you are after overall and describing PRECISELY step by step what has been done already.

It's probably better going here
commented Jun 29, 2017 by fxshrat (1,200 points)
Here are two links in regards to "insert" and "insert linked" as well es "_Section_..."