Hi,
How do you change the bar colors and enter or exit when prices cross above or below a sma?
If the Close is > 50 day sma set the bar color to Green & buy at the closing price
If the Close is < 50 day sma set the bar color to Red & sell at the closing price
I really appreciate your support on this and all the posts here.
Size:
Color:
See SetBarColor in the QuickRef (F11).
Size:
Color:
I have been using this command but evidently incorrectly. This is the code that was created by "rules" and I've added the Setbarcolor:
CODE:
Please log in to see this code.
Size:
Color:
The main problem is that you're not using CODE tags, otherwise the code looks fine.
CODE:
Please log in to see this code.
Size:
Color:
Thank you for your help. I really appreciate it and this forum.
Size:
Color: