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

Couple of Easy Language Questions



PureBytes Links

Trading Reference Links

Hello all,

I have a couple of easy language problems i am trying to solve, i hope someone can help me.

1.  I am trying to buy on the close of a bar and then exit on the first profitable open.  Code is something like,

If X happens then buy on close.
If open of next bar > close then exitlong market. ( or if open of next bar > entryprice then exitlong market).

The error message i get is that i cannot use open of next bar together with close.  If i just use open instead of open of next bar then i exit a day late.


2. I am setting conditionals such as

ConditionA = CondiitonB and  ConditionC;
If ConditionA then buy next bar at High stop;

The system correctly buys, but when ConditionA is met, an order does not come up for the next day, so i do not know the conditions have been met until the day after ( if i get into the trade, otherwise i can miss it altogether).

Thanks,

Tom.


--

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.