Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hi! I am quite new at EL programming and would like to get help on creating a MACD indicator to plot two MACD's with their individual parameters in the same pane as one code. Thank you.
Can you help answer these questions from other members on NexusFi?
when using two individual MACDs in the same pane using the same scaling doesn't work for you, take a look at the build in MACD indicator code. Just duplicate the code and add a 2 to all inputs and variables in the duplication part of the code.
This would be a quick and dirty approach, but it would do what you have in mind.
Thank you for your response. I (think) I tried your suggestion, but didn't get the result I was hoping for, but I believe you might have put me in the right direction. Let me explain my intention a little further. This is the beginning of a bigger plan for creating a strategy with multiple MACD's. Basically I have plotted multiple MACD's (with different parameters) in one pane (for visual purpose). I have done thorough studies of my system and although it's not the "Holy Grail", the results are quite astounding. Perhaps it is something that might interest you as well.
Please see the attached chart and give me your thoughts on it.
it looks okay from the screenshot, but it's a possibility that the scaling is different for all three MACDs.
You can compare this to a study where two MACDs come out of one indicator.
Thank you. As soon as I posted the last message, I went back and added the "2" that you had mentioned to wherever I thought it would make sense and I got the result I was looking for.
{ Alert criteria }
if MACDDiff crosses over 0 then
Alert( "Bullish alert" )
else if MACDDiff crosses under 0 then
Alert( "Bearish alert" ) ;
That's Part 1 of the strategy. Let me know if you would be interested in working with me on this strategy. I believe the results will quite surprise you