PureBytes Links
Trading Reference Links
|
Joe,
What more can be said after that post by Tomasz. I think we should wait and
see what he has lined up. He has really peeked my interest now :)
Just briefly, here is a simple procedure that you could put in the
file itself, I have named the file "IncludesFile.afl" in this example.
(I know your requirements encompass much more than this but its
worth knowing about anyway):
procedure PlotPriceAndMa(){
Plot( C, "Close", colorGreen, styleCandle );
Plot( MA( C, 30 ) , "MA(30)", colorGold, styleLine );
}
And here is how you would call that function from IB:
#include <IncludesFile.afl>
PlotPriceAndMa();
Also check in preferences\AFL to make sure that the 'Standard Include'
path points to the directory where you have saved your file.
You can also use functions to return values etc.
I dont know what the penalties are for using this approach, its
somethihg you will have to experiment with.
Regards,
William Peters
www.amitools.com
Saturday, September 18, 2004, 4:55:05 PM, you wrote:
JL> Thanks all - Bill Barnard and William Peters for the great recommendations-
JL> I have a friend who uses FastRube to a good effect by
JL> displaying multiple panels/panes to show the underlying value of a
JL> signal like RUTTR (stochastic, MACD, moving average) for example
JL> and I've reproduced this with AB but with the way I described
JL> it...reproducing all the forumulas 5 or 6 times and attaching them
JL> to all the panes and AA window. In a way I think that's how
JL> Windows work best and it maybe a difficult piece of code to
JL> generalize the launching of multiple panes from one unit of AFL,
JL> then placing and sizing panes or windows, then directing the data
JL> and displaying graphical lines in each pane.
JL> I have used Styleownscale quite a bit in working on this but
JL> still it got cluttered - in one case I moved the ADX plot with
JL> it's PDI and MDI crossing on another pane away from the Price
JL> Moving average pane. Of course the ADX parameter and the moving
JL> average parameter were defined in the backtesting forumula.
JL> I like William Peters idea of using includes to contain a
JL> common set of parameters/data statements(I believe I understood
JL> you to say) I believe there was a discussion about Caching
JL> versus not Caching of these INCLUDEd functions/data statements,
JL> wasn't there? I think the #pragma nocache will always bring up
JL> the most recent copy of the function Will take some planning but
JL> then there's no free lunch is there?
JL> Best regards
JL> JOE
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|