Simple Coding Help - No Promise.

Hello Sir, I also need some help. I am grateful to this forum as I got good help from Happy Singh ji, Josh and others a number of times earlier. Again
I am a bit confused about how to do a little coding. I am still trying to learn afl coding. I need some guidance.
Up days are when Close is greater than previous day close. Down days are when close is less than previous day close.
I have to find sum:
For all Up days: I have to find difference of Close and last last close i.e C - Ref(C, -1) and then sum it over n period. Also sum of true range over this n period.
Similarly For down days: I have to find difference of Close and last last close i.e C - Ref(C, -1) and then sum it over n period.

How should I do it in afl? Pls help.
 
I found nice Volume AFL they make it with Amibroker 6.0 and I run this afl with amibroker 5.3 ... there is error at

PlotOHLC( AvgVol, AvgVol, AvgVol, AvgVol, "Avg.Vol", ParamColor( "Avg.ACCUM Color", colorViolet ), styleGradient );
and syntax error at
Ranking = PercentRank (Volume, 20) ;

Please helpme to repair

Anybody can helpme here is full afl:

// Boom Volume //
// ATURAN MAIN
//Volume Naik, Harga Naik = Buy|Positive|Bullish
//Volume Naik, Harga Turun= Sell and Cutloss|Negative|Bearish
//Volume Turun, Harga Turun= Buy on Weakness|Positive|Bullish
//Volume Turun, Harga Naik= Sell on Strong|Negative|Bearish

_SECTION_BEGIN("Boom Volume");

BV = IIf( (H==L), 0, V*(C-L)/(H-L) );
SV = IIf( (H==L), 0, V*(H-C)/(H-L) );
BVp = 100*BV/(BV+SV) ;
SVp = 100*SV/(BV+SV) ;

PlotOHLC(SV,SV,0,0,"SellVolume",colorRed,styleCandle|styleNoTitle|styleNoLabel );
PlotOHLC(SV,BV+SV,SV,BV+SV,"BuyVolume",colorgreen,styleCandle|styleNoTitle|styleNoLabel );

Va = MA(V,30);

BarColor = IIf( Volume > Ref( Volume, -1 ), Naik = ParamColor( "Volume Naik", colorGreen ), Turun = ParamColor( "Volume Turun", colorRed ) );

AvgVol = MA( Volume, 20 );
Op = 0;
Cl = Volume;
Hi = Volume;
Lo = 0;

PlotOHLC( AvgVol, AvgVol, AvgVol, AvgVol, "Avg.Vol", ParamColor( "Avg.ACCUM Color", colorViolet ), styleGradient );
SetBarFillColor( IIf( Volume > Ref( Volume, -1), Naik, Turun ) );
PlotOHLC( Op, Hi, Lo, Cl, _DEFAULT_NAME(), BarColor, styleCandle );

PlotOHLC( Va, Va, 0, 0, "", ColorBlend( colorWhite , GetChartBkColor(), 0.4 ), styleNoLabel | styleCloud | styleNoRescale, Null, Null, Null, -1 );
Plot(Va,"Average Volume",colorRose,styleNoLine|styleNoLabel );

VI = V/Va;

Title = EncodeColor(colorBrightGreen)+"Buy Volume = "+EncodeColor(colorBlack)+WriteVal(BV,5.0)+" "+EncodeColor(colorRed)+"Sell Volume = "+EncodeColor(colorBlack)+WriteVal(SV,5.0)+" "+EncodeColor(colorBlue)+"Net Volume = "+EncodeColor(colorBlack)+WriteVal(BV-SV,5.0)+" "+EncodeColor(colorGreen)+"Volume = "+EncodeColor(colorBlack)+WriteVal(V,5.0)+" "+EncodeColor(colorViolet)+"Average Volume = "+EncodeColor(colorBlack)+WriteVal(AvgVol)+" "+EncodeColor(colorOrange)+"Volume Index = "+EncodeColor(colorBlack)+WriteVal(VI,1.2)+" "+
EncodeColor(colorSeaGreen)+"Buy Volume = "+EncodeColor(colorBlack)+WriteVal(100*BV/(BV+SV),2.0)+"%"+" "+EncodeColor(colorDarkRed)+"Sell Volume = "+EncodeColor(colorBlack)+WriteVal(100*SV/(BV+SV),2.0)+"%";

