I setplotvalue: Difference between revisions
From MultiCharts
no edit summary
(Created page with "Sets 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_setplotval...") |
No edit summary |
||
Line 1: | Line 1: | ||
Sets 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. | Sets 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=== | ===Usage=== | ||
Line 13: | Line 13: | ||
=== Notes=== | === Notes=== | ||
# ''i_setplotvalue'' can be used in signals, functions and | # '''i_setplotvalue''' can be used in signals, functions and | ||
#* indicators if any signal is applied to the main chart. | #* indicators if any signal is applied to the main chart. | ||
# Values will be transferred between ''i_setplotvalue'' and ''i_getplotvalue'' ONLY within 1 chart window, | # Values will be transferred between '''i_setplotvalue''' and '''[[i_getplotvalue]]''' ONLY within 1 chart window, | ||
# ''i_setplotvalue'' and ''i_getplotvalue'' will return 0 if applied to the Market Scanner Window, | # '''i_setplotvalue''' and '''[[i_getplotvalue]]''' will return 0 if applied to the Market Scanner Window, | ||
# ''i_setplotvalue'' and ''i_getplotvalue'' cannot be used while backtesting a portfolio, | # '''i_setplotvalue''' and '''[[i_getplotvalue]]''' cannot be used while backtesting a portfolio, | ||
# ''i_setplotvalue'' and ''i_getplotvalue''cannot be referred historically, | # '''i_setplotvalue''' and '''[[i_getplotvalue]]''' cannot be referred historically, | ||
# it is possible to use unlimited indexes for data transfer. | # it is possible to use unlimited indexes for data transfer. | ||
=== Usage === | === Usage === | ||
Set the max drawdown and open equity values calculated by the signal to be transferred with indexes 111 and 112 | Set the max drawdown and open equity values calculated by the signal to be transferred into the indicator with indexes 111 and 112 | ||
<syntaxhighlight> | <syntaxhighlight> |