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

Re: [amibroker] Re: Summing question



PureBytes Links

Trading Reference Links


Eric,
 
Try
 
Positionscore = IIF(EMAOK, yourscore, 0);
 
Regards,
Garyeleake@xxxxxxxxxxxxxxxxxx wrote:
Thanks for the reply fellas, I have no idea why this wasn't working earlier, but it is now. Sticking with this rotational mode, am I to understand that the ONLY exit signals one can use in this mode, is when a security falls out of the "n" rank? I would like to use an EMA as a secondary exit in this system. Is this possible?VERY greatful for the help by the way!-Eric.--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:> Thanks Gary, been up for hours here though, and the ASX market already> started in the east states, even had breakfast :)>  > Just to add to this, the column heading determines the width of the column> when you first do the explore. With just "rs1" it was not wide enough to fit> the numbers below. so I just added some ----'s to widen the
 column.>  > The 1.2 determines the number of decimal places to show, in this case 2> decimal places. A single 1 means no decimal places.>  >  > > Cheers,> Graham> http://groups.msn.com/asxsharetrading> http://groups.msn.com/fmsaustralia > > -----Original Message-----> From: Gary A. Serkhoshian [mailto:serkhoshian777@xxxx] > Sent: Wednesday, 17 December 2003 8:37 AM> To: amibroker@xxxxxxxxxxxxxxx> Subject: Re: [amibroker] Re: Summing question> > > Eric,>  > Graham is probably fast asleep as he's down-under, but I don't think he'll> mind if I speak for him on this : )>  > What is the "----">  > It's just part of the label.  Everything between quotes is a column
 label.> > what is the "1.2"?> > It indicates the width of the column, and the number of decimal places.>  > Here's the help file :>  > AddColumn( array, name, format = 1.2, textColor = colorDefault, bkgndColor => colorDefault )> >  > > eleake@xxxx wrote:> > Can you explain the changes you made to the AddColum statements?> > I had AddColumn (RS1, "RS1);> You have AddColumn (rs1, "rs----1", 1.2);> > What is the "----" and what is the "1.2"?> > -Eric.> > > --- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:> > I checked it on my eod databse and the sum works ok> > RS1 = ROC(Close, 260); //Optimize("ROC",28,20,120,15);> > RS2 = ROC(Close, 130);> > RS3 = ROC(Close, 65);> > RS4 = ROC(Close, 20);> > > > RS
 = RS1 + RS2 + RS3 + RS4;> > Filter=1;> > AddColumn(rs1,"rs----1",1.2);> > AddColumn(rs2,"rs----2",1.2);> > AddColumn(rs3,"rs----3",1.2);> > AddColumn(rs4,"rs----4",1.2);> > AddColumn(rs,"rs---all",1.2);> > > > If you are doing it in daily mode in your intraday database do you > have 260> > days (12 months) of data?> > > > I have nearly 12 months of data in my intraday, so I changed the > first to> > 200 days and it worked. If you have less than the longest timespan > then you> > Null result> > TimeFrameSet(inDaily);> > RS1 = ROC(Close, 200); //Optimize("ROC",28,20,120,15);> > > > > > Cheers,> > Graham> > http://groups.msn.com/asxsharetrading> > <A
 href="">http://groups.msn.com/fmsaustralia > > > > -----Original Message-----> > From: eleake@xxxx [mailto:eleake@xxxx] > > Sent: Wednesday, 17 December 2003 7:52 AM> > To: amibroker@xxxxxxxxxxxxxxx> > Subject: [amibroker] Summing question> > > > > > Ok, I think I need to use up another one of my "dumb questions" > from > > my new user allotment. I am looking to sum 4 ROC periods into an > > index, but the following code only gives me the 240 number:> > > > EnableRotationalTrading();> > TimeFrameSet(inDaily); //Examine RS on a weekly basis> > RS1 = ROC(Close, 260); //Optimize("ROC",28,20,120,15);> > RS2 = ROC(Close, 130);> > RS3 = ROC(Close, 65);> > RS4 = ROC(Close, 20);> > > > RS = RS1 + RS2 + RS3 + RS4;> > > > I used
 AddColumn to display all four ROC periods in order to check > > the results, and the RS column is the same as the 240. > > RS=RS1+RS2+RS3+RS4; isn't summing the four periods.> > > > Secondly, the backtest report is showing trades being executed > > intraday-buying @11:05 and selling @12:15 on the same day. The > daily > > mode is set at the beginning of the code, and I have "daily" in > the > > settings.> > > > Whats up?> > > > -Eric. > > > > > > Send BUG REPORTS to bugs@xxxx> > Send SUGGESTIONS to suggest@xxxx> > -----------------------------------------> > 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:  > http://docs.yahoo.com/info/terms/> > > > Send BUG REPORTS to bugs@xxxx> Send SUGGESTIONS to suggest@xxxx> -----------------------------------------> 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 > > > >   _____  > > 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> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> >   > > *      Your use of Yahoo! Groups is subject to the
 Yahoo! Terms of Service> <http://docs.yahoo.com/info/terms/> . > > > > >   _____  > > Do you Yahoo!?> New> <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=21260/*http://photos.yahoo.> com> Yahoo! Photos - easier uploading and sharing > > Send BUG REPORTS to bugs@xxxx> Send SUGGESTIONS to suggest@xxxx> -----------------------------------------> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx > (Web page: http://groups.yahoo.com/group/amiquote/messages/)> --------------------------------------------> Check group FAQ at:> <A
 href="">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> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> >   > > *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service> <http://docs.yahoo.com/info/terms/> .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 

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. 
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing


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.