×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

I getplotvalue - MultiCharts
Open main menu

I getplotvalue

Revision as of 11:15, 17 October 2013 by Roman MultiCharts (talk | contribs) (→‎Usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Gets the value calculated by a signal that is to be used for plotting from an indicator. It can be considered as a bridge between a signal and an indicator. Using i_setplotvalue and i_getplotvalue keywords makes it possible to avoid copying the same script for calculation the same value in both indicator and signal.

Usage

i_getplotvalue(index);

Where:

  • index is the reference number.

Notes

  1. i_getplotvalue can be used in functions and indicators if any signal is applied to the main chart.
  2. Values will be transferred between i_setplotvalue and i_getplotvalue ONLY within 1 chart window,
  3. i_setplotvalue and i_getplotvalue will return 0 if applied to the Market Scanner Window,
  4. i_setplotvalue and i_getplotvalue cannot be used while backtesting a portfolio,
  5. i_setplotvalue and i_getplotvaluecannot be referred historically,
  6. it is possible to use unlimited indexes for data transfer.

Usage

Plot in the indicator the max drawdown and open equity values calculated by the signal with indexes 111 and 112

plot1(i_getplotvalue(111), "MaxIDDrawdown");
plot2(i_getplotvalue(112), "OpenEquity");