Hi
As per the title, I need a script, that when it is applied to a chart, it changes the colour of the current bars UP and DOWN to a static colour (for eg. AQUA).
I would like it set up preferably with HOTKEYS to interchange between 2 colours. So for eg. pressing the key "1" (or any pre-set hotkey) will change the bars (both Bar UP and Bar DOWN) to AQUA colour (colour 2).; By pressing key "2" (or the second preset hot-key) the bars will change back to original colour (colour 1).
I know this can be done my simply saving them as 2 different templates - however, by changing templates, I loose all the other data (trendlines, horizontal lines, etc) that were set on the first chart. So what I have been doing, is manually changing the bar colours by Right clicking, selecting properties, on the colors tab, and changing the BAR UP and BAR DOWN manually.
Here is a visual example of what I want:
This is an example of my original chart - Bar UP and DOWN set to the value "NONE" - say this would be my colour 1:
Then by pressing Hot-Key 1, the chart would change to look like below - Bar Up and DOWN set to the value "AQUA" - say this would be my colour 2:
Then by pressing Hot-Key 2, the chart goes back to my original colour (value = NONE ... colour 1):
Hence i can switch between these 2 colours constantly by using my hotkeys. Can someone code such a simple script or EA or similar? Would be great, and make things so much easier - instead of changing between colours manually.
Thanks
As per the title, I need a script, that when it is applied to a chart, it changes the colour of the current bars UP and DOWN to a static colour (for eg. AQUA).
I would like it set up preferably with HOTKEYS to interchange between 2 colours. So for eg. pressing the key "1" (or any pre-set hotkey) will change the bars (both Bar UP and Bar DOWN) to AQUA colour (colour 2).; By pressing key "2" (or the second preset hot-key) the bars will change back to original colour (colour 1).
I know this can be done my simply saving them as 2 different templates - however, by changing templates, I loose all the other data (trendlines, horizontal lines, etc) that were set on the first chart. So what I have been doing, is manually changing the bar colours by Right clicking, selecting properties, on the colors tab, and changing the BAR UP and BAR DOWN manually.
Here is a visual example of what I want:
This is an example of my original chart - Bar UP and DOWN set to the value "NONE" - say this would be my colour 1:
Then by pressing Hot-Key 1, the chart would change to look like below - Bar Up and DOWN set to the value "AQUA" - say this would be my colour 2:
Then by pressing Hot-Key 2, the chart goes back to my original colour (value = NONE ... colour 1):
Hence i can switch between these 2 colours constantly by using my hotkeys. Can someone code such a simple script or EA or similar? Would be great, and make things so much easier - instead of changing between colours manually.
Thanks