Centred moving average Channel

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Re: Centred moving average Channel

Postby Apprentice » Mon Sep 01, 2014 10:59 am

Untitled.png

U can use No Line, Line Style Option.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Centred moving average Channel

Postby Apprentice » Mon Sep 01, 2014 11:39 am

Please test OCMA CMAC.
I have addressed all of your requests, with the exception of multiple channels.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Centred moving average Channel

Postby klutzy » Mon Sep 01, 2014 4:56 pm

"Please test OCMA CMAC." Where?
klutzy
 
Posts: 9
Joined: Mon Aug 25, 2014 2:25 pm

Re: Centred moving average Channel

Postby Apprentice » Tue Sep 02, 2014 2:25 am

Top Most (First) Post in this Topic.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Centred moving average Channel

Postby speakinmymind » Fri Sep 05, 2014 12:32 am

What is the difference between this and bollinger bands?
speakinmymind
FXCodeBase: Graduate
 
Posts: 320
Joined: Thu Feb 28, 2013 8:18 am

Re: Centred moving average Channel

Postby Apprentice » Fri Sep 05, 2014 1:57 am

Centred Moving Average Channel will use Centred Moving Average as base.
CMAC & CMAC OCMA will give you other methods for calculating the Channel.
(Pip, ATR, percentage)
Bollinger Bands only uses deviation.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Centred moving average Channel

Postby speakinmymind » Fri Sep 05, 2014 7:23 am

That is great, could you add levels like you did with the Multi-BB indicator? Thanks!
speakinmymind
FXCodeBase: Graduate
 
Posts: 320
Joined: Thu Feb 28, 2013 8:18 am


Re: Centred moving average Channel

Postby Apprentice » Tue Jul 11, 2017 1:35 pm

The indicator was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Centred moving average Channel

Postby Cactus » Thu Feb 01, 2018 10:18 pm

Hello Apprentice
Could you please develop this simple strategy using the CMAC indicator?
Much appreciated!

Strategy parameters
Allowed Side = Both
Allow Multiple Positions = True
Timeframe = 1 minute
Price soruce = Bid
Price type = Close

CMAC parameters
Period = Let user choose
Calculation mode = Static
Calculation type = "Percentage" (2)
Percentage range = Let user choose
Pip range = Let user choose

Buy condition
((source.open( 0 ) > CMAC.Bottom( 0 )) .and. (source.close( 0 ) < CMAC.Bottom( 0 )))
Sell condition
((source.open( 0 )<CMAC.Top( 0 )) .and. (source.close( 0 ) > CMAC.Top( 0 )))

Close long positions
(getBuyNetPL( symbol ) > var)
Close short positions
(getSellNetPL( symbol ) > var)


Functions
Code: Select all
function getBuyNetPL(sInstrument)
    local res;
    checkSummaryRow(sInstrument);
    res = mSummaries[sInstrument];
    if res == nil then
        return 0;
    else
        return res.BuyNetPL;
    end
end


Code: Select all
function getSellNetPL(sInstrument)
    local res;
    checkSummaryRow(sInstrument);
    res = mSummaries[sInstrument];
    if res == nil then
        return 0;
    else
        return res.SellNetPL;
    end
end
Never chase the money, let the money come to me
User avatar
Cactus
FXCodeBase: Graduate
 
Posts: 242
Joined: Fri Feb 19, 2016 11:46 am
Location: Errywhere

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Baidu [Spider] and 37 guests