MTF MACD CCI Strategy

Strategies are published here.

Moderator: admin

MTF MACD CCI Strategy

Postby Apprentice » Wed Nov 23, 2011 4:42 pm

MTF MACD CCI Strategy.png


Buying conditions:

1. cci [timeframe m5] > buy level {and}
2. macd[time frame m5] > signal [time frame m5] {and}
3. macd [time frame m5] < buy level {and}
4. cci[timeframe H1] > buy level {and}
5. macd[time frame H1] > signal [time frame H1] {and}
6. cci[time frame H4] > buy level {and}
7. macd[time frame H4] > signal [time frame H4] {and}
8. cci[time frame D1] > buy level {and}
9. macd[time frame D1] > signal [time frame D1]

Selling conditions:

1. cci [timeframe m5] < sell level
2. macd [time frame m5] < signal [time frame m5] {and}
3. macd [time frame m5] > sell level {and}
4. cci[timeframe H1] < sell level {and}
5. macd[time frame H1] < signal [time frame H1] {and}
6. cci[time frame H4] < sell level {and}
7. macd[time frame H4] < signal [time frame H4] {and}
8. cci[time frame D1] < sell level {and}
9. macd[time frame D1] < signal [time frame D1]

exit buy:

1. cci [timeframe m5] cross under buy level {or}
2. macd [time frame m5] cross under signal [time frame m5] {or}
3. cci[timeframe H1] cross under buy level {or}
4. macd[time frame H1] cross under signal [time frame H1] {or}
5. cci[time frame H4] cross under buy level {or}
6. macd[time frame H4] cross under signal [time frame H4] {or}
7. cci[time frame D1] cross under buy level {or}
8. macd[time frame D1] cross under signal [time frame D1]

exit sell:

1. cci [timeframe m5] cross over sell level {or}
2. macd [time frame m5] cross over signal [time frame m5] {or}
3. cci[timeframe H1] cross over sell level {or}
4. macd[time frame H1] cross over signal [time frame H1] {or}
5. cci[time frame H4] cross over sell level {or}
6. macd[time frame H4] cross over signal [time frame H4] {or}
7. cci[time frame D1] cross over sell level {or}
8. macd[time frame D1] cross over signal [time frame D1]

MTF MACD CCI Strategy.lua
(24.8 KiB) Downloaded 797 times


I have add an option to choose, whether you want to use the Exit rules.
Also try playing with the Allow Multiple option.
The results are significantly different.

MT4/MQ4 version.
viewtopic.php?f=38&t=70465
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27499
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MTF MACD CCI Strategy

Postby Stance » Wed Oct 21, 2015 3:03 pm

Hi,

I'm trying to modify this strategy to add additional conditions such as current closing price (timeframe 4) is higher than previous closing price (timeframe 4).

What is the correct way to do this? I'm trying the following but it's not working.

Source[4].close[Source[4].close:size()-2] > Source[4].close[Source[4].close:size()-3]
Stance
FXCodeBase: Initiate
 
Posts: 141
Joined: Mon Jun 01, 2015 4:34 pm

Re: MTF MACD CCI Strategy

Postby Apprentice » Thu Oct 22, 2015 4:49 am

Source[4].close[Source[4].close:size()-1] > Source[4].close[Source[4].close:size()-2]
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27499
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MTF MACD CCI Strategy

Postby Apprentice » Wed Dec 14, 2016 4:02 am

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

Re: MTF MACD CCI Strategy

Postby Claudio53 » Thu Sep 17, 2020 11:21 am

Hello everybody, could you please convert this strategy for MT4?
Claudio53
 
Posts: 3
Joined: Thu Sep 17, 2020 11:18 am

Re: MTF MACD CCI Strategy

Postby Apprentice » Fri Sep 18, 2020 3:01 am

Your request is added to the development list.
Development reference 2056.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27499
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: MTF MACD CCI Strategy

Postby Claudio53 » Sun Sep 27, 2020 4:47 am

Thank you for your reply, I saw that the strategy converted in mq4 has only one time frame, could you convert the multi time frame version?
Claudio53
 
Posts: 3
Joined: Thu Sep 17, 2020 11:18 am

Re: MTF MACD CCI Strategy

Postby Apprentice » Mon Sep 28, 2020 4:10 am

Your request is added to the development list.
Development reference 2118.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27499
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MTF MACD CCI Strategy

Postby Apprentice » Thu Oct 01, 2020 3:22 am

CCI_MACD_EA.mq4
(59.77 KiB) Downloaded 26 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27499
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 3 guests