New indicator regarding collor from lines
Forums › ProRealTime English forum › ProBuilder support › New indicator regarding collor from lines
- This topic has 15 replies, 5 voices, and was last updated 6 years ago by Realtime82.
-
-
11/25/2017 at 11:35 AM #53909
Hi guys,
I am no coder, therefor my question if my idea would be possible.
I have several indicators, such as MA, Dema, etc. I changed the collor for all the lines. So if the dema is positive, I got a green line.
Would it be possible to create an indicator who will give a signal when all those lines are green or red?
so for example. indicator X gives a signal when 3 other types of indiactors (lines) are all red or green.
I have tried it allready with a screener, but it is not possible to give a signal when the collor is changing.
Thanks for any help.
11/25/2017 at 11:48 AM #5391011/25/2017 at 1:21 PM #53921Ok thanks, what kind of specifics do you need to know? (sorry for my neewbie questions)
11/25/2017 at 2:35 PM #5392611/25/2017 at 2:52 PM #53928Hi, I put an image attached, this is what I mean.
so if both indicators are green (or red) I will have a signal. (dema and bressert).
Thanks.
11/27/2017 at 4:14 PM #54139would it be possible or not?
11/27/2017 at 5:38 PM #54157Of course and Wing has perfectly answered already 🙂
So what you want is a synthesis of these 2 colors and at the same time ? To be clear, both these indicators are green (or red) because their actual values are ascending or declining since the last period.
11/27/2017 at 6:43 PM #54190Hi Nicolas,
Yes that is correct, how can I code that in this example? Because I tried it with some not standard indicators, and then I get some errors. Only the standard dema was possible.
Sorry for my newbie questions, very much appreciated for any help with this. 😉
11/28/2017 at 2:59 PM #5428211/29/2017 at 2:39 PM #54357I don’t know if you all understand what I am meaning.
I want to have a signal (via a new indicator) when all colors are the same color, so if in this example all 3 indicators are green, then I want to have a signal.
See new picture. If it is possible, what will be the entire code for this new indicator?
Thanks.
12/01/2017 at 3:25 PM #5448212/01/2017 at 3:40 PM #5448312/01/2017 at 3:45 PM #54485123456789101112131415// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter long positionsindicator1 = DEMA[21](close)indicator2 = DEMA[21](close)c1 = (indicator1 > indicator2[1])indicator3, ignored = CALL "True Strength Index"c2 = (indicator3 > indicator3[1])indicator4, ignored, ignored = CALL "PRC_Bressert Scalper Improved"c3 = (indicator4 > indicator4[1])IF c1 AND c2 AND c3 THENBUY 1 CONTRACT AT MARKETENDIFI think many people here asking for complete codes to do x y z would be better served watching some PRT tutorials on how to do this . I used the trade system creator to do this and it took all of 2 minutes after i found and installed the indicators . Its is a very easy process
12/02/2017 at 9:21 AM #54512I think many people here asking for complete codes to do x y z would be better served watching some PRT tutorials on how to do this . I used the trade system creator to do this and it took all of 2 minutes after i found and installed the indicators . Its is a very easy process
The old proverb comes to mind again about teaching people to fish rather than giving them a fish.
There are plenty of good books about fishing to be found on this website that should all be read before asking for a fish – but I guess some people just cannot get the whole concept of fishing and should probably give up and become vegetarian – as fishing is just not their thing.
Automated spread betting can be an expensive place for non-fishers!
Don’t give up Realtime82 – get reading and absorbing. It takes a lot of time and practice but nothing good was ever instant!
12/02/2017 at 3:16 PM #54541There are many people completely closed to programming, the site is for all categories, from the most neophytes to the most experienced, let us know the things ourselves 🙂
It’s great to help the people who ask for it, especially when we get a return, and that’s what happens most of the time, that’s why our community is a success (in my opinion ).@Brisvegas, thank you for taking the time to answer the question.
-
AuthorPosts
Find exclusive trading pro-tools on