_SECTION_END();

//Boom Volume Explore//

Positive = BV>SV ;
Negative = BV<SV ;

Good = (Positive AND Volume > AvgVol AND MACD()>Signal()) ;
Warning= (Negative AND Volume > AvgVol AND MACD()<Signal());

Buy = Ref(Good, -2) ;
Sell= Ref(Warning, 2) ;

Filter = Good OR Warning ;

AddTextColumn (WriteIf(Good, "Good", "Warning"), "Alert") ;
Ranking = PercentRank (Volume, 20) ;
WarnaText = colorBlack ;
WarnaBackGround = ColorHSB(Ranking * 64/100, 255, 255);
AddColumn (Ranking, "Ranking Volume", 1.2, WarnaText, WarnaBackGround, -1, Ranking) ;

Filter = 1 ;

AddColumn (Ref(C,-1), "Close H-1", 1.0) ;
AddColumn (C, "Close", 1.0) ;
AddColumn (BVp, "Buy Volume %", 1.0) ;
AddColumn (SVp, "Sell Volume %", 1.0) ;
AddColumn (V, "Today Volume", 1.0) ;
AddColumn (AvgVol, "Average Volume", 1.0) ;
AddColumn (Ref(V,-1), "Volume H-1", 1.0) ;
AddColumn (Ref(V,-2), "Volume H-2", 1.0) ;
AddColumn (Ref(V,-3), "Volume H-3", 1.0) ;

SetSortColumns (2, 3, -4) ;
 
I am sorry to post it again. I sought a little help from Happy Singh ji or any other expert at this forum. But there is no reply yet. Hence I am copying the post again.
Hello Sir, I also need some help. I am grateful to this forum as I got good help from Happy Singh ji, Josh and others a number of times earlier. Again
I am a bit confused about how to do a little coding. I am still trying to learn afl coding. I need some guidance.
Up days are when Close is greater than previous day close. Down days are when close is less than previous day close.
I have to find sum:
For all Up days: I have to find difference of Close and last close i.e C - Ref(C, -1) and then sum it over n period. Also sum of true range over this n period.
Similarly For down days: I have to find difference of Close and last last close i.e C - Ref(C, -1) and then sum it over n period.

How should I do it in afl? Pls help.
 
I have used plotgrid function to plot custom grid lines. My code is as follows but afl not showing gridlines above 1140.
Any correction needed to show all grid lines, please help

