PureBytes Links
Trading Reference Links
|
Bodo
> I want to write an expert that gives the new stop values on an existing
position. Entering the position does *not* depend on technical analysis. How
can I write a formula that executes something like
>
> BarsSinceBuy();
>
> Example:
>
> on 27.12.01 I buy stock XYZ. If it does not reach a new 52-week-high
within 10 days after buying, I will sell it. The Expert shall give an alert.
How can I accomplish this?
Would something like this work?
{10 Day Target Failure}
Buy:=Year()=2001 AND Month()=8 AND DayOfMonth()=31;
Alert(Buy,11) AND Alert(Buy,10)=0 AND HHV(C,10)<HHV(C,252);
Roy
|