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

coding help



PureBytes Links

Trading Reference Links

When a condition is met,  I want the exit price to be a value that was
calculated at the time the position was opened, which is different from the
price of the bar when the condition is met. How can I code this? 

For example, when there is one day to options expiration and the price is
below the strike price of a put, exit the position at the strike price, not
at the price of a bar.

Thanks in advance. 
Colin West
cwest@xxxxxxxxxxxx