PlotGrid( 81, colorRed, 8, 1, 81 ); // dotted line 1 pixels thick, label
PlotGrid( 86, colorGreen, 10, 1, 86 ); // solid line 1 pixels thick, label
PlotGrid( 91, colorGreen, 10, 1, 91 ); // solid line 1 pixels thick, label
PlotGrid( 96, colorGreen, 10, 1, 96 ); // solid line 1 pixels thick, label
PlotGrid( 101, colorGreen, 10, 2, 101 ); // solid line 1 pixels thick, label
PlotGrid( 106, colorGreen, 10, 1, 106 ); // solid line 1 pixels thick, label
PlotGrid( 111, colorGreen, 10, 1, 111 ); // solid line 1 pixels thick, label
PlotGrid( 116, colorGreen, 10, 1, 116 ); // solid line 1 pixels thick, label
PlotGrid( 121, colorRed, 8, 1, 121 ); // dotted line 1 pixels thick, label
PlotGrid( 127, colorGreen, 10, 1, 127 ); // solid line 1 pixels thick, label
PlotGrid( 133, colorGreen, 10, 1, 133 ); // solid line 1 pixels thick, label
PlotGrid( 139, colorGreen, 10, 1, 139 ); // solid line 1 pixels thick, label
PlotGrid( 145, colorGreen, 10, 2, 145 ); // solid line 2 pixels thick, label
PlotGrid( 151, colorGreen, 10, 1, 151 ); // solid line 1 pixels thick, label
PlotGrid( 157, colorGreen, 10, 1, 157 ); // solid line 1 pixels thick, label
PlotGrid( 163, colorGreen, 10, 1, 163 ); // solid line 1 pixels thick, label
PlotGrid( 169, colorRed, 8, 1, 169 ); // dotted line 1 pixels thick, label
PlotGrid( 176, colorGreen, 10, 1, 176 ); // solid line 1 pixels thick, label
PlotGrid( 183, colorGreen, 10, 1, 183 ); // solid line 1 pixels thick, label
PlotGrid( 190, colorGreen, 10, 1, 190 ); // solid line 1 pixels thick, label
PlotGrid( 197, colorGreen, 10, 2, 197 ); // solid line 2 pixels thick, label
PlotGrid( 204, colorGreen, 10, 1, 204 ); // solid line 1 pixels thick, label
PlotGrid( 211, colorGreen, 10, 1, 211 ); // solid line 1 pixels thick, label
PlotGrid( 218, colorGreen, 10, 1, 218 ); // solid line 1 pixels thick, label
PlotGrid( 225, colorRed, 8, 1, 225 ); // dotted line 1 pixels thick, label
PlotGrid( 233, colorGreen, 10, 1, 233 ); // solid line 1 pixels thick, label
PlotGrid( 241, colorGreen, 10, 1, 241 ); // solid line 1 pixels thick, label
PlotGrid( 249, colorGreen, 10, 1, 249 ); // solid line 1 pixels thick, label
PlotGrid( 257, colorGreen, 10, 2, 257 ); // solid line 2 pixels thick, label
PlotGrid( 265, colorGreen, 10, 1, 265 ); // solid line 1 pixels thick, label
PlotGrid( 273, colorGreen, 10, 1, 273 ); // solid line 1 pixels thick, label
PlotGrid( 281, colorGreen, 10, 1, 281 ); // solid line 1 pixels thick, label
PlotGrid( 289, colorRed, 8, 1, 289 ); // dotted line 1 pixels thick, label
PlotGrid( 298, colorGreen, 10, 1, 298 ); // solid line 1 pixels thick, label
PlotGrid( 307, colorGreen, 10, 1, 307 ); // solid line 1 pixels thick, label
PlotGrid( 316, colorGreen, 10, 1, 316 ); // solid line 1 pixels thick, label
PlotGrid( 325, colorGreen, 10, 2, 325 ); // solid line 2 pixels thick, label
PlotGrid( 334, colorGreen, 10, 1, 334 ); // solid line 1 pixels thick, label
PlotGrid( 343, colorGreen, 10, 1, 343 ); // solid line 1 pixels thick, label
PlotGrid( 352, colorGreen, 10, 1, 352 ); // solid line 1 pixels thick, label
PlotGrid( 361, colorRed, 8, 1, 361 ); // dotted line 1 pixels thick, label
PlotGrid( 371, colorGreen, 10, 1, 371 ); // solid line 1 pixels thick, label
PlotGrid( 381, colorGreen, 10, 1, 381 ); // solid line 1 pixels thick, label
PlotGrid( 391, colorGreen, 10, 1, 391 ); // solid line 1 pixels thick, label
PlotGrid( 401, colorGreen, 10, 2, 401 ); // solid line 2 pixels thick, label
PlotGrid( 411, colorGreen, 10, 1, 411 ); // solid line 1 pixels thick, label
PlotGrid( 421, colorGreen, 10, 1, 421 ); // solid line 1 pixels thick, label
PlotGrid( 431, colorGreen, 10, 1, 431 ); // solid line 1 pixels thick, label
PlotGrid( 441, colorRed, 8, 1, 441 ); // dotted line 1 pixels thick, label
PlotGrid( 452, colorGreen, 10, 1, 452 ); // solid line 1 pixels thick, label
PlotGrid( 463, colorGreen, 10, 1, 463 ); // solid line 1 pixels thick, label
PlotGrid( 474, colorGreen, 10, 1, 474 ); // solid line 1 pixels thick, label
PlotGrid( 485, colorGreen, 10, 2, 485 ); // solid line 2 pixels thick, label
PlotGrid( 496, colorGreen, 10, 1, 496 ); // solid line 1 pixels thick, label
PlotGrid( 507, colorGreen, 10, 1, 507 ); // solid line 1 pixels thick, label
PlotGrid( 518, colorGreen, 10, 1, 518 ); // solid line 1 pixels thick, label
PlotGrid( 529, colorRed, 8, 1, 529 ); // dotted line 1 pixels thick, label
PlotGrid( 541, colorGreen, 10, 1, 541 ); // solid line 1 pixels thick, label
PlotGrid( 553, colorGreen, 10, 1, 553 ); // solid line 1 pixels thick, label
PlotGrid( 565, colorGreen, 10, 1, 565 ); // solid line 1 pixels thick, label
PlotGrid( 577, colorGreen, 10, 2, 577 ); // solid line 2 pixels thick, label
PlotGrid( 589, colorGreen, 10, 1, 589 ); // solid line 1 pixels thick, label
PlotGrid( 601, colorGreen, 10, 1, 601 ); // solid line 1 pixels thick, label
PlotGrid( 613, colorGreen, 10, 1, 613 ); // solid line 1 pixels thick, label
PlotGrid( 625, colorRed, 8, 1, 625 ); // dotted line 1 pixels thick, label
PlotGrid( 638, colorGreen, 10, 1, 638 ); // solid line 1 pixels thick, label
PlotGrid( 651, colorGreen, 10, 1, 651 ); // solid line 1 pixels thick, label
PlotGrid( 664, colorGreen, 10, 1, 664 ); // solid line 1 pixels thick, label
PlotGrid( 677, colorGreen, 10, 2, 677 ); // solid line 2 pixels thick, label
PlotGrid( 690, colorGreen, 10, 1, 690 ); // solid line 1 pixels thick, label
PlotGrid( 703, colorGreen, 10, 1, 701 ); // solid line 1 pixels thick, label
PlotGrid( 716, colorGreen, 10, 1, 716 ); // solid line 1 pixels thick, label
PlotGrid( 729, colorRed, 8, 1, 729 ); // dotted line 1 pixels thick, label
PlotGrid( 743, colorGreen, 10, 1, 743 ); // solid line 1 pixels thick, label
PlotGrid( 757, colorGreen, 10, 1, 757 ); // solid line 1 pixels thick, label
PlotGrid( 771, colorGreen, 10, 1, 771 ); // solid line 1 pixels thick, label
PlotGrid( 785, colorGreen, 10, 2, 785 ); // solid line 2 pixels thick, label
PlotGrid( 799, colorGreen, 10, 1, 799 ); // solid line 1 pixels thick, label
PlotGrid( 813, colorGreen, 10, 1, 813 ); // solid line 1 pixels thick, label
PlotGrid( 827, colorGreen, 10, 1, 827 ); // solid line 1 pixels thick, label
PlotGrid( 841, colorRed, 8, 1, 841 ); // dotted line 1 pixels thick, label
PlotGrid( 856, colorGreen, 10, 1, 856 ); // solid line 1 pixels thick, label
PlotGrid( 871, colorGreen, 10, 1, 871 ); // solid line 1 pixels thick, label
PlotGrid( 886, colorGreen, 10, 1, 886 ); // solid line 1 pixels thick, label
PlotGrid( 901, colorGreen, 10, 2, 901 ); // solid line 2 pixels thick, label
PlotGrid( 916, colorGreen, 10, 1, 916 ); // solid line 1 pixels thick, label
PlotGrid( 931, colorGreen, 10, 1, 931 ); // solid line 1 pixels thick, label
PlotGrid( 946, colorGreen, 10, 1, 946 ); // solid line 1 pixels thick, label
PlotGrid( 961, colorRed, 8, 1, 961 ); // dotted line 1 pixels thick, label
PlotGrid( 977, colorGreen, 10, 1, 977 ); // solid line 1 pixels thick, label
PlotGrid( 993, colorGreen, 10, 1, 993 ); // solid line 1 pixels thick, label
PlotGrid( 1009, colorGreen, 10, 1, 1009 ); // solid line 1 pixels thick, label
PlotGrid( 1025, colorGreen, 10, 2, 1025 ); // solid line 2 pixels thick, label
PlotGrid( 1041, colorGreen, 10, 1, 1041 ); // solid line 1 pixels thick, label
PlotGrid( 1057, colorGreen, 10, 1, 1057 ); // solid line 1 pixels thick, label
PlotGrid( 1073, colorGreen, 10, 1, 1073 ); // solid line 1 pixels thick, label
PlotGrid( 1089, colorRed, 8, 1, 1089 ); // dotted line 1 pixels thick, label
PlotGrid( 1106, colorGreen, 10, 1, 1106 ); // solid line 1 pixels thick, label
PlotGrid( 1123, colorGreen, 10, 1, 1123 ); // solid line 1 pixels thick, label
PlotGrid( 1140, colorGreen, 10, 1, 1140 ); // solid line 1 pixels thick, label
PlotGrid( 1157, colorGreen, 10, 2, 1157 ); // solid line 2 pixels thick, label
PlotGrid( 1174, colorGreen, 10, 1, 1174 ); // solid line 1 pixels thick, label
PlotGrid( 1191, colorGreen, 10, 1, 1191 ); // solid line 1 pixels thick, label
PlotGrid( 1208, colorGreen, 10, 1, 1208 ); // solid line 1 pixels thick, label
PlotGrid( 1225, colorRed, 8, 1, 1225 ); // dotted line 1 pixels thick, label
PlotGrid( 1243, colorGreen, 10, 1, 1243 ); // solid line 1 pixels thick, label
PlotGrid( 1261, colorGreen, 10, 1, 1261 ); // solid line 1 pixels thick, label
PlotGrid( 1279, colorGreen, 10, 1, 1279 ); // solid line 1 pixels thick, label
PlotGrid( 1297, colorGreen, 10, 2, 1297 ); // solid line 2 pixels thick, label
PlotGrid( 1315, colorGreen, 10, 1, 1315 ); // solid line 1 pixels thick, label
PlotGrid( 1333, colorGreen, 10, 1, 1333 ); // solid line 1 pixels thick, label
PlotGrid( 1351, colorGreen, 10, 1, 1351 ); // solid line 1 pixels thick, label
PlotGrid( 1369, colorRed, 8, 1, 1369 ); // dotted line 1 pixels thick, label
 
