change chart background color....

Post Reply
thomasmore
Trader
Posts: 275
Joined: Tue Nov 15, 2011 10:35 pm
Location: Knokke, Belgium

change chart background color....

Post by thomasmore »

By that I mean: if the the trade is in profit: color the BG green, if in loss, color red. User inputs: ColorIn Profit, ColorInLoss.
Can someone find/code this?
Best regards,
Ludo
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

change chart background color....

Post by milanese »

ludowillems » Tue Mar 04, 2014 2:30 pm wrote:By that I mean: if the the trade is in profit: color the BG green, if in loss, color red. User inputs: ColorIn Profit, ColorInLoss.
Can someone find/code this?
Best regards,
Ludo
Hi Ludo,

here you go, it is an indicator(will only work with the new 6xx builds..)
ProfitColour_6xx.mq4
Cheers :)

Tommaso
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

change chart background color....

Post by milanese »

milanese » Tue Mar 04, 2014 3:31 pm wrote:
ludowillems » Tue Mar 04, 2014 2:30 pm wrote:By that I mean: if the the trade is in profit: color the BG green, if in loss, color red. User inputs: ColorIn Profit, ColorInLoss.
Can someone find/code this?
Best regards,
Ludo
Hi Ludo,

here you go, it is an indicator(will only work with the new 6xx builds..)

Cheers :)

Tommaso
and a version you can select if you want all equity profit used for color change or only the profit of the pair you attach the indicator, use OnlyThisPair=true; if you set it to false it shows all equity color.. I made this after re-reading your post as I think it will do what you asked for..

Cheers :)
ProfitColourA_6xx.mq4
Tommaso
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
thomasmore
Trader
Posts: 275
Joined: Tue Nov 15, 2011 10:35 pm
Location: Knokke, Belgium

change chart background color....

Post by thomasmore »

Grazie!
Post Reply

Return to “Indicators”