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

[amibroker] Stop



PureBytes Links

Trading Reference Links





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(14)<<FONT 
color=#ff00ff>20 OR IIf(<FONT 
color=#0000ff>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=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
Short=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 = 1;
PositionSize = 1<FONT 
size=2>;
PointValue = 50<FONT 
size=1>;






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.