| || |
ErrorCode=-2147467259 attempt to perform arithmetic on local 'value'
i have a code:
par.Barras = My.Forms.Inicio.NucleoIndiCore.CreateBarSource("EUR/USD", "D1", False, 0.0001)
Dim instance As Indicore.IndicatorInstanceAut
instance = My.Forms.Inicio.NucleoIndiCore.CreateIndicatorInstance("RSI", par.Barras, 20, 0, 0, Type.Missing, Type.Missing)
Dim _outputs As Indicore.IndicatorOutputCollectionAut = instance.Output
Dim outputs As New List(Of Indicore.IndicatorOutputAut)()
i = 0
While i < _outputs.Size
System.Math.Max(System.Threading.Interlocked.Increment(i), i - 1)
but in the last line, a message appears :
System.Runtime.InteropServices.COMException was unhandled
Message="[string "C:\DOCUME~1\JORGEA~1\CONFIG~1\Temp\iccE1.tm..."]:55: attempt to perform arithmetic on local 'value' (a nil value)"
Please let me know what i am doing bad
Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.