No, the Maximum Drawdown number is calculated only for trading systems, not for indicators.
However, it wouldn't be hard to track the maximum generated value - for example:
Code: Select all
Vars: MaxDD(0);
value1=close of data1*5; // calculate YM market value
value2=close of data2*20;// calculate NQ market value
value3=value1-value2;
plot1(value3);
if value3 < maxDD then maxDD = value3;
If LastBarOnChart = TRUE Then Print("Maximum Drawdown = ",NumToStr(maxDD,4));
[Note that this code is assuming that value3 becomes negative; if this is not true, initialize MaxDD with a sufficiently high number like MaxDD(100000)]
As long as you have your PowerLanguage Editor open, you should see the resulting value printed in the "output" tab at the bottom of your editor screen.