PureBytes Links
Trading Reference Links
|
Ken,
How about:
ValueWhen(Buy, L) - 0.25
This assumes that you don't have multiple buy
signals before your sell signal or else your results will be messed
up.
HB
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Ken Close
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">AmiBroker List
Sent: Tuesday, December 16, 2003 3:15
PM
Subject: [amibroker] Multiple Condition
Stop
<FONT face="Courier New"
size=2>Hello:
Can someone
help me with this condition.
I would like to
set a stoploss that is 0.25 below the low of the day of my signal (with buy on
Open delay 1), hold this for several days and then switch to a trailing or
other stop.
Can you help
convert the first part of the following:
<FONT face="Courier New" color=#ff0000
size=2>Buy<SPAN
lang=en-us><FONT face="Courier New" color=#000000
size=2>=Enable<SPAN
lang=en-us><FONT face="Courier New" color=#008000
size=2>;<SPAN
lang=en-us>
<FONT face="Courier New" color=#000000
size=2>NoDrop=<SPAN
lang=en-us><FONT face="Courier New" color=#0000ff
size=2>BarsSince<SPAN
lang=en-us><FONT face="Courier New" color=#000000
size=2>(<SPAN
lang=en-us><FONT face="Courier New" color=#ff0000
size=2>Buy<SPAN
lang=en-us><FONT face="Courier New" color=#000000
size=2>)<<SPAN
lang=en-us><FONT face="Courier New" color=#ff00ff
size=2>5<SPAN
lang=en-us><FONT face="Courier New" color=#000000
size=2>;
<FONT face="Courier New" color=#000000
size=2>Lookback=<SPAN
lang=en-us><FONT face="Courier New" color=#ff00ff
size=2>10<SPAN
lang=en-us><FONT face="Courier New" color=#000000
size=2>;
<FONT face="Courier New" color=#000000
size=2>L1x=<SPAN
lang=en-us><FONT face="Courier New" color=#0000ff
size=2>Ref<SPAN
lang=en-us><FONT face="Courier New" color=#000000
size=2>(<SPAN
lang=en-us><FONT face="Courier New" color=#0000ff
size=2>LLV<SPAN
lang=en-us><FONT face="Courier New" color=#000000
size=2>(<SPAN
lang=en-us><FONT face="Courier New" color=#ff0000
size=2>L<SPAN
lang=en-us><FONT face="Courier New" color=#000000
size=2>,Lookback),-<SPAN
lang=en-us><FONT face="Courier New" color=#ff00ff
size=2>1<SPAN
lang=en-us><FONT face="Courier New" color=#000000
size=2>);
<FONT face="Courier New" color=#ff0000
size=2>Sell<FONT face="Courier New"
color=#000000 size=2>=<FONT
face="Courier New" color=#0000ff size=2>IIf<SPAN
lang=en-us><FONT face="Courier New" color=#000000
size=2>(NoDrop,<FONT face="Courier New"
color=#ff0000 size=2>L<FONT
face="Courier New" color=#000000 size=2><<SPAN
lang=en-us><FONT face="Courier New" color=#ff0000
size=2>BuyPrice<FONT face="Courier New"
color=#000000 size=2>*.95,<FONT
face="Courier New" color=#ff0000 size=2>L<SPAN
lang=en-us><FONT face="Courier New" color=#000000
size=2><L1x);
Because I do
not know how to set the condition to be 1/4 point below the Low of the signal
day, I substituted the above<FONT
face="Courier New" color=#008000 size=2>
L<SPAN
lang=en-us><FONT face="Courier New" color=#000000
size=2><<FONT face="Courier New"
color=#ff0000 size=2>BuyPrice<FONT
face="Courier New" color=#000000 size=2>*.95<SPAN
lang=en-us><FONT face="Courier New" color=#000000
size=2>,
<FONT face="Courier New" color=#000000
size=2>But this does not give me what I want.
<FONT face="Courier New" color=#000000
size=2>I tried various ValueWhen constructions but did not get anywhere there
either.
<FONT face="Courier New" color=#000000
size=2>Can someone help?
<FONT face="Courier New" color=#000000
size=2>KenSend BUG
REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
To visit your group on the web, go to:<A
href="">http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:<A
href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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 the Yahoo! Terms of Service.
|