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

RE: [amibroker] New system help please.



PureBytes Links

Trading Reference Links




<SPAN 
class=840174417-13032003>Marc,
<SPAN 
class=840174417-13032003> 
Here 
is an exploration. I think you will find it fairly rare that all your conditions 
occur simultaneously. You can also plot this code 
 <FONT 
color=#0000ff>
Filter=1<FONT color=#282828 
size=2>;
 <FONT 
face=Arial>
x=Cross(<FONT 
size=2>C<FONT 
size=2>,BBandTop(<FONT 
size=2>C<FONT 
size=2>,20,<FONT 
size=2>2<FONT color=#0000ff 
face=Arial>));
y=MA(<FONT 
size=2>OBV(),20<FONT 
size=2>)<0<FONT color=#282828 
size=2>;<FONT 
color=#000000 size=2>
Buy=BarsSince<FONT 
size=2>(x)==3 <FONT 
size=2>AND y AND 
C<Ref<FONT 
size=2>(C,-<FONT 
size=2>1<FONT color=#0000ff 
face=Arial>);
 
Plot(<FONT color=#000000 
size=2>C<FONT color=#282828 
size=2>,"Close"<FONT color=#282828 
size=2>,4<FONT color=#282828 
size=2>,styleCandle<FONT 
color=#282828 size=2>);<FONT color=#0000ff 
size=2>
Plot(<FONT color=#0000ff 
size=2>BBandTop(<FONT color=#000000 
size=2>C<FONT color=#282828 
size=2>,20<FONT color=#282828 
size=2>,2<FONT color=#282828 
size=2>),""<FONT color=#282828 
size=2>,5<FONT color=#282828 
size=2>,1<FONT color=#282828 
size=2>);<FONT color=#0000ff face=Arial 
size=2>
Plot(x,<FONT 
color=#ff00ff face=Arial size=2>""<FONT color=#282828 face=Arial 
size=2>,4<FONT color=#282828 
face=Arial size=2>,2<FONT 
color=#282828 face=Arial size=2>|<FONT color=#000000 face=Arial 
size=2>styleOwnScale<FONT color=#282828 face=Arial 
size=2>);
 
AddColumn(<FONT 
color=#000000 face=Arial size=2>Buy<FONT color=#282828 face=Arial 
size=2>,"Buy"<FONT 
color=#282828 face=Arial size=2>);<FONT 
face=Arial>
AddColumn(<FONT color=#0000ff 
size=2>BarsSince(x)==<FONT 
color=#ff00ff size=2>3,<FONT 
color=#ff00ff size=2>"cross"<FONT 
face=Arial>);
AddColumn(y,<FONT 
color=#ff00ff face=Arial size=2>"Neg OBV"<FONT color=#282828 face=Arial 
size=2>);
AddColumn(<FONT 
color=#000000 face=Arial size=2>C<FONT color=#282828 face=Arial 
size=2><Ref<FONT 
color=#282828 face=Arial size=2>(<FONT color=#000000 face=Arial 
size=2>C,-<FONT 
color=#ff00ff face=Arial size=2>1<FONT color=#282828 face=Arial 
size=2>),"Price down"<FONT 
color=#282828 face=Arial size=2>);
 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: marcdoolittle 
[mailto:marcd@xxxxxxxxxxxxxxxxxx]Sent: Thursday, March 13, 2003 12:38 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] New 
system help please.I posted this earlier today on 
Amibroker-ts mailing list butlooking at the dates of the posts I think this 
list will geta better response.  I am new to AFL so I would appreciate 
some help on the following system. (Still needs lots of work- inspired by an 
article I read interviewing John Bollinger).In words I would like to 
Short sell if1. The price of a stock crossed the BBandTop(20,2)2. The 20 
Day Average OBV was negative3. The stock closes lower three days after the 
cross.4. Cover when the stock crosses the BBandBot(20,2)The long 
selling is the oposite. Here is the codeShort = (Ref(H,-3) >= 
Ref(BBandTop(H,20,2),-3) AND Ref(MA(OBV(),20),-3) < 0 AND H < 
Ref(H,-3));Cover = Cross(C,BBandBot(C,20,2));Buy = (Ref(H,-3) <= 
Ref(BBandBot(H,20,2),-3) AND Ref(MA(OBV(),20),-3) > 0 AND H > 
Ref(H,-3));Sell = Cross(C,BBandTop(C,20,2));My question was 
basically- Is the code implementation correct? and also I would like to set 
my stop loss points at the pricewhen the stock crossed the Bollinger Bands 
three days ago I was looking at the ApplyStop Function but have not gotten 
anywhere. I would also like to make sure I buy on the Opening the following 
day. Thanks for any help. MarcSend 
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


  ADVERTISEMENT









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.