Hello, The formula IS CORRECT and it WORKS IN REAL TIME =========================================== It also works correcly in EOD and covers SHORTS too. ========================================
If you were not so lazy, you would check the documentation of Equity() function and you will quickly find out that it USES AUTOMATIC ANALYSIS SETTINGS as defined in Tools->Automatic Analysis->Settings. Specifically it uses: "Positions" and "Trade Delays" If you set "Positions" to LONG ONLY then it will of course IGNORE shorts. To handle shorts you need to switch "Positions" to "Long and Shorts" Also, if P&L is one day off it means that you have set TRADE DELAYS > 0 ================ Go to Tools->Automatic Analysis->Settings, "Trade" tab and change delays to ZERO ! Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: "matrix10014" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, August 26, 2008 8:15 PM Subject: [amibroker] Re: 'Rule Based' versus 'Discretionary' trading... >I am pretty sure the code does not function properly in EOD as > well.The P&L appears to be off by one day,and I can not cover my > shorts. > > > > --- In [email protected], "phlsti" <[EMAIL PROTECTED]> wrote: >> >> This AFL doesn't work for me in realtime, which is where I am all > day. >> It works on EOD static charts, but that is only limited help. >> Phil >> >> --- In [email protected], "Tomasz Janeczko" <groups@> wrote: >> > >> > Available (2006): >> > http://www.amibroker.com/kb/2006/05/06/discretionary-equity/ >> > >> > Best regards, >> > Tomasz Janeczko >> > amibroker.com >> > ----- Original Message ----- >> > From: "brian_z111" <brian_z111@> >> > To: <[email protected]> >> > Sent: Tuesday, August 26, 2008 10:34 AM >> > Subject: [amibroker] Re: 'Rule Based' versus 'Discretionary' > trading... >> > >> > >> > > > > ------------------------------------ > > 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroker.com/devlog/ > > For other support material please check also: > http://www.amibroker.com/support.html > Yahoo! Groups Links > > >
