PureBytes Links
Trading Reference Links
|
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 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.
|