I'm receiving the following error message when inserting my new signal:
Error in study...Array Bounds. Wrong Index Value: 4.
How do I read this error (specifically 'Wrong Index Value:4')?
Is there a simple way to find the source of these errors (I have quite a few arrays)?
Thank you.
Search found 29 matches
- 18 Dec 2023
- Forum: MultiCharts
- Topic: Clear multidimensional array
- Replies: 1
- Views: 142
Clear multidimensional array
Hello-
Is there a way to clear/modify a multidimensional array similar to what fill_array does for single-dimensional arrays? I know I can write code to do this, but wanted to see if there was a similar keyword that I can use to perform this task.
TY,
MB2k
Is there a way to clear/modify a multidimensional array similar to what fill_array does for single-dimensional arrays? I know I can write code to do this, but wanted to see if there was a similar keyword that I can use to perform this task.
TY,
MB2k
- 11 Apr 2023
- Forum: MultiCharts
- Topic: Push values in Array
- Replies: 1
- Views: 275
Push values in Array
Hello- I'm looking for a keyword/function like fill_array(array1,0) , to force an array [1 dimension] to push values forward, i.e. array1[1] = array1[0], array1[2] = array1[1]........etc. Is there a keyword or pre-built function that does this? I'm currently pushing values forward by using a counter...
- 06 Feb 2023
- Forum: MultiCharts
- Topic: setprofittarget and backtesting
- Replies: 1
- Views: 255
setprofittarget and backtesting
Hello-
2 questions: Does setprofittarget work with backtesting? Do I have to set intrabarordergeneration to true in order for setprofittarget to work?
Thank you
2 questions: Does setprofittarget work with backtesting? Do I have to set intrabarordergeneration to true in order for setprofittarget to work?
Thank you
- 24 Jan 2023
- Forum: MultiCharts
- Topic: No Print output for earlier dates
- Replies: 3
- Views: 406
Re: No Print output for earlier dates
Thank you Polly, I'll check on the max bars back input. I notice that with strategies, MBB is a global input that needs to be manually set, whereas it can be individually set (and Auto-Detect) in the indicator properties. Why is that?
- 23 Jan 2023
- Forum: MultiCharts
- Topic: No Print output for earlier dates
- Replies: 3
- Views: 406
No Print output for earlier dates
Hello- Today I ran the following print code: if date = 1220921 then Print("Test","********",Date,"****",time,"****",c); It worked correctly- the data printed on the Output tab; however when I compiled the following if date = 1220920 then Print("Test","********",Date,"****",time,"****",c); or any ear...
- 19 Jan 2023
- Forum: MultiCharts
- Topic: Powerlanguage Methods
- Replies: 1
- Views: 409
Powerlanguage Methods
Does Powerlanguage support Easylanguage Methods (in-line coding), or do we just have functions to manage blocks of code? I've entered the following as a test: method Void HAM() begin end; It constantly returns this error: ------ Compiled with error ------ syntax error, unexpected 'void' line 1, colu...
- 18 Jan 2023
- Forum: MultiCharts
- Topic: Partially closing an open position...
- Replies: 2
- Views: 605
Re: Partially closing an open position...
On a similar scope, will this work?
Input: EntryName1("LE1");
if mod(currentbar, 7) = 0 then
begin
Buy (EntryName1) 10 contracts next bar market;
end;
Input: EntryName1("LE1");
if mod(currentbar, 7) = 0 then
begin
Buy (EntryName1) 10 contracts next bar market;
end;
- 12 Jan 2023
- Forum: MultiCharts
- Topic: Editor- Code Organization
- Replies: 1
- Views: 310
Editor- Code Organization
Hello-
Is there a way to outline the code (with regions?) in the editor, to expand and hide code selections as needed? It will make coding easier on small screens.
Thank you
Is there a way to outline the code (with regions?) in the editor, to expand and hide code selections as needed? It will make coding easier on small screens.
Thank you
- 21 Jun 2022
- Forum: MultiCharts
- Topic: Declaring a boolean variable [SOLVED]
- Replies: 1
- Views: 521
Declaring a boolean variable [SOLVED]
Hello-
I know that a standard multi-timeframe variable is declared as:
Var1 (0),
Var2 (0, data2);
Do we declare boolean variables for multiple timeframes the same way:
var3(false),
var4(false, data2); ?
It seems simple, but I'm not really sure of the answer to this.
Thank you,
mb2k
I know that a standard multi-timeframe variable is declared as:
Var1 (0),
Var2 (0, data2);
Do we declare boolean variables for multiple timeframes the same way:
var3(false),
var4(false, data2); ?
It seems simple, but I'm not really sure of the answer to this.
Thank you,
mb2k
- 20 Jun 2022
- Forum: MultiCharts
- Topic: Indicator Signal not plotting
- Replies: 6
- Views: 919
Re: Indicator Signal not plotting
I'm plotting crosses, for which I need to plot on the same bar. The crosses change to the indicated color when conditions are met. In most instances, the crosses change color on the specified bar. On a few cases, the cross does not change to the signal color at all in real time. The signal only show...
- 20 Jun 2022
- Forum: MultiCharts
- Topic: Indicator Signal not plotting
- Replies: 6
- Views: 919
Re: Indicator Signal not plotting
Thank you TJ. Apologize for not understanding your logic here: 1. What setting are you referring to? 2. The procedure should be run on the last tick of the bar - and plotted as it has for roughly 49 of 50 signals. I could accept this if I didn't have proof of the signals being plotted correctly. 3. ...
- 20 Jun 2022
- Forum: MultiCharts
- Topic: Indicator Signal not plotting
- Replies: 6
- Views: 919
Indicator Signal not plotting
In using the following code: if barstatus(1) = 2 then begin if (condition6 or condition10) and value14 = 0 then begin value14 = 1; setplotcolor(1,magenta); end; end; This has randomly not plotted the signal multiple times in real-time, only to show the signal once the chart has been refreshed. I've ...
- 28 Mar 2022
- Forum: MultiCharts
- Topic: GoTo Date [SOLVED]
- Replies: 2
- Views: 540
Re: GoTo Date [SOLVED]
Thank you! I saw the GoTo Bar shortcut, but didn't check to see if I could access dates through it.
- 27 Mar 2022
- Forum: MultiCharts
- Topic: GoTo Date [SOLVED]
- Replies: 2
- Views: 540
- 20 Jan 2022
- Forum: MultiCharts
- Topic: Compiling Error
- Replies: 1
- Views: 291
Compiling Error
Hello- In trying to compile my functions, I keep on receiving this error: The study or related functions in use. Please remove the study from the chart first What is this, and how do I resolve? I had no problems compiling earlier. I also noticed that when compiling earlier, I received references tha...
- 10 Oct 2021
- Forum: MultiCharts
- Topic: Rounding up to the nearest tick
- Replies: 2
- Views: 654
Re: Rounding up to the nearest tick
Mathematics is Magical!
Thank you kindly for the solution ABC.
Thank you kindly for the solution ABC.
- 06 Oct 2021
- Forum: MultiCharts
- Topic: Rounding up to the nearest tick
- Replies: 2
- Views: 654
Rounding up to the nearest tick
Hello- I'm trying to figure our a way to roundup to the nearest tick (MinMove / PriceScale): For example, if using the following example in ES: round(average ((x - y),100)*z,2) = 1025.12 I would like this figure to round up to the next .25 increment, in this instance, 1025.25. I'm not sure how to do...
- 31 Mar 2021
- Forum: MultiCharts
- Topic: Multiple timeframes - Weird indicator issue
- Replies: 8
- Views: 1491
Re: Multiple timeframes - Weird indicator issue
Again, the plot is totally correct, there's nothing wrong with the indicator's calculations. I'm only inquiring about why the color of the plots only prints when aligned with data1. I'm happy with the calculations, but not the colors that don't print.
- 30 Mar 2021
- Forum: MultiCharts
- Topic: Multiple timeframes - Weird indicator issue
- Replies: 8
- Views: 1491
Re: Multiple timeframes - Weird indicator issue
Kate, thank you for your response. I already have the "Base study on" data correct - in fact, the indicator outputs are equal on both of the aforementioned charts. The only difference between the two charts is the color of the crosses in the image above..
- 29 Mar 2021
- Forum: MultiCharts
- Topic: Multiple timeframes - Weird indicator issue
- Replies: 8
- Views: 1491
Multiple timeframes - Weird indicator issue
Hello- I have an issue with an indicator that uses the secondary timeframe on a multiple timeframe chart. The chart has a 500 contract 3-line break chart as the primary, visible chart, and a 3000 contract bar chart that's hidden. The indicator's datapoints are being plotted in the chart but the data...
- 29 Mar 2021
- Forum: MultiCharts
- Topic: Create Function multiple timeframes
- Replies: 3
- Views: 897
Re: Create Function multiple timeframes
Thank you kindly for the suggestion!
- 04 Jan 2021
- Forum: MultiCharts
- Topic: Create Function multiple timeframes
- Replies: 3
- Views: 897
Create Function multiple timeframes
Hello-
I'm trying to create a function that uses 2 data streams with different timeframes (data1, data2,...). Does anyone here have an example of how to do this? Is it similar to using 2 datasets in an indicator or strategy?
Thank you
I'm trying to create a function that uses 2 data streams with different timeframes (data1, data2,...). Does anyone here have an example of how to do this? Is it similar to using 2 datasets in an indicator or strategy?
Thank you
- 03 Jan 2021
- Forum: MultiCharts
- Topic: Reverse position from a specified entry
- Replies: 2
- Views: 793
Re: Reverse position from a specified entry
"It won't be possible to reverse from Entry2 into the short position because reversal means that the whole old position is closed and a reverse position for a specified number of contracts is opened." This is exactly what I'm trying to do! I want to close out all contracts if a specified entry is us...
- 19 Aug 2020
- Forum: MultiCharts
- Topic: Reverse position from a specified entry
- Replies: 2
- Views: 793
Reverse position from a specified entry
Hello- Is there a better way to reverse a position from a specific entry than the following? if Condition20 then begin buytocover from entry ("Rev-S1") next bar at Market; buy ("XR-L") next bar at Market; end; I tried using the syntax buy ("XR-L") from entry ("Rev-S1") next bar at market to reverse ...
- 05 Aug 2019
- Forum: MultiCharts
- Topic: ELCollections compile error [SOLVED]
- Replies: 5
- Views: 1643
Re: ELCollections compile error [SOLVED]
Thank you ABC. I searched for "ELCollections" in the forum, not the actual error (will do so in the future). I've already uninstalled/reinstalled the application; I've received no more of these errors.
- 04 Aug 2019
- Forum: MultiCharts
- Topic: ELCollections compile error [SOLVED]
- Replies: 5
- Views: 1643
Re: ELCollections compile error [SOLVED]
I'm not understanding "coding error", when I basically imported the ELCollections.eld (x64) file that I downloaded from the Multicharts website. Please explain.
- 04 Aug 2019
- Forum: MultiCharts
- Topic: ELCollections compile error [SOLVED]
- Replies: 5
- Views: 1643
ELCollections compile error [SOLVED]
Hello- I'm getting the following compile error when compiling the ELC functions: ------ Build started: ------ Study: "ELC.RaiseError" (Function) Please wait .... ------ Compiled with error(s): ------ Compile error line 0, column 0 I don't understand this error. I've checked to make sure the ELC dll ...
- 25 Aug 2016
- Forum: MultiCharts
- Topic: error msg "Can't find dll "elcollections2.dll"
- Replies: 4
- Views: 2727
error msg "Can't find dll "elcollections2.dll"
Hello- Is there a specified file path that the elcollections dll should be placed? Currently I have the ELCollections2.dll for MC64 located in D:\Program Files\TS Support\MultiCharts64 (I've tried it using the "C:\" path too, and get the same error message). I've also unblocked the dll, yet I'm stil...