![]() #property copyright "Copyright 2011, MetaQuotes Software Corp. | Copyright 2011, MetaQuotes Software Corp. | The N and Length (the length of color segments in bars) parameters are set in external parameters of the indicator for the possibility of manual configuration (the Parameters tab in the indicator's Properties window). Note that initially for plot1 with DRAW_COLOR_LINE the properties are set using the compiler directive #property, and then in the OnCalculate() function these three properties are set randomly. This allows you to quickly change the color once for the entire plotting, changing only a small array of colors using the PlotIndexSetInteger() function. ![]() All you need to do is set new colors in a special array. The example shows the feature of the "color" versions of indicators - to change the color of a line segment, you do not need to change values in the ColorLineColors buffer (which contains the color indexes). Plot_color_ind, // The index of the color, where we write the colorĬomm=comm StringFormat ( "LineColorIndex=%s \r\n" ,plot_color_ind, ColorToString (cols,true)) PlotIndexSetInteger (0, // The number of a graphical style Original concept by Olga Demina, also known as Winlinez and Color Linez. Build rows of 5 or more balls of one color to score. - Set the color for each index as the property PLOT_LINE_COLOR Click a ball, then click an empty square to move. These lines are removed from the board and you get more space to move orbs around. To score try to form a horizontal, vertical or diagonal line of five or more orbs of the same color. Three new orbs are added to the board after each move. - Get an index in the col array as a remainder of the integer devision Click to select an orb then click on empty tile to move selected orb to the new space. The line width and style change randomly every N5 ticks. - For each color index define a new color randomlyįor ( int plot_color_ind=0 plot_color_ind
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |