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

[amibroker] Re: Index trend coding



PureBytes Links

Trading Reference Links

Hi Pal,

Thanks for responding. Post or send me your email address and I will 
send my full final code to you, on your request.

The code I gave you is not functional. I gave you only enough to see 
the problem and to see how I was going about it, so it will not work 
if tested "as is." I have maybe 6 other indicators the code 
references, that I did not give you.

Best regards,

Bman


--- In amibroker@xxxxxxxxxxxxxxx, "Pal Anand" <palsanand@xxxx> wrote:
> Thanks, I added the following, which I am not sure is what it 
should 
> be:
> 
> varTroughUptrend = IIf(C>Var200Resistance,1,0);
> 
> I also get the following errors:
> 
> Variable 'fish2' used without having been initialized.
> Variable 'vartdrei' used without having been initialized.
> Variable 'varoversoldsignal' used without having been initialized.
> Variable 'varvfebuy' used without having been initialized.
> Variable 'varvfiuptrend' used without having been initialized.
> Variable 'flsk' used without having been initialized.
> 
> Working on resolving it.  Maybe it is obvious, I somehow seem to 
> have missed it.
> 
> rgds, Pal
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Brian" <brian@xxxx> wrote:
> > Hi Pal,
> > 
> > Interesting code you posted -- thanks!
> > 
> > Here's what I have as of this moment. I just tested the results 
so 
> I 
> > know it works. This is just a code snippet... note that "fish9" 
in 
> > the Buy signal contains a variable from within the SetForeign-
> > created array.
> > 
> > /* 200EMA Detection */
> > Var200Support = IIf(C>1.05*EMA(C,200),1,0);
> > Var200Resistance = IIf(C<0.95*EMA(C,200),1,0);
> > 
> > /* IFT-RSI #3 */
> > SetForeign("$SPX");
> > 
> > pr9 = (H+L)/2;
> > Len9 = 10;
> > maxh9 = HHV(pr9,len9); 
> > minl9 = LLV(pr9,len9); 
> > Array19 = .33*2*((pr9-minl9)/(maxh9-minl9)-.5); 
> > val19 = AMA(Array19,.67); 
> > value19 = IIf(val19>.99,.999,IIf(val19<-.99,-.999,val19)); 
> > Array29 = .5*log((1+value19)/(1-value19)); 
> > fish9 = AMA(Array29,.5); 
> > Plot(0.20,"",colorRed,styleDots);
> > Plot(-0.20,"",colorGreen,styleDots);
> > 
> > RestorePriceArrays();
> > 
> > /// BUY SIGNAL ///
> > 
> > Buy = varTroughUptrend AND
> > C<20 AND
> > V>1000 AND
> > V>Ref(V,-1) AND
> > fish2<-0.20 AND
> > varTDREI<varOversoldSignal AND
> > varVFEBuy AND
> > VarVFIUptrend<1 AND
> > FLSK<20 AND
> > fish9<-0.20;
> > 
> > 
> > I'm playing with this same code, but trying to get it to work 
when 
> > scanning for multiple timeframes. The SPX "fish9" should be 
below 
> (-
> > 0.20) for both the hourly and the daily -- that's the goal at 
> least. 
> > I do have a multiple timeframe version of the "IFT-RSI #3" 
> indicator 
> > shown, but it's not posted above.
> > 
> > I will post more if I make any progress. I may not get back to 
> this 
> > until Sunday eve...
> > 
> > Thanks,
> > 
> > Bman



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/