Help with Fishnet code
Posted: 06 Oct 2015
Hi,
I try to make this code to MC but sticks to (i=net; I<net; i ++ part) hope someone can guide me right.
Thanks in advance!
I try to make this code to MC but sticks to (i=net; I<net; i ++ part) hope someone can guide me right.
Thanks in advance!
Code: Select all
/* This code plot fishnet with rainbow colors. I use 30 MA per color.*/
_SECTION_BEGIN("");
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style", styleCandle, maskPrice ) );
net= 30; // This value can be changed. It`s how many MA:s every color have.
for (i=1; i<net;i++) {
Plot(MA(Close,i),"",colorDarkRed,styleLine);
}
for (i=net; i<2*net;i++) {
Plot(MA(Close,i),"",colorOrange,styleLine);
}
for (i=2*net; i<3*net;i++) {
Plot(MA(Close,i),"",colorGold,styleLine);
}
for (i=3*net; i<4*net;i++) {
Plot(MA(Close,i),"",colorLime,styleLine);
}
for (i=4*net; i<5*net;i++) {
Plot(MA(Close,i),"",colorBlue,styleLine);
}
for (i=5*net; i<6*net;i++) {
Plot(MA(Close,i),"",colorIndigo,styleLine);
}
for (i=6*net; i<7*net;i++) {
Plot(MA(Close,i),"",colorViolet,styleLine);
}
_SECTION_END();