PureBytes Links
Trading Reference Links
|
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
|