[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] CSI/UA data to AB (2 methods)



PureBytes Links

Trading Reference Links









Gary<font size=2
color=navy face=Arial>,  Thanks, I will give it a try.

 



<span
 >Larry M. Powell<span
> 



<span
>-----Original Message-----
From: <font size=2
 face=Tahoma>Gary A.
 Serkhoshian [mailto:serkhoshian777@xxxxxxxxx] 
Sent: Monday, March 22, 2004 7:27
AM
To: <font size=2
 face=Tahoma>amibroker@xxxxxxxxxxxxxxx<font
size=2 face=Tahoma>
Subject: RE: [amibroker] Trading
Filter

<span
> 



<span
>Larry,





<span
> 





<span
>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:





<span
> 





<font size=3 color=green
face="Courier New">//Find the trend in daily<font color=black
face="Courier New"> 
TimeFrameSet<font color=black
face="Courier New">(<span
>inDaily);    

   DailyTrendD =    <font
color=blue face="Courier New">MA<span
>(C, <span
>5<font
color=black face="Courier New">) > <span
>MA<font color=black
face="Courier New">(<span
>C, <font color=fuchsia
face="Courier New">34<font
color=black face="Courier New">); 

TimeFrameRestore<font color=black
face="Courier New">(); 

//Expand it out in current intra-day timeframe<font
color=black face="Courier
 New"> 
DailyTrend   =   <font color=blue
face="Courier
 New">TimeFrameExpand<span
>(DailyTrendD, <span
>inDaily, expandLast);






<span
> 





<span
>Kind Regards,





<span
>Gary





<span
> 





<span
>

Jayson
<jcasavant@xxxxxxxxxxx> wrote:







<span
>Larry,





<span
>First you must define the
trend. Then simply add the condition to your buy...





<span
> 





<span
>cond1= my definition of
trend up;





<span
>cond2=my definition of
trend dn;





<span
> 





<span
>buy=cond1 AND what ever
else I want;





<span
>short=cond2 AND whatever
else I want





<span
> 





<span
>Regards, 





<span
>Jayson 



-----Original
Message-----
From: larypowell
[mailto:larypowell@xxxxxxxxxxxxx]
Sent: Monday, March 22, 2004 1:08
AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Trading
Filter

<span
>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?  

<span
> 

<span
>Thanks,



<span
>Larry M. Powell



 










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 Sponsor


  ADVERTISEMENT 












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.