PureBytes Links
Trading Reference Links
|
Hello Oski,
For swing trading you can use both formulas, but
with CCI 20 and without CCI 6:
see below, I changed the formulas, so you can use
what you like. Maybe the second one is clear for you.
*****************************
Plot(CCI(20),"CCI 20",colorRed,styleLine|styleThick);
Plot(CCI(20),"",colorBlack,styleHistogram|styleThick);
Plot(200,"My line",colorOrange);
Plot(-200,"My line",colorOrange);
Plot(100,"My line",colorOrange);
Plot(-100,"My line",colorOrange);
Plot(0,"My line",colorYellow);
*****************************
/*red bars : downtrend
**green bars: uptrend
**blue bars : trading-range
*/
T = 20;
Title = "301-4 " + Name () + " " + FullName() + " "
+ "CCI" + " 20 " + "periods:" + WriteVal(T);
MaxGraph = 5;
Graph2 = CCI (T);
Uptrend = 100; Downtrend = -100;
Graph2BarColor = IIf (Graph2 > uptrend, 5,
IIf (Graph2 < downtrend,4,6));
Graph4 = Graph2;
Graph4Style = 4;
Buy = Cross (Graph2, 0) AND (Ref (Graph2,-1) < 0) AND (Ref
Z(Graph2,- 2) < 0)AND
(Ref (Graph2,-3) < 0) AND (LLV (RSI(9),10) < 30) AND Cross (RSI
(9),50);
Plot(200,"My line",colorOrange);
Plot(-200,"My line",colorOrange);
Plot(100,"My line",colorOrange);
Plot(-100,"My line",colorOrange);
Plot(0,"My line",colorBlack);
*****************************
Rgs,
Janco
--- In amibroker@xxxxxxxxxxxxxxx, "clubasx" <clubasx@xxxx> wrote:
> Hi Janco,
> In one of your e-mail you posted two Woddies CCI formulas and
because
> I don't have any knowledge on writing formulas I don't know which
one
> to use, that's way I will ask you for help. Could you please e-
mail
> me one whole Woddies CCI formula for swing trading?
> Thank you for your time. I greatly appreciated your help.
> Regards,
> Oski
>
> YOU WROTE;
>
> Here you have two versions of ther Woodie CCI:
> > >
> > > ***********************************************
> > >
> > > Plot(CCI(20),"",colorRed,styleLine|styleThick);
> > > Plot(CCI(20),"",colorBlack,styleHistogram|styleThick);
> > > Plot(200,"My line",colorOrange);
> > > Plot(-200,"My line",colorOrange);
> > > Plot(100,"My line",colorOrange);
> > > Plot(-100,"My line",colorOrange);
> > > Plot(0,"My line",colorYellow);
> > >
> > > ***********************************************
> > >
> > > /*red bars : downtrend
> > > **green bars: uptrend
> > > **blue bars : trading-range
> > > */
> > > T = 20;
> > > Title = "301-4 " + Name () + " " + FullName() + " "
> > > + "CCI" + " 20 " + "periods:" + WriteVal(T);
> > > MaxGraph = 5;
> > > Graph2 = CCI (T);
> > >
> > > Uptrend = 100; Downtrend = -100;
> > >
> > > Graph2BarColor = IIf (Graph2 > uptrend, 5,
> > > IIf (Graph2 < downtrend,4,6));
> > >
> > > Graph4 = Graph2;
> > > Graph4Style = 4;
> > >
> > > Buy = Cross (Graph2, 0) AND (Ref (Graph2,-1) < 0) AND (Ref
> (Graph2,-
> > > 2) < 0)AND
> > > (Ref (Graph2,-3) < 0) AND (LLV (RSI(9),10) < 30) AND Cross (RSI
> > > (9),50);
> > >
> > > Plot(200,"My line",colorOrange);
> > > Plot(-200,"My line",colorOrange);
> > > Plot(100,"My line",colorOrange);
> > > Plot(-100,"My line",colorOrange);
> > > Plot(0,"My line",colorBlack);
> > >
> > > ***********************************************
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
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:
http://docs.yahoo.com/info/terms/
|