Search found 22 matches

by ~Zola~
21 Oct 2020
Forum: MultiCharts .NET
Topic: FXBS2 indicator - Anyone have this indicator for MC.Net?
Replies: 0
Views: 773

FXBS2 indicator - Anyone have this indicator for MC.Net?

Anyone could share this indicator to us. Thank you.
by ~Zola~
30 Aug 2020
Forum: MultiCharts .NET
Topic: Is it possible to add a new broker in Broker Profiles?
Replies: 1
Views: 1131

Is it possible to add a new broker in Broker Profiles?

I would like to add a broker "Futu" to MC, how to do that?
by ~Zola~
05 Dec 2019
Forum: MultiCharts .NET
Topic: Variable issue - unexpected outcome during the calculation [SOLVED]
Replies: 2
Views: 1454

Re: Variable issue - unexpected outcome during the calculation [SOLVED]

MarketPosition had not been real established under IOGMode, so that the program not work
by ~Zola~
04 Dec 2019
Forum: MultiCharts .NET
Topic: Doing Different Things in "CalcBar()" Affects what is Treated as 1st Bar
Replies: 6
Views: 2507

Re: Doing Different Things in "CalcBar()" Affects what is Treated as 1st Bar

If a moving average is, for example, "34" in length, it would calculate the moving average of bar "1", and the rest is calculated as "0" ( or the same as value of the 1st bar ). The solution would be to add virtual bars (values), as "0", from actual 1st bar to where the calculation starts, as bars ...
by ~Zola~
04 Dec 2019
Forum: MultiCharts .NET
Topic: Variable issue - unexpected outcome during the calculation [SOLVED]
Replies: 2
Views: 1454

Variable issue - unexpected outcome during the calculation [SOLVED]

I suspected I am using the wrong method to define the variable in the program, so that the calculation is in error. Here is the output as below: Current Time:1/2/2001 9:57:00, Bars.High:15911, TempL:15890 , Testing TempL Current Time:2/2/2001 11:02:00 , Bars.High:16140, TempL:16105 , After Shortsell...
by ~Zola~
12 Jul 2019
Forum: MultiCharts .NET
Topic: Is that have any limitation under 2-D array? [SOLVED]
Replies: 8
Views: 2807

Re: Is that have any limitation under 2-D array? [SOLVED]

~Zola~, when you declare an array in C# the number within brackets is the number of elements. The first element however is at index 0. That's why int[,] array2Da = new int[4, 2 ] creates a two dimensional array with four rows and two columns, but int[,] Score = new int[24001, 1 ] is not really two ...
by ~Zola~
12 Jul 2019
Forum: MultiCharts .NET
Topic: Is that have any limitation under 2-D array? [SOLVED]
Replies: 8
Views: 2807

Re: Is that have any limitation under 2-D array? [SOLVED]

Thanks for your reply.
I declared "private int[,] Score = new int[24001,1];", anything I still missing?
~Zola~,

check out the link I posted.

Regards,

ABC
the link "int[,] array2Da = new int[4, 2]"
my code "int[,] Score = new int[24001,1]"

It seems that no difference.
by ~Zola~
12 Jul 2019
Forum: MultiCharts .NET
Topic: Is that have any limitation under 2-D array? [SOLVED]
Replies: 8
Views: 2807

Re: Is that have any limitation under 2-D array? [SOLVED]

~Zola~, your code doesn't declare a 2-D array and consequently you receive an error when you try to access a second dimension of a one dimensional array. Take a look at the link below for examples on how to create multi dimensional arrays in C#: https://docs.microsoft.com/en-us/dotnet/csharp/progra...
by ~Zola~
11 Jul 2019
Forum: MultiCharts .NET
Topic: Is that have any limitation under 2-D array? [SOLVED]
Replies: 8
Views: 2807

Re: Is that have any limitation under 2-D array? [SOLVED]

I have downscale the 2D array to double[3400, 1], but the issue still happen. I only resolve the error when I change it to single array. How could I resolve this problem?
by ~Zola~
11 Jul 2019
Forum: MultiCharts .NET
Topic: Is that have any limitation under 2-D array? [SOLVED]
Replies: 8
Views: 2807

Is that have any limitation under 2-D array? [SOLVED]