Hello all,

I am looking for afl which can plot a pivot between 2 given dates, the dates will generally remain 15 days for eg 1-1-2018 to 15-1-2018(calendar days ) will be defined to be set in Param, and the pivot to be should be OHLC/4. I should be able to use this in any Time Frame.
Thanks guys
 

TraderGYO

Well-Known Member
I have used plotgrid function to plot custom grid lines. My code is as follows but afl not showing gridlines above 1140.
Any correction needed to show all grid lines, please help

PlotGrid( 81, colorRed, 8, 1, 81 ); // dotted line 1 pixels thick, label
PlotGrid( 86, colorGreen, 10, 1, 86 ); // solid line 1 pixels thick, label
PlotGrid( 91, colorGreen, 10, 1, 91 ); // solid line 1 pixels thick, label
PlotGrid( 96, colorGreen, 10, 1, 96 ); // solid line 1 pixels thick, label
PlotGrid( 101, colorGreen, 10, 2, 101 ); // solid line 1 pixels thick, label
PlotGrid( 106, colorGreen, 10, 1, 106 ); // solid line 1 pixels thick, label
PlotGrid( 111, colorGreen, 10, 1, 111 ); // solid line 1 pixels thick, label
PlotGrid( 116, colorGreen, 10, 1, 116 ); // solid line 1 pixels thick, label
PlotGrid( 121, colorRed, 8, 1, 121 ); // dotted line 1 pixels thick, label
PlotGrid( 127, colorGreen, 10, 1, 127 ); // solid line 1 pixels thick, label
PlotGrid( 133, colorGreen, 10, 1, 133 ); // solid line 1 pixels thick, label
PlotGrid( 139, colorGreen, 10, 1, 139 ); // solid line 1 pixels thick, label
PlotGrid( 145, colorGreen, 10, 2, 145 ); // solid line 2 pixels thick, label
PlotGrid( 151, colorGreen, 10, 1, 151 ); // solid line 1 pixels thick, label
PlotGrid( 157, colorGreen, 10, 1, 157 ); // solid line 1 pixels thick, label
PlotGrid( 163, colorGreen, 10, 1, 163 ); // solid line 1 pixels thick, label
PlotGrid( 169, colorRed, 8, 1, 169 ); // dotted line 1 pixels thick, label
PlotGrid( 176, colorGreen, 10, 1, 176 ); // solid line 1 pixels thick, label
PlotGrid( 183, colorGreen, 10, 1, 183 ); // solid line 1 pixels thick, label
PlotGrid( 190, colorGreen, 10, 1, 190 ); // solid line 1 pixels thick, label
PlotGrid( 197, colorGreen, 10, 2, 197 ); // solid line 2 pixels thick, label
PlotGrid( 204, colorGreen, 10, 1, 204 ); // solid line 1 pixels thick, label
PlotGrid( 211, colorGreen, 10, 1, 211 ); // solid line 1 pixels thick, label
PlotGrid( 218, colorGreen, 10, 1, 218 ); // solid line 1 pixels thick, label
PlotGrid( 225, colorRed, 8, 1, 225 ); // dotted line 1 pixels thick, label
PlotGrid( 233, colorGreen, 10, 1, 233 ); // solid line 1 pixels thick, label
PlotGrid( 241, colorGreen, 10, 1, 241 ); // solid line 1 pixels thick, label
PlotGrid( 249, colorGreen, 10, 1, 249 ); // solid line 1 pixels thick, label
PlotGrid( 257, colorGreen, 10, 2, 257 ); // solid line 2 pixels thick, label
PlotGrid( 265, colorGreen, 10, 1, 265 ); // solid line 1 pixels thick, label
PlotGrid( 273, colorGreen, 10, 1, 273 ); // solid line 1 pixels thick, label
PlotGrid( 281, colorGreen, 10, 1, 281 ); // solid line 1 pixels thick, label
PlotGrid( 289, colorRed, 8, 1, 289 ); // dotted line 1 pixels thick, label
PlotGrid( 298, colorGreen, 10, 1, 298 ); // solid line 1 pixels thick, label
PlotGrid( 307, colorGreen, 10, 1, 307 ); // solid line 1 pixels thick, label
PlotGrid( 316, colorGreen, 10, 1, 316 ); // solid line 1 pixels thick, label
PlotGrid( 325, colorGreen, 10, 2, 325 ); // solid line 2 pixels thick, label
PlotGrid( 334, colorGreen, 10, 1, 334 ); // solid line 1 pixels thick, label
PlotGrid( 343, colorGreen, 10, 1, 343 ); // solid line 1 pixels thick, label
PlotGrid( 352, colorGreen, 10, 1, 352 ); // solid line 1 pixels thick, label
PlotGrid( 361, colorRed, 8, 1, 361 ); // dotted line 1 pixels thick, label
PlotGrid( 371, colorGreen, 10, 1, 371 ); // solid line 1 pixels thick, label
PlotGrid( 381, colorGreen, 10, 1, 381 ); // solid line 1 pixels thick, label
PlotGrid( 391, colorGreen, 10, 1, 391 ); // solid line 1 pixels thick, label
PlotGrid( 401, colorGreen, 10, 2, 401 ); // solid line 2 pixels thick, label
PlotGrid( 411, colorGreen, 10, 1, 411 ); // solid line 1 pixels thick, label
PlotGrid( 421, colorGreen, 10, 1, 421 ); // solid line 1 pixels thick, label
PlotGrid( 431, colorGreen, 10, 1, 431 ); // solid line 1 pixels thick, label
PlotGrid( 441, colorRed, 8, 1, 441 ); // dotted line 1 pixels thick, label
PlotGrid( 452, colorGreen, 10, 1, 452 ); // solid line 1 pixels thick, label
PlotGrid( 463, colorGreen, 10, 1, 463 ); // solid line 1 pixels thick, label
PlotGrid( 474, colorGreen, 10, 1, 474 ); // solid line 1 pixels thick, label
PlotGrid( 485, colorGreen, 10, 2, 485 ); // solid line 2 pixels thick, label
PlotGrid( 496, colorGreen, 10, 1, 496 ); // solid line 1 pixels thick, label
PlotGrid( 507, colorGreen, 10, 1, 507 ); // solid line 1 pixels thick, label
PlotGrid( 518, colorGreen, 10, 1, 518 ); // solid line 1 pixels thick, label
PlotGrid( 529, colorRed, 8, 1, 529 ); // dotted line 1 pixels thick, label
PlotGrid( 541, colorGreen, 10, 1, 541 ); // solid line 1 pixels thick, label
PlotGrid( 553, colorGreen, 10, 1, 553 ); // solid line 1 pixels thick, label
PlotGrid( 565, colorGreen, 10, 1, 565 ); // solid line 1 pixels thick, label
PlotGrid( 577, colorGreen, 10, 2, 577 ); // solid line 2 pixels thick, label
PlotGrid( 589, colorGreen, 10, 1, 589 ); // solid line 1 pixels thick, label
PlotGrid( 601, colorGreen, 10, 1, 601 ); // solid line 1 pixels thick, label
PlotGrid( 613, colorGreen, 10, 1, 613 ); // solid line 1 pixels thick, label
PlotGrid( 625, colorRed, 8, 1, 625 ); // dotted line 1 pixels thick, label
PlotGrid( 638, colorGreen, 10, 1, 638 ); // solid line 1 pixels thick, label
PlotGrid( 651, colorGreen, 10, 1, 651 ); // solid line 1 pixels thick, label
PlotGrid( 664, colorGreen, 10, 1, 664 ); // solid line 1 pixels thick, label
PlotGrid( 677, colorGreen, 10, 2, 677 ); // solid line 2 pixels thick, label
PlotGrid( 690, colorGreen, 10, 1, 690 ); // solid line 1 pixels thick, label
PlotGrid( 703, colorGreen, 10, 1, 701 ); // solid line 1 pixels thick, label
PlotGrid( 716, colorGreen, 10, 1, 716 ); // solid line 1 pixels thick, label
PlotGrid( 729, colorRed, 8, 1, 729 ); // dotted line 1 pixels thick, label
PlotGrid( 743, colorGreen, 10, 1, 743 ); // solid line 1 pixels thick, label
PlotGrid( 757, colorGreen, 10, 1, 757 ); // solid line 1 pixels thick, label
PlotGrid( 771, colorGreen, 10, 1, 771 ); // solid line 1 pixels thick, label
PlotGrid( 785, colorGreen, 10, 2, 785 ); // solid line 2 pixels thick, label
PlotGrid( 799, colorGreen, 10, 1, 799 ); // solid line 1 pixels thick, label
PlotGrid( 813, colorGreen, 10, 1, 813 ); // solid line 1 pixels thick, label
PlotGrid( 827, colorGreen, 10, 1, 827 ); // solid line 1 pixels thick, label
PlotGrid( 841, colorRed, 8, 1, 841 ); // dotted line 1 pixels thick, label
PlotGrid( 856, colorGreen, 10, 1, 856 ); // solid line 1 pixels thick, label
PlotGrid( 871, colorGreen, 10, 1, 871 ); // solid line 1 pixels thick, label
PlotGrid( 886, colorGreen, 10, 1, 886 ); // solid line 1 pixels thick, label
PlotGrid( 901, colorGreen, 10, 2, 901 ); // solid line 2 pixels thick, label
PlotGrid( 916, colorGreen, 10, 1, 916 ); // solid line 1 pixels thick, label
PlotGrid( 931, colorGreen, 10, 1, 931 ); // solid line 1 pixels thick, label
PlotGrid( 946, colorGreen, 10, 1, 946 ); // solid line 1 pixels thick, label
PlotGrid( 961, colorRed, 8, 1, 961 ); // dotted line 1 pixels thick, label
PlotGrid( 977, colorGreen, 10, 1, 977 ); // solid line 1 pixels thick, label
PlotGrid( 993, colorGreen, 10, 1, 993 ); // solid line 1 pixels thick, label
PlotGrid( 1009, colorGreen, 10, 1, 1009 ); // solid line 1 pixels thick, label
PlotGrid( 1025, colorGreen, 10, 2, 1025 ); // solid line 2 pixels thick, label
PlotGrid( 1041, colorGreen, 10, 1, 1041 ); // solid line 1 pixels thick, label
PlotGrid( 1057, colorGreen, 10, 1, 1057 ); // solid line 1 pixels thick, label
PlotGrid( 1073, colorGreen, 10, 1, 1073 ); // solid line 1 pixels thick, label
PlotGrid( 1089, colorRed, 8, 1, 1089 ); // dotted line 1 pixels thick, label
PlotGrid( 1106, colorGreen, 10, 1, 1106 ); // solid line 1 pixels thick, label
PlotGrid( 1123, colorGreen, 10, 1, 1123 ); // solid line 1 pixels thick, label
PlotGrid( 1140, colorGreen, 10, 1, 1140 ); // solid line 1 pixels thick, label
PlotGrid( 1157, colorGreen, 10, 2, 1157 ); // solid line 2 pixels thick, label
PlotGrid( 1174, colorGreen, 10, 1, 1174 ); // solid line 1 pixels thick, label
PlotGrid( 1191, colorGreen, 10, 1, 1191 ); // solid line 1 pixels thick, label
PlotGrid( 1208, colorGreen, 10, 1, 1208 ); // solid line 1 pixels thick, label
PlotGrid( 1225, colorRed, 8, 1, 1225 ); // dotted line 1 pixels thick, label
PlotGrid( 1243, colorGreen, 10, 1, 1243 ); // solid line 1 pixels thick, label
PlotGrid( 1261, colorGreen, 10, 1, 1261 ); // solid line 1 pixels thick, label
PlotGrid( 1279, colorGreen, 10, 1, 1279 ); // solid line 1 pixels thick, label
PlotGrid( 1297, colorGreen, 10, 2, 1297 ); // solid line 2 pixels thick, label
PlotGrid( 1315, colorGreen, 10, 1, 1315 ); // solid line 1 pixels thick, label
PlotGrid( 1333, colorGreen, 10, 1, 1333 ); // solid line 1 pixels thick, label
PlotGrid( 1351, colorGreen, 10, 1, 1351 ); // solid line 1 pixels thick, label
PlotGrid( 1369, colorRed, 8, 1, 1369 ); // dotted line 1 pixels thick, label
there should be a simpler way of doing this if lines are being drawn at logical steps.
 

Similar threads