CPR

Custom MT4 expert advisors published here.

Moderator: admin

CPR

Postby Apprentice » Fri Apr 01, 2022 2:21 am

CPR_MT5.png

Based on the request.
https://fxcodebase.com/code/viewtopic.php?f=27&p=144699
CPR.mq4
(46.13 KiB) Downloaded 234 times

CPR.mq5
(101.42 KiB) Downloaded 204 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: CPR

Postby logicgate » Mon Apr 24, 2023 8:34 am

Hello dear Friend Apprentice, I have a request to mod the CPR indicator with the addition of the Fibonacci mode.

I am attaching the Fibo Pivots code here so you can have a look.

Basically what I wanted was for you to merge this fibo pivot code into the existing CPR. You could make two versions so I can check what looks "better".

In one version you would be essentially making this a 2 in 1 indicator.

In the other version you would be making the CPR indicator also project fib levels but based on the CPR pivot formula, not the pivot formula contained inside the fibo pivots indicator. (so you take a look at the code to see how the fib levels are projected, and then apply that logic to the current CPR indicator too).

Then we would have these extra settings:

Show Fibo Pivots? Yes/No
Levels: (so we can custom fib levels)
Upper Fib Color
Upper Fib Line Style:
Lower Fib Color
Lower Fib Line Style:

Basically you are making available the same options inside the fibo pivots indicator, but of course we don't need the timeframe selection as it will share the same timeframe selection already available in CPR indicator.

Also, you can hard code the main pivot line of the fibo pivots formula to be invisible (hardcode color to NONE) as I am only interested in the projected fib levels. (and we already have the CPR main pivots so, no need for fibo main pivot line).

Best regards!
Attachments
Fibo pivots.mq5
(13.43 KiB) Downloaded 69 times
logicgate
FXCodeBase: Aspirant (Junior)
 
Posts: 680
Joined: Tue Dec 11, 2018 7:54 am

Re: CPR

Postby Apprentice » Wed Apr 26, 2023 1:24 pm

We have added your request to the development list.
Development reference 367.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to MT4 Expert Advisors

Who is online

Users browsing this forum: No registered users and 53 guests