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

Re: [amibroker] Exrem and Equity



PureBytes Links

Trading Reference Links

Beachie, it breaks the days down into factors of 5 with remainder. So
Day()%5==0;" means that whenever the day is a multiple of 5 the
condition is true
so when the day of the month is 5,10,15,20,15,30 the condition is true


On Fri, 22 Oct 2004 09:45:02 +1000, Beachie <beachie41@xxxxxxxxxxx> wrote:
> 
> Can't help with original question, but have one of my own :)
> What does the formula "Day()%5==0;" actually mean?
> 
> 
> 
> 
> ----- Original Message -----
> From: "kaveman perth" <kavemanperth@xxxxxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, October 22, 2004 8:32 AM
> Subject: [trading] [amibroker] Exrem and Equity
> 
> >
> > I have a formula that uses the exit price based on
> > HighestSince(Buy,H-xxx). I have noticed that using exrem or equity the
> > buy signals don't show in explore or on charts, but any value based on
> > them is affected
> > I notice that the exit price which by its definition should only ever
> > rise, not fall, until the sell signal occur. But at subsequent buy
> > signals the exit price does fall even though these are not shown when
> > you are using equity(1) or exrem(buy,sell)
> > Has anyone come across this, and has a method to actually remove the
> > unwanted signals
> > Here is a small sample code to demonstrate
> >
> > Buy  = Day()%5==0;
> > Exit = HighestSince( Buy, H-3*ATR(14) );
> > Sell = Cross( Exit, C );
> >
> > //Buy = ExRem( Buy, Sell );
> > //Sell = ExRem( Sell, Buy );
> > Equity(1);
> >
> > Plot(C,"",colorBlack,styleBar);
> > PlotShapes(shapeUpArrow*Buy,colorGreen,0,L,-10);
> > PlotShapes(shapeDownArrow*Sell,colorRed,0,L,-10);
> > Plot( Exit, "Exitprice", colorViolet,styleDots|styleNoLine|styleNoRescale);
> >
> > Filter = 1;
> > AddColumn( Buy, "Buy", 1 );
> > AddColumn( Sell, "Sell", 1 );
> > AddColumn( Exit , "ExitPrice", 1.3);
> > AddColumn( exit<Ref(exit,-1) AND Buy==0, "check", 1);
> >
> > --
> > Cheers
> > Graham
> > http://e-wire.net.au/~eb_kavan/
> >
> >
> > 
> > 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
> >
> >
> >
> >
> >
> >
> >
> >
> 
> 
> 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 --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/