supremechaos had a neat idea the other day.... involved shining some light on dashboard creations.....
this is just to start the ball rolling.....
//----
we all code differently.... my preference is simplicty.... maximum amount of good with minimum amount of code..... this is done via loops....
//----
i've expanded the code greatly to make it more readable and for the steps to be easy to grasp....... also added some variables for various sized monitors....
the main structure is created in the 2 simple loops.... for(int i=0 and for(int j=0 .... those 2 loops set all the pairs and timeframes, the framework....
you would edit the pairs and timeframes in the arrays, symlist[] and time[]..... just add or subtract what you need....
the only thing left is the bar color in this case.... it is set by the color BarColor(string sym,int tf).....
that functon returns the color according to your rules.... i've included the pinbar and macd as examples..... just add your own topsecret indicators in the same manner.... as many as you like.... only takes a minute to include another.....
adding a timer will allow you to scroll thru all indicators at a speed of your choice..... just keep in mind some indicators can be a real load, so give it realistic time to calculate.... better to use multidimensional arrays than recalculate each time.....
threw in a picture of chess.... it, or almost any game, can be played across the internet using metatrader.... obviously a bit more indepth......
//----
anyhoo, this is just to start the ball rolling..... click on the picture....h
this is just to start the ball rolling.....
//----
we all code differently.... my preference is simplicty.... maximum amount of good with minimum amount of code..... this is done via loops....
//----
i've expanded the code greatly to make it more readable and for the steps to be easy to grasp....... also added some variables for various sized monitors....
the main structure is created in the 2 simple loops.... for(int i=0 and for(int j=0 .... those 2 loops set all the pairs and timeframes, the framework....
you would edit the pairs and timeframes in the arrays, symlist[] and time[]..... just add or subtract what you need....
the only thing left is the bar color in this case.... it is set by the color BarColor(string sym,int tf).....
that functon returns the color according to your rules.... i've included the pinbar and macd as examples..... just add your own topsecret indicators in the same manner.... as many as you like.... only takes a minute to include another.....
adding a timer will allow you to scroll thru all indicators at a speed of your choice..... just keep in mind some indicators can be a real load, so give it realistic time to calculate.... better to use multidimensional arrays than recalculate each time.....
threw in a picture of chess.... it, or almost any game, can be played across the internet using metatrader.... obviously a bit more indepth......
//----
anyhoo, this is just to start the ball rolling..... click on the picture....h
Attached File(s)
dashboard.mq4
7 KB
|
1,687 downloads
to trade and code, keep both simple... no call to impress....h