Search found 11 matches
- 29 Apr 2022
- Forum: MultiCharts
- Topic: Array_SetMaxIndex for bidimensional array
- Replies: 0
- Views: 522
Array_SetMaxIndex for bidimensional array
Good moring, Someone has already created a function like Array_SetMaxIndex for a matrix (bidimensional array) ? Or can someone can help me to create the function? The function would serve me to restrict the row of the matrix, keeping the column unchanged where matrix is defined as matrix[Row, Column...
- 14 Apr 2022
- Forum: MultiCharts
- Topic: 2 dimension array sort
- Replies: 1
- Views: 385
2 dimension array sort
Hello,
I would like to sort a 2 dimension array. Is it possible to write a function that takes in input the array and the number of column on to be the sorting.
Function array_sort is only for 1 dimension array.
someone can help me?
Thanks
I would like to sort a 2 dimension array. Is it possible to write a function that takes in input the array and the number of column on to be the sorting.
Function array_sort is only for 1 dimension array.
someone can help me?
Thanks
- 04 Apr 2022
- Forum: MultiCharts
- Topic: Data1 Data2
- Replies: 6
- Views: 1668
Re: Data1 Data2
Can you explain, in your view, the function and purpose of "intrabarpersist" ? Hello, The above code is only for testing purpose. The goal is to update data2 and indicator AVG2 in real time when data1 is updating. Now I know this can be done with Realtime-History Matching option unchecked on signal...
- 04 Apr 2022
- Forum: MultiCharts
- Topic: Data1 Data2
- Replies: 6
- Views: 1668
Re: Data1 Data2
I have done some test with code below: 1)Intrabarpersist on variable CL1, CL2, AVG1,AVG2, dosen t affect the behavior. The same result with and without. 2)Realtime-History Matching option unchecked (disable) on signal produce real time update data on data2 (average AVG2 and Close Cl2 value) as I wan...
- 23 Mar 2022
- Forum: MultiCharts
- Topic: Data1 Data2
- Replies: 6
- Views: 1668
Re: Data1 Data2
See post #5 https://www.multicharts.com/discussion/viewtopic.php?t=6929 Hello TJ! I try to change my code, but always the same behavior Variables: intrabarpersist Cl1(0,data1), intrabarpersist Cl2(0,data2); once cleardebug; if (BarStatus(1) = 2) and (LastBarOnChart_s = true) then begin CL1 = Close ...
- 22 Mar 2022
- Forum: MultiCharts
- Topic: Data1 Data2
- Replies: 6
- Views: 1668
Data1 Data2
Hello, I am using 2 Time frame: data1 with 1min, data2 240min. On data1 run the following script in real time. Data1 is update correclty on every 1min when bar is close. This is ok! On Data2, Close of data 2 (CL2 ) remain always the same, because the bar is not changhed yet. I would to like to updat...
- 16 Mar 2022
- Forum: MultiCharts
- Topic: Data1 Data2 update
- Replies: 2
- Views: 660
Re: Data1 Data2 update
Sorry, the time fame are: data1 5min, data2 240 min (not 2min as I wrote)
- 15 Mar 2022
- Forum: MultiCharts
- Topic: Data1 Data2 update
- Replies: 2
- Views: 660
Data1 Data2 update
Hello, I am using 2 Time frame. data1 with 5min, data2 240min. On data1 run the following script in real time. On Data1 is update MA1 (MA1[0] exponential moving average) on every 5min when bar is close. On Data2, MA2 (MA2[0] exponential moving average on data2) remain always the same, because the ba...
- 10 Mar 2022
- Forum: MultiCharts
- Topic: Trading system with Data1... DataN
- Replies: 3
- Views: 867
Re: Trading system with Data1... DataN
Thank you for your answer.
However I meant with "TS" Trading System and not TS. Sorry for my post. Now I have corrected.
Again, any help will be appreciated.
Thank you!
However I meant with "TS" Trading System and not TS. Sorry for my post. Now I have corrected.
Again, any help will be appreciated.
Thank you!
- 03 Mar 2022
- Forum: MultiCharts
- Topic: Trading system with Data1... DataN
- Replies: 3
- Views: 867
Trading system with Data1... DataN
Good morning, I would like to translate my Trading System on Multichart. I am reading a lot but I am a bit confused. Here same question: 1) I used several time frame in the code. In this case I read that I have to insert Data1 (the first with faster time frame) and data2... datan in the chart and ca...
- 02 Mar 2022
- Forum: MultiCharts
- Topic: Returning open price current bar -Multi-Data Reference
- Replies: 5
- Views: 2378
Re: Returning open price current bar -Multi-Data Reference
Thanks for the tips on posting code TJ, I figured out how to reference data2 properly so that part works. The problem is still how to get the current bar open when I call data2. I am getting the open of the previous bar not the current bar. I am converting code from MT and I am trying to get the va...