PureBytes Links
Trading Reference Links
|
I am new to this forum and relatively new to AB, so please don't laugh
at my rather elementary question. If I hide an indicator, how do I
retrieve the line style, determine it is hidden and use that to skip
over a few lines of code? I simply can't figure out how retrieve the
current line style.
_SECTION_BEGIN("C-EMA");
sigPeriods = Param("Signal Periods", 5, 1, 200, 1, 10 );
Plot( EMA( C, sigPeriods ), _DEFAULT_NAME(), ParamColor("C-Signal
Color",colorLightYellow), ParamStyle("C-Signal Style",styleDashed));
emaPeriods = Param("EMA Periods", 12, 1, 200, 1, 10 );
Plot( EMA( C, emaPeriods ), _DEFAULT_NAME(), ParamColor("C-EMA
Color",colorYellow), ParamStyle("C-EMA Style",styleThick));
sig=EMA( C, sigPeriods );
main=EMA( C, emaPeriods );
/*I don't want to execute this code if either of the current (not
default) line styles is hidden. If I hide the indicator, I want the
alerts and shapes to go away, too.*/
AlertIf(Cross(sig,main),"sound C:\Windows\Media\Ding.wav","");
PlotShapes(shapeUpArrow * Cross(sig,main),colorYellow,0,Graph0);
_SECTION_END();
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.35/680 - Release Date: 2/10/2007 9:15 PM
|