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

Re: [amibroker] Help with valuewhen and trough:



PureBytes Links

Trading Reference Links

what you have is the value of trough at the time Buy is signalled, ie
trough prior to Buy
Do you get additional buy signals after the initial one, if so these
will reset your sell condition


On Sun, 16 Jan 2005 07:52:45 -0800 (PST), kris45mar <kris45mar@xxxxxxxxx> wrote:
> 
> Hi All...
> 
> I want to set my initial hard stop at the second last
> pivot point low using the Trough function.
> 
> This is what I have tried:
> 
> buy = whatever;
> 
> initialStop = valuewhen(buy,trough(L,0.5,2),1);
> 
> sell = cross(initialStop,close);
> 
> when I test this on an individual stock to check the
> exits I find this is not as expected.
> I get sell arrows when the close has NOT crossed the
> value of initial stop.
> 
> I want the value of the second last trough at entry to
> stay FIXED.
> 
> Where am I going wrong?
> 
> How can I code this?
> 
> Regards
> 
> ChrisB
> 
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - What will yours do?
> http://my.yahoo.com
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/