PureBytes Links
Trading Reference Links
|
fine for me, just word wrapping from email wordwrap caused a problem, and
the variables R and S which I did not have
R=S=1; //whatever these are, I included to get correct check
Title= EncodeColor(colorBlue)+"Experiment"
+EncodeColor(colorBlack)+ " Open:"+O+" High:"+H
+" Low:"+L+" Close:"+C+EncodeColor(colorGreen)+"Rez:"+R
+EncodeColor(colorRed)+" Sup:"+S+EncodeColor(colorBlue)
+" \nDate: "+EncodeColor(colorRed)+Date();
--
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 14/07/06, Terry <MagicTH@xxxxxxxxxxx> wrote:
>
> You have missing " . See end of 2nd line where C+Encode? is all in
> purple/pink color indicating it's all text. I think your " problem begins at
> the end of the 1st line.
>
>
>
> --
>
> Terry
>
> -----Original Message-----
> *From:* amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] *On
> Behalf Of *M. Smith
> *Sent:* Thursday, July 13, 2006 09:30
> *To:* amibroker@xxxxxxxxxxxxxxx
> *Subject:* Re: [amibroker] ATR Trading System
>
>
>
> > *Title*=EncodeColor(*colorBlue*)+"Experiment"+EncodeColor(*colorBlack*)+
> "
>
> > *Open*:"+O+" *High*:"+H+" *Low*:"+L+" *Close*:
> "+C+EncodeColor(colorGreen)+"
>
> > Rez:"+R+EncodeColor(colorRed)+" Sup:"+S+EncodeColor(colorBlue)+
>
> > " \nDate: "+EncodeColor(*colorRed*)+Date();
>
> >
>
> >says syntax error, probably missing semicolon at the end of the previous
> line.
>
> can not see it. Can someone look and see if they can see the syntax error
> here.?
>
> ----- Original Message -----
>
> *From:* Ara Kaloustian <ara1@xxxxxxxxxx>
>
> *To:* amibroker@xxxxxxxxxxxxxxx
>
> *Sent:* Saturday, July 01, 2006 10:19 AM
>
> *Subject:* Re: [amibroker] ATR Trading System
>
>
>
> When you get an error, it probably means that the variable did not get a
> value because it is being defined inside a loop or if statement ... and in
> this case that statement did not get executed.
>
> I can not see an error in your code, but assign a value to var buy at the
> beginning of the program, so that it always has a value. Since you are
> using
> "R" as a variable to define buy, define "R" at the begininning with a
> value
> that will not create any buy signals (Use R= 9999999; and S = -9999999;)
> rather than R[0] = Close[0] ..
>
> ----- Original Message -----
> From: "dom1_1998" <Dom2000@xxxxxxxxxxx <Dom2000%40verizon.net>>
> To: <amibroker@xxxxxxxxxxxxxxx <amibroker%40yahoogroups.com>>
> Sent: Saturday, July 01, 2006 7:54 AM
> Subject: [amibroker] ATR Trading System
>
> > I'm trying scan using the ATR Trading system downloaded from the library
> > It prints about 12 results then I get an error msg. stating the var buy
> > used without having been initialized.
> >
> > I get no errors using the AFT check. Enclosed is the code:
> >
> > /*Writed & composed by Tudor Marcelin - Art Invest*/
> > k=1; /* multiplication factor*/
> > n=10; /*period*/
> > f=ATR(n);
> >
> >
> > R[0] = Close[0];
> >
> > S[0] = C[0];
> > for( i = 11; i < BarCount; i++ )
> > {
> >
> >
> > R[i]=R[i-1];
> > S[i]=S[i-1];
> >
> > if ( C[i-1] >R[i-1] )
> > {
> > r[i] = C[i-1]+k*f[i-1];
> > s[i]= C[i-1]-k*f[i-1];
> > }
> > if ( C[i-1] <S[i-1] )
> > {
> > r[i] = C[i-1]+k*f[i-1];
> > s[i]= C[i-1]-k*f[i-1];
> > }
> >
> >
> > Buy = Close > R;
> > Sell = Close < S;
> >
> > Cump=IIf(Close > R,1,0);
> > Vanz=IIf(Close < S,1,0);
> > }
> > Plot(Close,"Close",colorBlack,styleCandle);
> > Plot(R, "Rez:",colorGreen,styleDots|styleNoLine);
> > Plot(S, "Sup:",colorRed,styleDots|styleNoLine);
> >
> >
> > Buy = ExRem(Buy, Sell); //Elimina semnalele buy consecutive
> > Sell = ExRem( Sell, Buy ); //Elimina semnalele sell consecutive
> >
> > shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
> >
> > fig=Cump*shapeHollowUpArrow + Vanz*shapeHollowDownArrow;
> >
> > PlotShapes( fig, IIf( Cump, colorPaleGreen , colorPink), 0, IIf(
> > Cump, Low-50, High+50)); //Pentru a vizualiza semnalele consecutive
> > eliminate de ExRem
> > PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy,
> > Low-50, High+50));
> >
> > AlertIf( Buy, "", "Experiment", 1 );
> > AlertIf( Sell, "", "Experiment",2);
> >
> > GraphXSpace = 3;
> >
> > Title=EncodeColor(colorBlue)+"Experiment"+EncodeColor(colorBlack)+ "
> > Open:"+O+" High:"+H+" Low:"+L+" Close:"+C+EncodeColor(colorGreen)+"
> > Rez:"+R+EncodeColor(colorRed)+" Sup:"+S+EncodeColor(colorBlue)+
> > " \nDate: "+EncodeColor(colorRed)+Date();
> >
> >
> >
> >
> >
> >
> >
> > 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
> >
> >
> >
> >
> >
>
>
>
|