Hi,
Can anyone explain how to make work PenStyles other than SOLID, even when generated with the Wizard?
Thank you.
Can anyone explain how to make work PenStyles other than SOLID, even when generated with the Wizard?
Thank you.
var vMA1 = null;
var vMA2 = null;
function preMain() {
setPriceStudy(true);
setStudyTitle("MAx2");
setCursorLabelName("MA1", 0);
setCursorLabelName("MA2", 1);
setDefaultBarStyle(PS_DOT, 0);
setDefaultBarStyle(PS_SOLID, 1);
setDefaultBarFgColor(Color.blue, 0);
setDefaultBarFgColor(Color.red, 1);
}
function main() {
if (vMA1 == null) vMA1 = new MAStudy(10, 0, "Close", "MAStudy.SIMPLE");
if (vMA2 == null) vMA2 = new MAStudy(20, 0, "Close", "MAStudy.SIMPLE");
if(vMA1.getValue(MAStudy.MA)>vMA2.getValue(MAStudy.MA))
setBarStyle(PS_DOT,1)
return new Array (vMA1.getValue(MAStudy.MA),vMA2.getValue(MAStudy.MA));
}
Comment