How do I use a "condition set" in a formula? (See below.) Lets say I want the Plot0.Set to give me a numeric "1" when the ChaikinMoneyFlow(21)[0] > 0 and to give me a numeric "0" when ChaikinMoneyFlow(21)[0] < 0 .
Thanks...
// Condition set 1
if (ChaikinMoneyFlow(21)[0] > 0)
{
Variable0 = 1;
}
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
double pc = HMA ( Close , LongTerm ) [0];
double pr = SMA ( Close , ShortTerm ) [0];
Plot0.Set(pc - pr);
Comment