using System; using System.Drawing; using System.Linq; using PowerLanguage.Function; namespace PowerLanguage.Indicator{ public class Z_testing_array2 : IndicatorObject { private int[,] Score = new int[24001,1]; public Z_testing_array2(object _ctx):base(_ctx){} protected override void Create() { // ...
by ~Zola~
04 Jun 2019
Forum: MultiCharts
Topic: Why the currentbar reset again when I used the reserve word "date"? The issue only happen for once, is it a bug? [SOLVED]
Replies: 5
Views: 1415

Re: Why the currentbar reset again when I used the reserve word "date"? The issue only happen for once, is it a bug? [SOLVED]

MaxBarsBack caused the recalc.
I can use the volume[1] or high[1], etc to resolve this issue. Thank you for your reply again.
by ~Zola~
04 Jun 2019
Forum: MultiCharts
Topic: Why the currentbar reset again when I used the reserve word "date"? The issue only happen for once, is it a bug? [SOLVED]
Replies: 5
Views: 1415

Re: Why the currentbar reset again when I used the reserve word "date"? The issue only happen for once, is it a bug? [SOLVED]

MaxBarsBack caused the recalc.
Thanks TJ. I have checked this part and set the parameter "1" to [Max number of bars] User Specified. The currentbar does not recalc, but counted second bar as "currentbar = 1" instead of first bar from the 1 min chart.
by ~Zola~
02 Jun 2019
Forum: MultiCharts
Topic: Why the currentbar reset again when I used the reserve word "date"? The issue only happen for once, is it a bug? [SOLVED]
Replies: 5
Views: 1415

Re: Why the currentbar reset again when I used the reserve word "date"? The issue only happen for once, is it a bug? [SOLVED]

Inputs: pBars(2), VolumeRatio(1.26785563); variables: tvAverage(0), vAverage(0), vBar(0), MeaningfulVolume(91), mDay(1); for value1 = 1 to 3 begin if currentbar = value1 then begin value2 = Ticks + value2; print("Ticks: ", Ticks, ", Total volume: ", value2, ", Time: ", Time, ", currentbar: ", curre...
by ~Zola~
31 May 2019
Forum: MultiCharts
Topic: Why the currentbar reset again when I used the reserve word "date"? The issue only happen for once, is it a bug? [SOLVED]
Replies: 5
Views: 1415

Why the currentbar reset again when I used the reserve word "date"? The issue only happen for once, is it a bug? [SOLVED]

variables: tvAverage(0), vAverage(0), vBar(0), MeaningfulVolume(91), mDay(1); for value1 = 1 to 3 begin if currentbar = value1 then begin value2 = Ticks + value2; print("Ticks: ", Ticks, ", Total volume: ", value2, ", Time: ", Time); end; end; if currentbar > 20 then begin if month(date) <> month(d...
by ~Zola~
22 May 2019
Forum: MultiCharts
Topic: Using the reserved word “TL_New” [SOLVED]
Replies: 14
Views: 3163

Re: Using the reserved word “TL_New” [SOLVED]

You'll find it if you scroll all the way to the Left side of your chart. (earliest date).
It's very small but the text size can be made larger very easily.
See the Trendline test image.jpgattached chart.
Many thanks for your reply, I got it.
by ~Zola~
22 May 2019
Forum: MultiCharts
Topic: Using the reserved word “TL_New” [SOLVED]
Replies: 14
Views: 3163

Re: Using the reserved word “TL_New” [SOLVED]

~Zola~, the code is designed to create the drawings only once when the study gets executed i.e. it will apply them on the first bar after your max bars back settings. Having said that you should be able to find the drawings close to the start of your chart. Regards, ABC Many thanks for your reply, ...
by ~Zola~
21 May 2019
Forum: MultiCharts
Topic: Using the reserved word “TL_New” [SOLVED]
Replies: 14
Views: 3163

Re: Using the reserved word “TL_New” [SOLVED]

Scaling should be "Same as Instrument".
Thank you for your reply. Still not work.
by ~Zola~
21 May 2019
Forum: MultiCharts
Topic: Using the reserved word “TL_New” [SOLVED]
Replies: 14
Views: 3163

Re: Using the reserved word “TL_New” [SOLVED]

Hi ~Zola~,

can you post a screenshot of the chart with the study applied, as this might help us in understanding the cause.

Regards,

ABC
Thank you for your reply. I clicked the "Insert study" and added an indicator call "Trend V0". Attached please find the setting screen for your reference.
by ~Zola~
21 May 2019
Forum: MultiCharts
Topic: Using the reserved word “TL_New” [SOLVED]
Replies: 14
Views: 3163

Re: Using the reserved word “TL_New” [SOLVED]

What is your chart resolution?

ie the chart type and interval?
I have tried the "Bar Chart" and "Hollow Candlestick Chart" with 1 minute or 1 day resolution.
by ~Zola~
20 May 2019
Forum: MultiCharts
Topic: Using the reserved word “TL_New” [SOLVED]
Replies: 14
Views: 3163

Re: Using the reserved word “TL_New” [SOLVED]

Please see posts #1 & #2
How to post codes
viewtopic.php?t=11713
Thanks
by ~Zola~
20 May 2019
Forum: MultiCharts
Topic: Using the reserved word “TL_New” [SOLVED]
Replies: 14
Views: 3163

Using the reserved word “TL_New” [SOLVED]

Variables: TLID(-1), TxtID(-1); once begin TLID = TL_New(Date[10], Time[10], Close, Date, Time, Close); TL_SetColor(TLID, red); TL_SetSize(TLID, 2); TL_SetStyle(TLID, 2); TxtID = Text_New(Date, Time, Close, "Hello World!"); end; ----------------------------------------------------------------------...

Go to advanced search