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

Re: MarketPosition



PureBytes Links

Trading Reference Links

       
If you're trying to work with MarketPosition values for current or previous
Bars, you can assign MarketPosition to a Variable and access values of that
-- example:
     
Vars: MP(0);
      
MP = MarketPosition;
     
Print(Date, "  MarketPosition=", MP);
If MP[1] = 0 and MP > 0 then Print("Long Position ",Date,Time," at
Bar#",CurrentBar);
         
-------------------------------------------------------- 
At 02:52 pm 12/21/97 +0800, you wrote:
>I have been receiving some confusing results using the el function
>MarketPosition.
>
>using the statement "IF MarketPosition(0)=-1 then
>...Print...MarketPosition(0)" to determine if I'm currently short, I
>never seem to get MarketPosition(0)=-1 even though TS displays many
>Short positions. The print is only there for debugging, but it always
>prints as 1.00.
>
>Are there any oddities about this function that it may be useful to know
>about? 
>
>Ta
>pete
>-- 
>Peter Hyde,  Information Management of W.A.   http://www.imwa.com.au
>===========================================
>PO Box 36 Armadale, 6112 Western Australia.     
>Email: peter@xxxxxxxxxxx
>
>Fax: +618 9497 7184
>
>Thankyou for considering Ostrich Farmer - The World's finest computer
>program for Ratite Farming
>Download a free demo of our award winning farming software
>ftp://imwa.com.au/pub/imwa/setup.exe
>
>===========================================================================
======================
>
>
>