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

[amibroker] Re: Multiple Condition Stop



PureBytes Links

Trading Reference Links

Hi,

too complicated for me but maybe you can find some clues here:
http://groups.yahoo.com/group/amibroker/message/53318

JS

--- In amibroker@xxxxxxxxxxxxxxx, "Ken Close" <closeks@xxxx> wrote:
> 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:
> 
> Buy=Enable;
> NoDrop=BarsSince(Buy)<5;
> Lookback=10;
> L1x=Ref(LLV(L,Lookback),-1);
> Sell=IIf(NoDrop,L<BuyPrice*.95,L<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 L<BuyPrice*.95,
> But this does not give me what I want.
> 
> I tried various ValueWhen constructions but did not get anywhere 
there
> either.
> 
> Can someone help?
> 
> Ken


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 Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/