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

RE: [amibroker] Re: Variable scoping problem, I think



PureBytes Links

Trading Reference Links




<SPAN 
class=000495805-03022004>All,
<SPAN 
class=000495805-03022004> 
I did up what I call 
the 'R' channel that seems to capture any move fairly closely ( 
especially in relation to StochRSI and CMO tops and 
bottoms)
<SPAN 
class=000495805-03022004> 
I've looked at it 
from various symbols, markets and time frames and it stills seems to match 
fairly closely.
<SPAN 
class=000495805-03022004> 
I'm not good at 
coding limits and stops, yet.
It seems to notify 
fairly well, but I need some help coding the profitable exploitation of 
it.
<SPAN 
class=000495805-03022004> 
Market makers can 
exploit the spread.
<SPAN 
class=000495805-03022004>I am posting it with the 
hope the thread remains a positive and constructive learning experience for 
all.
<SPAN 
class=000495805-03022004>Let's see how creative we can 
be.
<SPAN 
class=000495805-03022004>And, In the end, profitable for 
all. 
<SPAN 
class=000495805-03022004> 
Thanks for your 
thoughts and the help in advance.
Attached in the 
.afl
<SPAN 
class=000495805-03022004> 
Mr  Valley 

<SPAN 
class=000495805-03022004> 

/* 'R' Channel */
/*Author Marc Valley */
 
Var = <FONT face=Arial color=#ff00ff 
size=1>4;
M1 = <FONT color=#0000ff 
size=1>MA(Max<FONT 
size=1>(H,Var ),2<FONT 
size=1>);
L1 = <FONT color=#0000ff 
size=1>MA(Min<FONT 
size=1>(L,Var ),2<FONT 
size=1>);
K = M1 - L1;
Num1 = <FONT face=Arial color=#0000ff 
size=1>sqrt(K);
Dem1 = <FONT color=#0000ff 
size=1>sqrt(<FONT color=#ff00ff 
size=1>1.00+K);
H1 = (Num1/Dem1)/<FONT face=Arial 
color=#ff00ff size=1>2;
Num2 = <FONT color=#0000ff 
size=1>sqrt(<FONT color=#ff00ff 
size=1>1.0);
Dem2 = <FONT color=#0000ff 
size=1>sqrt(<FONT color=#ff00ff 
size=1>1+K);
H2 = ((Num2/Dem2)/<FONT face=Arial 
color=#ff00ff size=1>2) 
*C;
H3 =(H1 + H2) ;
MAH2MA =<FONT color=#0000ff 
size=1>MA(L - (H2/<FONT color=#ff00ff 
size=1>100),Var );
MAH3MA= <FONT color=#0000ff 
size=1>MA(H + (H3/<FONT color=#ff00ff 
size=1>100) ,Var);
MA3 = (MAH3MA + MAH2MA) /<FONT face=Arial 
color=#ff00ff size=1>2;
UCL =( MAH3MA + MA3 )/<FONT face=Arial 
color=#ff00ff size=1>2;
LCL = (MA3 + MAH2MA )/<FONT 
color=#ff00ff size=1>2;<FONT color=#008000 
size=1>
//Buy = INSERT RULES HERE ;
//Sell = INSERT RULES HERE ;
//Cover = Buy;
//Short = Sell;
//Equity(1);<FONT 
color=#0000ff size=1>
Plot<FONT 
size=1>(Close,"Valley 'R' Channel 
Close",1<FONT 
size=1>,8<FONT 
size=1>);
//Plot(L,"Low",6,8);
//Plot(Close,"Close",1,64);<FONT 
color=#0000ff size=1>
Plot(MAH2MA 
,"H2",<FONT 
color=#ff00ff size=1>5,<FONT color=#ff00ff 
size=1>4);
Plot(MAH3MA 
,"H3",<FONT 
color=#ff00ff size=1>4,<FONT color=#ff00ff 
size=1>4);
Plot(MA3 
,"Center",<FONT 
color=#ff00ff size=1>2,<FONT color=#ff00ff 
size=1>4);
Plot(UCL 
,"UCL",<FONT 
color=#ff00ff size=1>10,<FONT color=#ff00ff 
size=1>4);
Plot(LCL 
,"LCL",<FONT 
color=#ff00ff size=1>10,<FONT color=#ff00ff 
size=1>4);<FONT face=Arial color=#008000 
size=1>
//Plot(Avg,"Valley 'R' Channel (C) 
2004 Avg",colorYellow,8);
 
////////////////////////////////// Market Trend Plot 
Section
//Plot(MA(C,18),"MA18",4,4);<FONT 
color=#0000ff size=1>
Plot<FONT 
size=1>(MA<FONT 
size=1>(C,40<FONT 
size=1>),"MA40"<FONT 
size=1>,7,<FONT 
color=#ff00ff size=1>4);<FONT 
color=#0000ff size=1>
Plot<FONT 
size=1>(MA<FONT 
size=1>(C,100<FONT 
size=1>),"MA100"<FONT 
size=1>,5,<FONT 
color=#ff00ff size=1>4);<FONT 
color=#0000ff size=1>
Plot<FONT 
size=1>(MA<FONT 
size=1>(C,200<FONT 
size=1>),"MA200"<FONT 
size=1>,6,<FONT 
color=#ff00ff size=1>4);<FONT 
color=#0000ff size=1>
Plot<FONT 
size=1>(Close ,"Close"<FONT 
size=1> + EncodeColor( 
colorBlack ) ,2, 
styleNoLine | styleNoRescale 
);
<SPAN 
class=000495805-03022004> 
Mr 
Valley


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.




Attachment:
'R' Channel.afl

Attachment: Description: "Description: Binary data"