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

Re: [amibroker] Re: Makes no sense??? or ???



PureBytes Links

Trading Reference Links

You can only run an exploration and get results relating to bars is to
run the search for signals for each bar. That sounds confusing?
What you have to do is run the search loop for each bar, ie have a
loop for the chart data outside the loop searching for signals.
here is sample, I have not included all your stuff
you will also need to add [i] to all the variables
it runs something like this, but you will need to get it to work properly

for(i=1;i<barcount;i++)
{
 alphai = "";
for( i = 0; i<27; i++ )
{
if (i==1) {alphai="A";}if (i==2) {alphai="B";}if (i==3) {alphai="C";}
if (i==4) {alphai="D";}if (i==5) {alphai="E";}if (i==6) {alphai="F";}
if (i==7) {alphai="G";}if (i==8) {alphai="H";}if (i==9) {alphai="I";}
if (i==10) {alphai="J";}if (i==11) {alphai="K";}if (i==12)
{alphai="L";}
if (i==13) {alphai="M";}if (i==14) {alphai="N";}if (i==15)
{alphai="O";}if (i==16) {alphai="P";}if (i==17) {alphai="Q";}if
(i==18) {alphai="R";}
if (i==19) {alphai="S";}if (i==20) {alphai="T";}if (i==21)
{alphai="U";}if (i==22) {alphai="V";}if (i==23) {alphai="W";}if
(i==24) {alphai="X";}
if (i==25) {alphai="Y";}if (i==26) {alphai="Z";}

trendCheckup("U"+alphai);

}
}

--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


On 10/14/05, coba702002 <coba702002@xxxxxxxxx> wrote:
> Graham...You are totally correct, that piece of code works correctly
> if I was smart enough to write it as you had suggested it.
>
> So now what i thought was working correctly isn't.
>
> I was trying to go back on my chart and draw trendlines for the
> preceeding 30days lets say, Which meant i would need the ability to
> have many study id's and that way go back and run an explore on
> those multiple hand drawn studys/trendlines.
>
> The only way i can get it to work now is if i call
> the "trendcheckup" procedure inside the for loop(see below). (that
> gives me the arrows on the chart for the crosses for multiple lines)
> BUT it doesn't allow me to run an explore on those points shown on
> the chart.
>
> If that makes any sense?
>
> Plot(CCI(14),"",colorBlack,styleLine|styleNoLabel);
>
> procedure trendCheckup(StudyID)
> {
>        global ass;
>        Linup = Study(StudyID,1148);
>        TLBUP = Cross(CCI(14),Linup);
>        PlotShapes( TLBUP*shapeUpArrow,colorBrightGreen,0,L,-20);
>        ass=TLBUP;
> }
>
> alphai = "";
> for( i = 0; i<27; i++ )
> {
> if (i==1) {alphai="A";}if (i==2) {alphai="B";}if (i==3) {alphai="C";}
> if (i==4) {alphai="D";}if (i==5) {alphai="E";}if (i==6) {alphai="F";}
> if (i==7) {alphai="G";}if (i==8) {alphai="H";}if (i==9) {alphai="I";}
> if (i==10) {alphai="J";}if (i==11) {alphai="K";}if (i==12)
> {alphai="L";}
> if (i==13) {alphai="M";}if (i==14) {alphai="N";}if (i==15)
> {alphai="O";}if (i==16) {alphai="P";}if (i==17) {alphai="Q";}if
> (i==18) {alphai="R";}
> if (i==19) {alphai="S";}if (i==20) {alphai="T";}if (i==21)
> {alphai="U";}if (i==22) {alphai="V";}if (i==23) {alphai="W";}if
> (i==24) {alphai="X";}
> if (i==25) {alphai="Y";}if (i==26) {alphai="Z";}
>
> trendCheckup("U"+alphai);
>
> }
>
> //trendCheckup("U"+alphai);
> trendCheckup("XY");
> Title = Name()+" "+ ass ;
>
>
>
> Buy = IIf(ass>0,1,0);
> Filter=Buy;
>
> AddColumn(CCI(14),"CCI",3.2);
> AddColumn(ass,"Buy",1);
>
>
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/