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

RE: [amibroker] Multiple Condition Stop



PureBytes Links

Trading Reference Links




<SPAN 
class=030165621-16122003>Try this, make certain your settings are correct or 
use
<SPAN 
class=030165621-16122003>buyprice=Open;
<SPAN 
class=030165621-16122003>settradedelays(1,0,1,0)
<FONT 
color=#ff0000> 
<FONT 
color=#ff0000>Sell<FONT 
color=#000000>=<FONT 
color=#0000ff>IIf(NoDrop,<SPAN 
class=030165621-16122003>Cross(<FONT 
color=#ff0000>BuyPrice*<SPAN 
class=030165621-16122003>0.95<SPAN 
class=030165621-16122003>,L),<SPAN 
class=030165621-16122003>Cross(L1x<SPAN 
class=030165621-16122003>,<FONT 
color=#ff0000>L));
 
 
Cheers,Graham<A 
href="">http://groups.msn.com/asxsharetrading<A 
href="">http://groups.msn.com/fmsaustralia 


  
  <FONT 
  face=Tahoma size=2>-----Original Message-----From: Ken Close 
  [mailto:closeks@xxxxxxxx] Sent: Wednesday, 17 December 2003 4:16 
  AMTo: AmiBroker ListSubject: [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 Sponsor












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.