Thanks so much, I'll try this out.

Cheers,
Rich


--- In amibroker@yahoogroups.com, "Edward Pottasch" <empotta...@...> 
wrote:
>
> fox,
> 
> valueSignificantDay = ValueWhen(C > O,C,1);
> 
> Buy = H > Ref(valueSignificantDay,-1);
> BuyPrice = Max(O,Ref(valueSignificantDay,-1));
> 
> 
> regards, ed
> 
> 
> 
>   ----- Original Message ----- 
>   From: foxblade2000invest 
>   To: amibroker@yahoogroups.com 
>   Sent: Tuesday, February 24, 2009 10:28 AM
>   Subject: [amibroker] coding a rule for break of the high of tyhe 
last up day.......
> 
> 
>   Can anyone help me with this......
> 
>   I want to add a rule to a trading system where the high of today 
is 
>   higher
>   than the close of the last "significant day". A significant day 
is 
>   just a
>   day when the close is greater than the open, but that may have 
been 
>   any time
>   in the last several days.
> 
>   Any suggestions appreciated, can anyopne help?
> 
>   Cheers,
>   Rich
>


Reply via email to