Search found 29 matches

by Sylpha
31 Jul 2020
Forum: MultiCharts
Topic: Scope of variable [SOLVED]
Replies: 3
Views: 907

Re: Scope of variable [SOLVED]

Thanks TJ.
by Sylpha
31 Jul 2020
Forum: MultiCharts
Topic: Scope of variable [SOLVED]
Replies: 3
Views: 907

Scope of variable [SOLVED]

inputs: DonchianChannelLength(6); variables: currentDateTime(0), tradeDateBeginTime(915), tradeDateEndTime(1610), morningSessionBeginTime(915), morningSessionEndTime(1155), morningSessionFirstEntyTime(945), morningSessionLastEntyTime(1130), afternoonSessionBeginTime(1300), afternoonSessionEndTime(1...
by Sylpha
19 Jun 2018
Forum: MultiCharts
Topic: Plots change when I scroll the charts
Replies: 3
Views: 952

Re: Plots change when I scroll the charts

Hi TJ,

Sorry I don't get what you said above, could you explain a bit more please? Thanks.
by Sylpha
18 Jun 2018
Forum: MultiCharts
Topic: Plots change when I scroll the charts
Replies: 3
Views: 952

Plots change when I scroll the charts

MC Version 11.0 Release (Build 16148) Found something strange when I look at the charts today. I have plot the DonchianChannel with 5 days period on the charts with below code. inputs: period (NumericSimple), myMid (NumericRef), myUpper (NumericRef), myLower (NumericRef); myUpper = Highest(H, period...
by Sylpha
29 Oct 2015
Forum: MultiCharts
Topic: Is there any way to plot the indicator on the price series? [SOLVED]
Replies: 3
Views: 1603

Re: Is there any way to plot the indicator on the price seri [SOLVED]

Can I do this using easy language instead of the chart template?
by Sylpha
30 Sep 2015
Forum: MultiCharts
Topic: Is there any way to plot the indicator on the price series? [SOLVED]
Replies: 3
Views: 1603

Is there any way to plot the indicator on the price series? [SOLVED]

Same as using SameAsSymbol in MC.NET, but I want to do it in Power Lanauge.. Thanks.
by Sylpha
25 Jun 2015
Forum: MultiCharts .NET
Topic: Indicator inside the Signal problem [SOLVED]
Replies: 4
Views: 2802

Re: Indicator inside the Signal problem [SOLVED]

Attached. Thanks a lot.
by Sylpha
25 Jun 2015
Forum: MultiCharts .NET
Topic: Indicator inside the Signal problem [SOLVED]
Replies: 4
Views: 2802

Re: Indicator inside the Signal problem [SOLVED]

attached the workspace, signal and indicator
by Sylpha
25 Jun 2015
Forum: MultiCharts .NET
Topic: Indicator inside the Signal problem [SOLVED]
Replies: 4
Views: 2802

Indicator inside the Signal problem [SOLVED]

I have tried to use my custom indicator inside a signal but the order generated are all wrong. The screen is showing a messy order entry and exit, but if you read the code, it shouldn't generate so many orders. Any clue about this?? I have displayed the two MAs on the charts, it should not be possib...
by Sylpha
25 Jun 2015
Forum: MultiCharts .NET
Topic: MaxBarsBack in Signal problem [SOLVED]
Replies: 5
Views: 3049

Re: MaxBarsBack in Signal problem [SOLVED]

I think I nail down the problem.... If I comment out the Execlnfo.MaxBarsBack = Period-1 then it is fine....but why? The strategy's maxbarsback itself is 500, which is so much longer than the period pass into the indicator already. protected override void StartCalc() { // assign inputs //ExecInfo.Ma...
by Sylpha
25 Jun 2015
Forum: MultiCharts .NET
Topic: MaxBarsBack in Signal problem [SOLVED]
Replies: 5
Views: 3049

Re: MaxBarsBack in Signal problem [SOLVED]

Hi Henry,

I have attached the workspace, indicator and the signal. Please have a look and advise since I don't even try to read the values so I am not sure why the AddIndicator call will throw errors....
by Sylpha
25 Jun 2015
Forum: MultiCharts .NET
Topic: Changing plot colour on the fly problem [SOLVED]
Replies: 5
Views: 3502

Re: Changing plot colour on the fly problem [SOLVED]

Hi Henry,

Attached the workspace and the indicator.
by Sylpha
23 Jun 2015
Forum: MultiCharts .NET
Topic: MaxBarsBack in Signal problem [SOLVED]
Replies: 5
Views: 3049

Re: MaxBarsBack in Signal problem [SOLVED]

Error message. Why does it complaint (1) bar only?
Screen Shot 2015-06-24 at 11.39.22 am.jpg
(25.24 KiB) Downloaded 845 times
by Sylpha
23 Jun 2015
Forum: MultiCharts .NET
Topic: MaxBarsBack in Signal problem [SOLVED]
Replies: 5
Views: 3049

MaxBarsBack in Signal problem [SOLVED]

A bit driving me nuts... I tried to code some very simple signal using my own indicator as below: using System; using System.Drawing; using System.Linq; using PowerLanguage.Function; using ATCenterProxy.interop; namespace PowerLanguage.Strategy { public class Jeffrey_SimpleHMADailyLE : SignalObject ...
by Sylpha
23 Jun 2015
Forum: MultiCharts .NET
Topic: Changing plot colour on the fly problem [SOLVED]
Replies: 5
Views: 3502

Re: Changing plot colour on the fly problem [SOLVED]

I suspect that this is expected behaviour; if I recall correctly there were also topics about this with the regular MultiCharts edition, although I cannot find them now. Anyway, try displacing the plot. I think that would give the behaviour you're after (if I understand you correctly). So change th...
by Sylpha
23 Jun 2015
Forum: MultiCharts .NET
Topic: Changing plot colour on the fly problem [SOLVED]
Replies: 5
Views: 3502

Changing plot colour on the fly problem [SOLVED]

I have tried to change the plot colour based on the indicator value is rising or falling, however it doesn't quite working during the turning point. Attached the screen shot. The code is like: if (hmaSeries[0]>=hmaSeries[1]) { hmaPlot.Set(0, hmaSeries[0], Color.LightGreen); } else { hmaPlot.Set(0, h...
by Sylpha
01 May 2015
Forum: MultiCharts .NET
Topic: ATR is not working during backtest [SOLVED]
Replies: 4
Views: 2616

Re: ATR is not working during backtest [SOLVED]

I tried to comment the maxbarsback in the custom ATR but still the same problem. Honestly I don't know why. The problem seems come from the maxbarbacks of the strategy.

The maxbarbacks of the Strategy needs to inline with the indicator. Resolved now.
by Sylpha
29 Apr 2015
Forum: MultiCharts .NET
Topic: ATR is not working during backtest [SOLVED]
Replies: 4
Views: 2616

Re: ATR is not working during backtest [SOLVED]

Hello Sylpha, In your Jxxxxx_ATR study you have explicitly specified ExecInfo.MaxBarsBack = 1; I tried to hardcode the MaxBarsBack in the strategy to match with my custom atr, no luck. Also I tried to use MC.NET's atr but it throws buffer overflow exception. I need someone to explain why these two ...
by Sylpha
27 Apr 2015
Forum: MultiCharts .NET
Topic: ATR is not working during backtest [SOLVED]
Replies: 4
Views: 2616

ATR is not working during backtest [SOLVED]

I tried to implement a strategy as attached. When I use my own version of ATR (Jxxxxx_ATR) and run the backtest, MC.NET will throw error saying "Tried to Reference more bars (1) than allowed by MaxBarBackSetting. Please increase the MaxBarBackSetting". However when I change the MaxBarBackSetting (sa...
by Sylpha
26 Apr 2015
Forum: MultiCharts .NET
Topic: Can MC.NET show a chart with indicators during backtesting?
Replies: 3
Views: 2410

Re: Can MC.NET show a chart with indicators during backtesti

Thanks for answering this!

Does it mean I can use the Plot.Set(Bars.Close[0]) inside a strategy?

If so, then how can I call the chart from the backtesting?
by Sylpha
25 Apr 2015
Forum: MultiCharts .NET
Topic: Can MC.NET show a chart with indicators during backtesting?
Replies: 3
Views: 2410

Can MC.NET show a chart with indicators during backtesting?

I am from NT7 so I am looking for some features like: When I back test a strategy, the system can show a chart and displaying all the entry/exist orders and the plot of all the indicators involves in the signal(s). So that I can have a visual view about how the signal working on a data series instea...
by Sylpha
23 Apr 2015
Forum: MultiCharts .NET
Topic: Continuous Contract Setup and Issue
Replies: 8
Views: 4327

Re: Continuous Contract Setup and Issue

Hi Henry, From the below page: https://www.multicharts.com/trading-software/index.php/Symbol_Mapping It mentions "Data Source = Broker Symbol mapping is automatically correct if the data on chart comes from a data source that is your broker at the same time. Examples: IB, CQG, LMAX and so on. A mapp...
by Sylpha
22 Apr 2015
Forum: MultiCharts .NET
Topic: Continuous Contract Setup and Issue
Replies: 8
Views: 4327

Re: Continuous Contract Setup and Issue

Thanks for the answer Henry, it is useful.

If I use Interactive Broker for both datafeed and order execution, do I still need to setup the symbol mapping? (For contract auto rollover)
by Sylpha
22 Apr 2015
Forum: MultiCharts .NET
Topic: How can I find the highest and lowest value of the series [SOLVED]
Replies: 1
Views: 2577

How can I find the highest and lowest value of the series [SOLVED]

I am trying to implement a Donchian channel indicator which needs to find the highest and lowest value of the past <period> bar. Say period is 20 then I need to find the highest and lowest value of the previous 20 bars every time I call the CalcBar() method. Is there any simple way to do this? Inste...
by Sylpha
21 Apr 2015
Forum: MultiCharts .NET
Topic: How to access the previous value of an indicator? [SOLVED]
Replies: 2
Views: 2251

Re: How to access the previous value of an indicator? [SOLVED]

One more question, how can I store the indicator value of current bar into a array so that I have a series of values that I can read anytime?
by Sylpha
21 Apr 2015
Forum: MultiCharts .NET
Topic: How to access the previous value of an indicator? [SOLVED]
Replies: 2
Views: 2251

How to access the previous value of an indicator? [SOLVED]

public class New_ATR : IndicatorObject { [Input] public int period { get; set; } private double trueRange; private double averageTrueRange; private IPlotObject plot1; public New_ATR(object _ctx): base(_ctx){ // default 14 days period = 14; } protected override void Create() { // create variable obj...
by Sylpha
16 Apr 2015
Forum: MultiCharts .NET
Topic: Continuous Contract Setup and Issue
Replies: 8
Views: 4327

Re: Continuous Contract Setup and Issue

One more problem: Since I can only get HSI symbol back to sometime in 2013, if I want to bulk create the symbol prior to 2013. How can I use the import symbol list function to create the contract properly? Properly means create the contract with correct expiration date and session template. However ...
by Sylpha
16 Apr 2015
Forum: MultiCharts .NET
Topic: Continuous Contract Setup and Issue
Replies: 8
Views: 4327

Re: Continuous Contract Setup and Issue

Thanks TJ.

Then can I auto trade with this continuous future contract? Will system auto rollover i) The market data provide that I have create all the forth coming contract & ii) The position for me?
by Sylpha
15 Apr 2015
Forum: MultiCharts .NET
Topic: Continuous Contract Setup and Issue
Replies: 8
Views: 4327

Continuous Contract Setup and Issue

MC version: MC.NET 9.0.10761 64bits on Win 7. I have tried to setup a continuous contract for Hang Seng Index Future using IB as data source (Symbol root is HSI). Setting as below: http://pasteboard.co/2B4GpxZv.jpg However when I tried to put this contract in the watch list, MC complaints about this...

Go to advanced search