Rwquired afl for oscilator setup

#1
DEAR FRIENDS

I want AFL for oscilator setup for following condition for trade on crossover---

Plot 20 period CCI with histgram & 3 period average CCI. Buy & sell signal will be generated when 3 period average cci cross 20 period cci.

Pl, AFL expert make this afl for forum members.

Pl, follw follwing attached image

Thanks

Pra
 
Last edited:
#2
Dear friend

pl, make & published this AFL as soon as possible because stock market well work on said condition both diretion in intraday, daily & weekly
 
#3
Here is your AFL:


_SECTION_BEGIN("CCI and AvgCCI System");
// Created by TIZ for Traderji Members
Period = Param("CCI Period", 20, 1, 200, 1);

MyCCI = CCI(Period);

AvgPeriod = Param("Avarage of CCI Period", 3, 1, 100, 1);

AvgCCI = MA(MyCCI, AvgPeriod);


Plot(MyCCI, "CCI", IIf(MyCCI>0, colorGreen, colorRed), styleHistogram);
Plot(MyCCI, "", colorRed, styleLine);
Plot(AvgCCI, "AvgCCI", colorWhite, styleLine);

Buy = Cross(MyCCI, AvgCCI); Sell = Cross(AvgCCI, MyCCI);
Short = Cross(AvgCCI, MyCCI); Cover = Cross(MyCCI, AvgCCI);

Buyshape = Buy * shapeUpArrow; SellShape = Sell * shapeDownArrow;
PlotShapes(BuyShape, colorGreen, 0, MyCCI); PlotShapes(SellShape, colorRed, 0, MyCCI);
_SECTION_END();
 
#4
Here is your AFL:


_SECTION_BEGIN("CCI and AvgCCI System");
// Created by TIZ for Traderji Members
Period = Param("CCI Period", 20, 1, 200, 1);

MyCCI = CCI(Period);

AvgPeriod = Param("Avarage of CCI Period", 3, 1, 100, 1);

AvgCCI = MA(MyCCI, AvgPeriod);


Plot(MyCCI, "CCI", IIf(MyCCI>0, colorGreen, colorRed), styleHistogram);
Plot(MyCCI, "", colorRed, styleLine);
Plot(AvgCCI, "AvgCCI", colorWhite, styleLine);

Buy = Cross(MyCCI, AvgCCI); Sell = Cross(AvgCCI, MyCCI);
Short = Cross(AvgCCI, MyCCI); Cover = Cross(MyCCI, AvgCCI);

Buyshape = Buy * shapeUpArrow; SellShape = Sell * shapeDownArrow;
PlotShapes(BuyShape, colorGreen, 0, MyCCI); PlotShapes(SellShape, colorRed, 0, MyCCI);
_SECTION_END();

Dear TIZ

Thanks for your cooperation for traderji members. Pl , make buy arrow when cci value @crossover time -200 or below & sell signal when +200 or above. After changes hope less oscilator whipsaw signal will be generated.

Pra
 
Last edited:

Similar threads