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

Re: FileAppend Entries and Exits



PureBytes Links

Trading Reference Links

BarsSinceExit uses one parameter to specify the number of positions ago (
not bars ago ) you which to reference.  BarsSinceExit or BarsSinceExit( 0 )
both represent the current position ( for which there is no exit ) and will
always return 0.  Zero is the default value the function returns when it
does not find the specified position ago.  Zero is also the value returned
if the current bar is/was the exit bar.

You will get more accurate output if you modify the EasyLanguage to
represent BarsSinceExit one position ago equals zero.  For example:

If (LastBarOnChart And BarsSinceExit(1) = 0) Then
  FileAppend(Append Stuff);

Other things that will complicate your output is the type of trade order the
signal is using ( i.e. Close, Market, Stop or Limit ).  Close orders cannot
be detected externally until the bar after the entry.  Market, Stop and
Limit orders can be detected at the close of the entry bar.


Best regards,

Benjamin Blanco
http://www.blancofamily.net/ezlang.htm

----- Original Message -----
From: "Elliot" <elliotdeane@xxxxxxxxx>
To: "Omega-List" <omega-list@xxxxxxxxxx>
Sent: Thursday, August 29, 2002 11:28 AM
Subject: FileAppend Entries and Exits


I am trying to append an entry to a file each time there is an entry or
an exit.  Problem is the appendage(?) either occurs one bar late or
every bar or all manner of other variations.  Also noticed problems
when an entry and exit occur on the same bar...  Here is what I'm
running at the moment:

If (LastBarOnChart And BarsSinceEntry = 0) Then
  FileAppend(Append Stuff);

If (LastBarOnChart And BarsSinceExit = 0) Then
  FileAppend(Append Stuff);

For some reason the barssinceexit side appends on every bar from the
exit bar till the next entry.

Thanks in advance for any assistance.

Elliot