PureBytes Links
Trading Reference Links
|
William - Yes! and see my note back to him.
I was at a meeting a month ago where one of the speakers from my native state gave what was a testimonial to Tomasz, Amibroker and this great forum. He said since it's a world wide organization, he can post a question or a problem one night and wake up the next morning and someone has solved it and presented the answer.
This feels like what he spoke of. Well tomorrow is a Sunday and betas have been known to come out on Sunday afternoon, but I can wait.
Thanks for providing the example of the procedure call. I would guess that I could take a small step further and pass the moving average as a parameter either in the procedure call or as a variable; probably AND I didn't know that about providing a general area for the Include files.
Calling the function as follows:
Par1 = Param("MA Len", 30, 20, 50,1);
PlotPriceandMA ( Par1);
I don't think think performance is an issue, but for my part it would mean being organized and staying on top of the documentation and the inventory of procedures and functions.
Thanks again
JOE
----- Original Message -----
From: William Peters
To: Joe Landry
Sent: Saturday, September 18, 2004 5:38 PM
Subject: Re: [amibroker] Chart sheets and default display period
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
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
------------------------------------------------------------------------------
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
b.. To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/
|