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

[amibroker] Re: crossing in a custom indicator



PureBytes Links

Trading Reference Links


I believe you need to include the code for your customer indicator in 
your AFL trading formula in order for cross to work.





--- In amibroker@xxxxxxxxxxxxxxx, "mikelaurataylor" 
<mikelaurataylor@xxxx> wrote:
> 
> Thanks
> 
> --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> > Cross just produces a true/false signal for the conditions in 
each 
> bar
> > 
> > Maybe you want to use it to keep track of the value of an price 
> when
> > the indicators cross
> > eg
> > 
> > Occurence = Cross(MACD(),Signal());
> > Plot(C,"price",colorBlack,styleBar);
> > Plot( ValueWhen(Occurence, C ), "CrossValue", colorBlue, 
> styleStaircase);
> > PlotShapes(shapeUpArrow*Occurence, colorGreen, 0,L,-10);
> > 
> > On Mon, 31 Jan 2005 22:42:12 -0000, mikelaurataylor
> > <mikelaurataylor@xxxx> wrote:
> > > 
> > > 
> > > Newbie; trying to do my first programming.
> > > 
> > > I wanted to incorporate an indicator I like on prophet.net 
called
> > > Stochasitc Momentum Index (SMI).  I found the code on line for
> > > creating an indicator for this and the graphing works great.
> > > 
> > > The indicator has 2 lines like the MACD and I want to test for 
> when
> > > they cross.
> > > 
> > > I know w/ some indicators you can just use "Cross" to create a
> > > buy/sell.  Was wondering if you can do the same thing with a 
> custom
> > > indicator; in other words, just issue a "cross" of the SMI - 
or -
> > > whether you need to program the line information into the the
> > > program you are testing.
> > > 
> > > Hope this makes sense.
> > > 
> > > Thanks
> > > 
> > > Mike
> > > 
> > > 
> > > 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
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> > 
> > -- 
> > Cheers
> > Graham
> > http://e-wire.net.au/~eb_kavan/





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/