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)
Never worked with paintbars before and am still new to programming. In Multicharts I am trying to paint/color the bars of a 24 hour chart that aren't during regular session hours a different color. I've tried this but nothing happens:
Inputs:
starttime(1516),endtime(829);
IfCurrentTime>starttimeandCurrentTime<endtimethen
PlotPaintBar(High,Low,Open,Close,"",Red)
I'm sure I'm doing something simple wrong but I don't have a clue! Thanks!
Can you help answer these questions from other members on NexusFi?
I see several problems:
- your code does not respect MultiCharts syntax, it does not compile
- your start time is after your end time
- CurrentTime refers to the time of the computer whereas you should refer to the time of the bar (Time).
Thanks Nicolas. This sort of works but now it paints the regular session instead of the after hours session. Maybe I need to have it change the bar color from 1516 to 2400 and then again from 0 to 829? I'll try that. Thanks for your help.