Search found 24 matches

by mirek
06 Dec 2013
Forum: MultiCharts .NET
Topic: How to access first bar on the chart
Replies: 3
Views: 1623

Re: How to access first bar on the chart

Hi JoshM,

the problem is to identify how many bars are displayed in the current chart. It could be changed when you adjust distance between bars and so on.

The magic is done by following code:-(

Code: Select all

ChartPoint(Environment.LeftScreenTime.AddMinutes(0))
by mirek
06 Dec 2013
Forum: MultiCharts .NET
Topic: How to access first bar on the chart
Replies: 3
Views: 1623

How to access first bar on the chart

Hi all,

I would like to write some text data to replace 1st bar on the chart. I would like to know how to use ChartPoint to write to the most left location of the chart.

Thank you
mirek
by mirek
03 Dec 2013
Forum: MultiCharts .NET
Topic: Variable reset one time per bar [SOLVED]
Replies: 2
Views: 1709

Re: Variable reset one time per bar [SOLVED]

Hi JoshM,

the solution with EBarState is excellent. I would wish to see it somewhere in the doc:-)

Thx a lot.

mirek
by mirek
02 Dec 2013
Forum: MultiCharts .NET
Topic: Variable reset one time per bar [SOLVED]
Replies: 2
Views: 1709

Variable reset one time per bar [SOLVED]

Hi all, I need to reset 4 variables 1 time per bar, but the bar is updated by tick.Is it possible in MC.NET? I have found something similar in MC forum: var: Intrabarpersist playonce(0); if condition = true and playonce <> currentbar then begin playonce = currentbar; {-- put your alert here --} end;...
by mirek
29 Nov 2013
Forum: MultiCharts .NET
Topic: Line drawing from Study [SOLVED]
Replies: 3
Views: 1950

Re: Line drawing from Study [SOLVED]

Hi all,

it is solved by:
solidBrush = new SolidBrush(Color.FromArgb(80,80,80,80));

Where
A=80; //Alfa
R=80;//R part of Color.Gray
G=80;//G part of Color.Gray
B=80;//B part of Color.Gray

thank you to all for the help

mirek
by mirek
29 Nov 2013
Forum: MultiCharts .NET
Topic: Line drawing from Study [SOLVED]
Replies: 3
Views: 1950

Re: Line drawing from Study [SOLVED]

Hi Henry, thx for reply. I have checked IChartCustomDrawer example in Test_CostomDrawGrB and it is a solution for me. i jut need to point how to change brush: LinearGradientBrush linGrBrush I do not want to use gradient, but something what is transparent or just to fill the background. Can you point...
by mirek
28 Nov 2013
Forum: MultiCharts .NET
Topic: Line drawing from Study [SOLVED]
Replies: 3
Views: 1950

Line drawing from Study [SOLVED]

Hi all, I have read wiki and it says: There are three types of drawings in MultiCharts .NET, which can be created from a study: TrendLine, Text, and Arrow. I need to create line (not trend line) from study. Is it possible? Should I use "Chart Custom Draw"? Is there a simple example for the line only...
by mirek
08 Nov 2013
Forum: MultiCharts .NET
Topic: ITextObject at fixed position
Replies: 6
Views: 3143

Re: ITextObject at fixed position

Hi MidKnight, thx for reply. I have read your thread, but I need only text below bars. I do not need to place it anywhere on the screen. I wonder about that possibility in the next version of indicator, when I do not want to display it on separate chart, but on the same chart like the instrument. I ...
by mirek
06 Nov 2013
Forum: MultiCharts .NET
Topic: ITextObject at fixed position
Replies: 6
Views: 3143

Re: ITextObject at fixed position

