Hi all,
Was wondering if there's any generous people who could help me.
I want to edit the code of the attached price label so that it changes colour depending on the time of day. So I would like the colour to be red during 1130-1300 GMT, but green for all other hours. This is simply to alert me to this time of day as it isn't profitable based on my trading history - and editing this minimises clutter on my screen as it's already on there.
I assume it should just be a case of writing an if/else function, I initially looked at editing the existing function below as I don't use this:
//Change Price Colors
if (Select_changing_price_colors==True)
{
if (Bid > Old_Price) Default_StaticColor=PriceUP;
if (Bid < Old_Price) Default_StaticColor=PriceDOWN;
Old_Price=Bid;
}
But didn't have any luck because I'm f kin useless at programming.
Let me know if I need to clarify anything.
Thanks in advance, Nate
Was wondering if there's any generous people who could help me.
I want to edit the code of the attached price label so that it changes colour depending on the time of day. So I would like the colour to be red during 1130-1300 GMT, but green for all other hours. This is simply to alert me to this time of day as it isn't profitable based on my trading history - and editing this minimises clutter on my screen as it's already on there.
I assume it should just be a case of writing an if/else function, I initially looked at editing the existing function below as I don't use this:
//Change Price Colors
if (Select_changing_price_colors==True)
{
if (Bid > Old_Price) Default_StaticColor=PriceUP;
if (Bid < Old_Price) Default_StaticColor=PriceDOWN;
Old_Price=Bid;
}
But didn't have any luck because I'm f kin useless at programming.
Let me know if I need to clarify anything.
Thanks in advance, Nate
Attached File(s)
Market Price Bold Label.mq4
4 KB
|
280 downloads