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

RE: [amibroker] Stop



PureBytes Links

Trading Reference Links




You 
will need the latest beta version  4.38, in order to use 
"If"...
<FONT face=Arial color=#0000ff 
size=2> 
To get 
it log into the member's area:
<FONT face=Arial color=#0000ff 
size=2> 
<SPAN 
class=140460218-15062003>                                
<A 
href="">http://www.amibroker.com/login.html

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: emarco 
  [mailto:emarco@xxxxxxxxxxxxxxx]Sent: Sunday, June 15, 2003 12:06 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker] 
  Stop
  Thxs Waltz
   
  My code is still with a 
  bug.
   
  here's the error (in the 
  pic)
  Thxs
   
  JB
  <BLOCKQUOTE 
  >
    ----- Original Message ----- 
    <DIV 
    >From: 
    <A title=WSCHWARZ@xxxxxxxxxxxxx 
    href="">walt 
    To: <A title=amibroker@xxxxxxxxxxxxxxx 
    href="">amibroker@xxxxxxxxxxxxxxx 
    Sent: Sunday, June 15, 2003 12:24 
    PM
    Subject: RE: [amibroker] Stop
    
    if ( 
    lastvalue(lb_gapInPlay)==1 )
    <FONT face=Arial 
    color=#0000ff>       ApplyStop( stopTypeLoss, 
    stopAmountPercent, 2.5, True ); 
    <FONT face=Arial color=#0000ff 
    size=2> 
    <FONT face=Arial color=#0000ff 
    size=2> 
    
      <FONT face=Tahoma 
      size=2>-----Original Message-----From: emarco 
      [mailto:emarco@xxxxxxxxxxxxxxx]Sent: Sunday, June 15, 2003 9:29 
      AMTo: <A 
      href="">amibroker@xxxxxxxxxxxxxxxSubject: 
      [amibroker] Stop
      
      Hi,
              
          I would like to place a stop of 2.5pts when <FONT 
      face="Times New Roman">"lb_gapinplay==<FONT 
      color=#ff00ff>1".
      How I do 
      that?
      thanks
      JB
       
       
      Buy = Cross(<FONT 
      color=#0000ff>ADX(14),<FONT 
      color=#ff00ff>20) AND PDI(<FONT 
      color=#ff00ff>14)>MDI(<FONT 
      color=#ff00ff>14) AND Lb_gapInPlay=<FONT 
      color=#ff00ff>0;
      Short = Cross(<FONT 
      color=#0000ff>ADX(14),<FONT 
      color=#ff00ff>20) AND PDI(<FONT 
      color=#ff00ff>14)<MDI(<FONT 
      color=#ff00ff>14) AND Lb_gapInPlay=<FONT 
      color=#ff00ff>0;
      Sell = Cross( <FONT 
      color=#0000ff>MA(Close,<FONT 
      color=#ff00ff>20),Close) OR <FONT 
      color=#0000ff>ADX(14)<<FONT 
      color=#ff00ff>20 OR IIf(<FONT 
      color=#0000ff>MA(Close,<FONT 
      color=#ff00ff>20)>=Low AND <FONT 
      color=#0000ff>Ref(MA(Close,<FONT 
      color=#ff00ff>20),-1)>=<FONT 
      color=#0000ff>Ref(Low,-1),<FONT 
      color=#ff00ff>1,0) OR <FONT 
      color=#0000ff>IIf(ADX(<FONT 
      color=#ff00ff>14)>20 AND <FONT 
      color=#0000ff>ADX(14) < <FONT 
      color=#0000ff>Ref(ADX(<FONT 
      color=#ff00ff>14),-1),<FONT 
      color=#ff00ff>1,0);
      Cover = Cross(Close,<FONT 
      color=#0000ff>MA(Close,20)) 
      OR ADX(<FONT 
      color=#ff00ff>14)<20 OR <FONT 
      color=#0000ff>IIf(MA(Close,<FONT 
      color=#ff00ff>20)<=High AND <FONT 
      color=#0000ff>Ref(MA(Close,<FONT 
      color=#ff00ff>20),-1)<=<FONT 
      color=#0000ff>Ref(High,-1),<FONT 
      color=#ff00ff>1,0) OR <FONT 
      color=#0000ff>IIf(ADX(<FONT 
      color=#ff00ff>14)>20 AND <FONT 
      color=#0000ff>ADX(14) < <FONT 
      color=#0000ff>Ref(ADX(<FONT 
      color=#ff00ff>14),-1),<FONT 
      color=#ff00ff>1,0);
      Buy=<FONT 
color=#0000ff>ExRem(Buy,Sell);
      Sell=<FONT 
      color=#0000ff>ExRem(Sell,Buy);
      Short=<FONT 
      color=#0000ff>ExRem(Short,Cover);
      Cover=<FONT 
      color=#0000ff>ExRem(Cover,Short);<FONT 
      face="Courier New">
      gapd=lb_gapinplay==<FONT 
      color=#ff00ff>1;
      if (gapd)
      {
      
      ApplyStop(<FONT 
      face="Courier New" color=#ff00ff>0<FONT face="Courier New" 
      color=#000000>,2<FONT 
      face="Courier New" color=#000000>,<FONT face="Courier New" 
      color=#ff00ff>2,<FONT 
      face="Courier New" color=#ff00ff>1<FONT 
      color=#000000>);
      }
       
      PositionValue = MarginDeposit = <FONT 
      color=#ff00ff>1;
      PositionSize = 1<FONT 
      size=2>;
      PointValue = 50<FONT 
      size=1>;Send 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 
      Your use of Yahoo! Groups is subject to the <A 
      href="">Yahoo! Terms of Service. 
      Send 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 
    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
    Send 
  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 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












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



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.