Hi Henry, I have figured it out. I was not able to see anything on the new chart without instrument.The following code did it(AddMinutes(0) could be omitted): ChartPoint b1 = new ChartPoint(Bars.TimeValue.AddMinutes(0), -0.5); if (vp != null) { ITextObject textTotal_Volume = DrwText.Create(b1, vp.To...
by mirek
06 Nov 2013
Forum: MultiCharts .NET
Topic: ITextObject at fixed position
Replies: 6
Views: 3143

Re: ITextObject at fixed position

Hi Henry, thx for reply, but I need to do something else. I would like to display 4-5 text items per 1 bar in a separate chart window. Like this: Price bar4_item1 bar3_item1 bar2_item1 bar1_item1 50 bar4_item2 bar3_item2 bar2_item2 bar1_item2 40 bar4_item3 bar3_item3 bar2_item3 bar1_item3 30 bar4_it...
by mirek
05 Nov 2013
Forum: MultiCharts .NET
Topic: ITextObject at fixed position
Replies: 6
Views: 3143

ITextObject at fixed position

Hi all, I would like to use ITextObject in the different subchart than the instrument. I would like to have more text values displayed for each bar in the new subchart. Can you point me to example? It works at the same chart like the instrument, but the position below lowValue is not the best one. T...
by mirek
29 Oct 2013
Forum: MultiCharts .NET
Topic: Wrong plot for POC
Replies: 1
Views: 1419

Wrong plot for POC

Hi there, I am trying to plot POC, MaxVA and MinVA changes. The value is correctly displayed in text form, but plotting is completely wrong. The last values in the picture are: POC 15491 MinVA 15479 MaxVA 15562 However the plot has following values: POC 15375 MinVA 15339 MaxVA 15587 What is wrong? T...
by mirek
25 Oct 2013
Forum: MultiCharts .NET
Topic: Volume Delta as histogram [SOLVED]
Replies: 12
Views: 7250

Re: Volume Delta as histogram [SOLVED]

I have limited symbol to 1 day back only and it works. There is something wrong with the data or my DB. I am investigating. Thx for pointing me to the right direction.
by mirek
24 Oct 2013
Forum: MultiCharts .NET
Topic: Volume Delta as histogram [SOLVED]
Replies: 12
Views: 7250

Re: Volume Delta as histogram [SOLVED]

It seems that the study works with TS, InteractiveBrokers data and it does not work with Zen-Fire data.

Any idea?

mirek
by mirek
23 Oct 2013
Forum: MultiCharts .NET
Topic: Volume Delta as histogram [SOLVED]
Replies: 12
Views: 7250

Re: Volume Delta as histogram [SOLVED]

I had VP and my study enabled in the desktop. I have closed MC.NET and I have started it again the next day. The VP has been properly loaded and my study has reported the error. I have tried to disable study, disable VP and enable VP(with disabled study), wait till VP was fully loaded and then I hav...
by mirek
22 Oct 2013
Forum: MultiCharts .NET
Topic: Volume Delta as histogram [SOLVED]
Replies: 12
Views: 7250

Re: Volume Delta as histogram [SOLVED]

Hi all,

I closed MC.NET yesterday and restarted it today and I can not run my indicator. There is attached error. Can someone help?

Thank you
mirek
by mirek
21 Oct 2013
Forum: MultiCharts .NET
Topic: Volume Delta as histogram [SOLVED]
Replies: 12
Views: 7250

Re: Volume Delta as histogram [SOLVED]

Hi Henry, thx a lot code. It helped a lot. I have written something like this: using System; using System.Drawing; using System.Linq; using PowerLanguage.Function; using PowerLanguage.VolumeProfile; namespace PowerLanguage.Indicator{ public class _Volume_Stats : IndicatorObject { public _Volume_Stat...
by mirek
17 Oct 2013
Forum: MultiCharts .NET
Topic: Volume Delta as histogram [SOLVED]
Replies: 12
Views: 7250

Re: Volume Delta as histogram [SOLVED]

Hi Henry,

thx for response. Yes, I saw it, but i am not able to use it in the Indicator object. A small example would help how to use it.

I appreciate your help

mirek
by mirek
11 Oct 2013
Forum: MultiCharts .NET
Topic: Volume Delta as histogram [SOLVED]
Replies: 12
Views: 7250

Volume Delta as histogram [SOLVED]

Hi all, I have found details about Volume profile in the Reference guide for MC.NET. (thx for it) I would like to write an indicator(histogram) which displays volume delta for one bar. I think it is possible via Volume Profile when VP is setup for bar.I have found MaxDelta and MinDelta levels and I ...
by mirek
08 Feb 2013
Forum: MultiCharts .NET
Topic: How to input DateTime variable [SOLVED]
Replies: 6
Views: 3882

Re: How to input DateTime variable [SOLVED]

Hi Henry, thank you for the quick response and pointing me to the right direction. I am just posting code to help someone else if he needs it. If you have any comments just let me know. mirek public _myInd(object _ctx):base(_ctx) { STime = "09:30"; } [Input] public string STime { get; set; } private...
by mirek
08 Feb 2013
Forum: MultiCharts .NET
Topic: How to input DateTime variable [SOLVED]
Replies: 6
Views: 3882

How to input DateTime variable [SOLVED]

Hi all,

I would like to use time variable for start and end of calculation (STime, ETime). Can someone point me to the example in MC.NET?

I want to compare variable later with Bar.Time.

Thank you
mirek
EL format of variable was STime=0930.
by mirek
24 Jan 2013
Forum: MultiCharts
Topic: TS tick data getting "stuck"
Replies: 9
Views: 3214

Re: TS tick data getting "stuck"

Hi all,

is there any progress? I am using TS 9.1(and MC.NET) and the data is refreshed only when you do changes into symbol? Is there any hint here?

IB data started to work when I changed Build Volume to based on Tick. TS data is stuck:-(

Thank you for any help.
by mirek
09 Jan 2013
Forum: MultiCharts .NET
Topic: MC.NET previous day close
Replies: 9
Views: 4816

Re: MC.NET previous day close

Hi Henry,

thank you for the comment. I am using it only for CloseD of previous day and it seems the output is fine. I am aware that it does not fully replace the function CloseD with all possible history.

It would be nice to have full function in MC.NET.

mirek
by mirek
08 Jan 2013
Forum: MultiCharts .NET
Topic: MC.NET previous day close
Replies: 9
Views: 4816

MC.NET previous day close

Hi all,

I apologies for newbie question. I would like to get "Close of the previous day" (EL CloseD()) in MC.NET. Can you direct me to the correct code sample?

thank you
mirek

PS: Is this a proper way?

Code: Select all

double CloseD=0;

if (Bars.Time[0].Date != Bars.Time[1].Date) CloseD = Bars.Close[1];

Go to advanced search