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

How to code the OPEN of Tomorrow!



PureBytes Links

Trading Reference Links

Dear Netters,

After getting an entry signal, I would like to code how much money 
I invested and how much remained in cash. I wrote:

	Value1 = DollarstoShares(Cash);
	Buy Value1 Contracts at market;
	Cash = Cash - (Value1*@EntryPrice(1));

After getting the sell signal I wrote:

	exitlong at market;
	Cash = Cash +(CurrentContracts*@ExitPrice(1){Close});

Since these are market orders, I would like both @EntryPrice(1) 
and @ExitPrice(1) to be the open of tomorrow.

The trouble is they are not.

How should I code the open of tomorrow? I could not find that in the 
manuals.

Thank you very much,

Alfredo