| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Editing formula colors
Hi
i was looking at some indicator formulas and was wondering if anyone can help me change some color to a custom color. for example ObjectSet("H4 line", OBJPROP_COLOR, DimGray) the above is pretty straight forward if i want line to be black u just change dimgray to black, but how about if i want a custom color such as #464646 how to u do this? Thnx in advance |
|
||||
|
Color codes
Quote:
extern color CURRDAYColor = C'80,0,46' ; go into a standard indicator and click on a color to alter it to another shade and a pop up box appears with all the standard colors go down to the bottom of the box and click on custom and a new box appears the numbers in the right side list of red, green, blue are the numbers you can use in the code the variations are endless - have fun cja |
|
|||
|
thnx this is what i want...
i am not much of a programmer so not sure where to put the code in the bottom example ObjectSet("H4 line", OBJPROP_COLOR, DimGray); do i change the following only, OBJPROP_COLOR, DimGray to extern color CURRDAYColor = C'46,46,46' ; thnx in advance |
|
||||
|
Quote:
ObjectSet("H4 line", OBJPROP_COLOR, C'0x46,0x46,0x46); or before the ObjecSet line insert this line int myColor = C'0x46,0x46,0x46; and use it like this: ObjectSet("H4 line", OBJPROP_COLOR, myColor); |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MACD With colors | TheWicker | Indicators - Metatrader 4 | 7 | 04-14-2007 03:54 PM |
| Change MetaEditor Colors | barnix | Metatrader 4 | 0 | 02-24-2007 11:24 AM |
| One Line different Colors | forex_trader | Indicators - Metatrader 4 | 1 | 07-11-2006 12:58 AM |