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)
I found a Moving Average Cross "cloud" see attached comparison. On the left is the Marty's code for the moving averages change color. Love the idea !!
On the right is a static code that can not be changed. These moving averages are pre coded at 5 and 21 and paints area in-between the 2 moving averages.
Can Marty's be coded to paint the area between the 2 moving averages and also label the moving average out at right end edge of the moving average?
Here is the code for the Paint Cloud 5 / 21 Moving Average on the right.
plot EMA5 = Average(close, 5);
plot EMA21 = Average(close, 21);
defineGlobalColor("cloud up",color.green);
defineGlobalColor("cloud down",color.red);
addcloud(EMA5,EMA21,globalColor("cloud up"),globalColor("cloud down"));
def crossUp = crosses(EMA5, EMA21, crossingDirection.ABOVE);
def crossDown = crosses(EMA5, EMA21, crossingDirection.BELOW);
plot signal = if crossUp then low-1*tickSize() else if crossDown then high+1*tickSize() else double.nan;
##assignPriceColor(if crossUp then color.yellow else if ##crossDown then color.white else color.current);
I love the idea of being able to select different moving averages and have it paint the cloud between them as well as label the moving averages. This would facilitate multiple comparisons easily.
Many Thanks.
Can you help answer these questions from other members on NexusFi?