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

Re: Fw: FileAppend Function



PureBytes Links

Trading Reference Links

          
There's probably a much cleaner way to do this, but this should work:
      
If (MP[1]=1 and MP= -1) OR (MP[1]=1 and MP=0) OR (MP[1]= -1 and MP=1) OR
(MP[1]= -1 and MP=0) then...
           
------------------------------------ 
At 12:16 PM 5/25/98 -0700, you wrote:
>Last trade means the last trade in a series.  I want my FileAppend to work
>on the bar after the system goes long to short, long to flat, short to long
>or short to flat.  Last bar just refers to last bar of the price series.  In
>the case of this particular system the last trade is closed before the last
>bar because I have have inserted code to close out the last trade based on a
>date condition.
>
>Note that If MP[1] <> 0 and MP = 0 does not work in the case where the
>system goes directly from being long to short or vice versa.
>
>
>