PureBytes Links
Trading Reference Links
|
Larry,
I'd suggest you use timeframeset, timeframerestore, and timeframeexpand to do your daily trend calcs (e.g. MA, ADX, etc.). It will look something like this:
//Find the trend in daily TimeFrameSet(inDaily); DailyTrendD = MA(C, 5) > MA(C, 34); TimeFrameRestore(); //Expand it out in current intra-day timeframe<FONT face="Courier
New"> DailyTrend = TimeFrameExpand(DailyTrendD, inDaily, expandLast);
Kind Regards,
Gary
Jayson <jcasavant@xxxxxxxxxxx> wrote:
Larry,
First you must define the trend. Then simply add the condition to your buy...
cond1= my definition of trend up;
cond2=my definition of trend dn;
buy=cond1 AND what ever else I want;
short=cond2 AND whatever else I want
Regards,
Jayson
-----Original Message-----From: larypowell [mailto:larypowell@xxxxxxxxxxxxx]Sent: Monday, March 22, 2004 1:08 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Trading Filter
I am trying to write a system for intraday trading that only trades in the direction of the daily trend. How do I write this? I am not even sure where to look in the help files, I check a few places. Is this possible?
Thanks,
Larry M. Powell
---------------------------------------------------------------------Eliminate annoying spam!My mailbox is protected by iHateSpam, the #1-rated spam buster.http://www.ihatespam.net
Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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 the Yahoo! Terms of Service.
|