| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Why cannot I assign a value to an array ??? https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=684 |
Page 1 of 1 |
| Author: | lucklogic [ Mon Jul 09, 2012 9:42 am ] |
| Post subject: | Why cannot I assign a value to an array ??? |
Hi, This is the full subset code of DeMark Trendline Trader. I want to capture the estimate of the High and Low profit zones in a buffer for external use. In the code I have already set the Array: double ExtBufferLow []; and SetIndexBuffer(3,ExtBufferLow); I have highlighted below how the value is assigned to the array, but this does not work - but why ? Code: Select all |
|
| Author: | NeoTrader [ Mon Jul 09, 2012 11:53 am ] |
| Post subject: | Re: Why cannot I assign a value to an array ??? |
hi lucklogic, have you tried to print the value of "(k-LC1)" and looked what it shows? And with ExtBufferLow [1] you know that you always overwrite the Buffer...have you tried to use [0] instead of [1].... just my 2 pips... happy trading, NeoTrader |
|
| Author: | garyfritz [ Mon Jul 09, 2012 2:26 pm ] |
| Post subject: | Re: Why cannot I assign a value to an array ??? |
lucklogic, how does it fail? What error do you get -- compile error, or runtime error, or does it work without error but you just don't get the value displayed in the indicator, or...? Did you just declare it as Code: Select all |
|
| Author: | lucklogic [ Mon Jul 09, 2012 3:16 pm ] |
| Post subject: | Re: Why cannot I assign a value to an array ??? |
|
|
| Author: | NeoTrader [ Mon Jul 09, 2012 3:25 pm ] |
| Post subject: | Re: Why cannot I assign a value to an array ??? |
hi lucklogic, hehe...I also had the same *bug* when I first started to mess around indicators.. happy trading, NeoTrader - |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|