Hello & Welcome on board !!! :-)
Please note:
Before you can post a message on the forum you need to REGISTER to get a unique GiG username (Totally Free!). Feel free to look around - just start browsing any of the sections from the home page of GiG. Join the community!.
Here you can discuss/request mql4 code, how to code in MQL…
  • User avatar
  • User avatar
User avatar
By Geko
#273
Today, I inaugurate the coding tips forum.

In the future, we will try to share coding tips to improve or adds functionality to your MT4 tools.

Let’s start with a basic idea.

With this piece of code, you can change your chart’s foreground colour to highlight the current trend or a potential setup.

Here the code:
Code: Select all
extern string     AA01                    = "Foreground color in line with Trend"; 
extern string     AA02                    = "==== Chart Foreground settings ====";
extern bool       Change_Chart_Foreground = true;
extern color      Foreground_neutral      = White;
extern color      Foreground_up           = ForestGreen;
extern color      Foreground_down         = Maroon;

if(Change_Chart_Foreground)
{
      ChartSetInteger(0, CHART_COLOR_FOREGROUND, Foreground_neutral);

      if(Trend is up)         ChartSetInteger(0, CHART_COLOR_FOREGROUND, Foreground_up);
      else if(Trend is down)  ChartSetInteger(0, CHART_COLOR_FOREGROUND, Foreground_down);
}
Here the result:
FG.png
You do not have the required permissions to view the files attached to this post.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]