Search found 31 matches

by brianhclo
16 Nov 2015
Forum: MultiCharts
Topic: IB Friends and Family account [SOLVED]
Replies: 6
Views: 3561

Re: IB Friends and Family account [SOLVED]

Thanks. I figured out how it works now.

I was a little confused because when I setup a broker profile, you could specify the allocation methods as well. This is why I assumed each broker will have its own allocation method, when in fact you can have multiple allocation methods under one profile.
by brianhclo
09 Nov 2015
Forum: MultiCharts
Topic: Calculating signal when data1 is not updating
Replies: 1
Views: 510

Calculating signal when data1 is not updating

Hi guys, I have an issue which I am not sure how to get around. Setup: Data1 - TimezoneA Data2 - TimezoneA Data3 - TimezoneB When calculating signal to trade Symbol1, I need to refer to Data3 during its trading hours where Data1 is not updating (market closed). However it seems that whenever Data1 i...
by brianhclo
09 Nov 2015
Forum: MultiCharts
Topic: IB Friends and Family account [SOLVED]
Replies: 6
Views: 3561

Re: IB Friends and Family account [SOLVED]

Tony, It seemed with IB, I needed to change some settings in the broker profile properties. Before making a change it was not possible to have 2 profiles connected at the same time. I guessed and made a change in "ClientID" from "0" to "1". It then works. Anyone who is trading IB advisor account on ...
by brianhclo
09 Nov 2015
Forum: MultiCharts
Topic: IB Friends and Family account [SOLVED]
Replies: 6
Views: 3561

Re: IB Friends and Family account [SOLVED]

tony, thanks for your advice. Do you know how to have 1+ broker profiles connected at the same time? I will have one strategy 100% allocated to account 1 and another to account 2. It seem that I cannot have 2 interactive brokers profile connected at the same time. Is it something to do with port num...
by brianhclo
28 Oct 2015
Forum: MultiCharts
Topic: IB Friends and Family account [SOLVED]
Replies: 6
Views: 3561

IB Friends and Family account [SOLVED]

I will be trading thru interactive brokers friends and family account to manage money for a few of my relatives. I was wondering if there is any tutorial that shows how to code/allocate positions to a specific sub account. For example, if it possible to tell multicharts which strategies are for whic...
by brianhclo
28 Oct 2015
Forum: MultiCharts
Topic: CloseD, openD functions
Replies: 7
Views: 1154

Re: CloseD, openD functions

I am using 10 seconds chart for the trading instrument (Hang Seng Futures). Day close for SPX means the official closing price for S&P500, 4pm EST I believe. So at 930am HK Time 28th Oct, I would like to reference S&P500 Official Closing Price on the 27th Oct ~EST 4pm S&P500 Official Closing Price o...
by brianhclo
28 Oct 2015
Forum: MultiCharts
Topic: CloseD, openD functions
Replies: 7
Views: 1154

Re: CloseD, openD functions

example,

On the 28/10, I am trading Hang Seng Futures, and my strategy wants to be able to reference to SPX Day Close on 27/10 and 26/10.

Previously when all instruments have the same time session I was able to use CloseD(1) and CloseD(2).
by brianhclo
28 Oct 2015
Forum: MultiCharts
Topic: CloseD, openD functions
Replies: 7
Views: 1154

Re: CloseD, openD functions

TJ, got you.

In my case I need to trade Hang Seng Futures via calling closing prices of SPX on t-1 and t-2, what would be your suggestion? I guess CloseD wouldnt work here?
by brianhclo
28 Oct 2015
Forum: MultiCharts
Topic: CloseD, openD functions
Replies: 7
Views: 1154

Re: CloseD, openD functions

I would like to call spx close t-1 and t-2, hang seng close t-1 and open t. However checking in output it seem it is not grabbing the values correctly. Example, on 28/10 HKTime 930am I would like Spx close 27/10, 26/10 Hang seng index close 27/10, open 28/10. I think that you're getting the wrong v...
by brianhclo
28 Oct 2015
Forum: MultiCharts
Topic: CloseD, openD functions
Replies: 7
Views: 1154

CloseD, openD functions

My setup is the following: Chart 1: hang seng index futures Chart 2: hang seng index Chart 3: s&p500 I have chosen 24/5 as time session. I would like to call spx close t-1 and t-2, hang seng close t-1 and open t. However checking in output it seem it is not grabbing the values correctly. Example, on...
by brianhclo
22 Oct 2015
Forum: MultiCharts
Topic: Exchange time v machine time
Replies: 2
Views: 702

Exchange time v machine time

Currently I am running a few strategies that enter/exit the market when conditions are meet at a specific time. i.e. If time_s = TimeA then begin ..... the problem is that sometimes time_s actually follows the time on my windows machine, and there are occasions where there is a few seconds differenc...
by brianhclo
17 Nov 2014
Forum: MultiCharts
Topic: Execution delay [SOLVED]
Replies: 25
Views: 5915

Re: Execution delay [SOLVED]

I dont think so to be honest. I am trading HSI/HHI.HK and the volume is probably more than an average day but nothing spectacular.

To help me understand the issue. Do you think its due to

1) speed of data feed?
2) computational speed?
3) order transmission speed? (unlikely i think)
by brianhclo
17 Nov 2014
Forum: MultiCharts
Topic: Execution delay [SOLVED]
Replies: 25
Views: 5915

Execution delay [SOLVED]

Hi Guys, This morning I ran 2 strategies live and when it is time to execute (I used time based orders) I see the following message highlighted in RED at the bottom of the MC. "the longest batch of order queues is XX / maximum delay of a processed batch of is 29 seconds." And that after the trade wa...
by brianhclo
16 Nov 2014
Forum: MultiCharts
Topic: Data feed free trials?
Replies: 9
Views: 1440

Data feed free trials?

I am using IB at the moment for trading and data. I would like a longer history for symbols such as ES, NQ, US Stocks, HSI, HHI.HK.

Do you know if any other decent vendors that offers longer history and free trials?

Thanks,
Brian
by brianhclo
10 Nov 2014
Forum: MultiCharts
Topic: Code an indicator where you can specify Data series [SOLVED]
Replies: 2
Views: 972

Code an indicator where you can specify Data series [SOLVED]

I have a multi data charts, I would like to code an indicator whereby I could apply it to either Data1, Data2 etc...

Say normally I would plot
"plot1( SMA of Data2, "SMA");"

at the same time I may plot for Data3, 4 etc...

Do you know how I can have the Data number as an input?
by brianhclo
09 Nov 2014
Forum: MultiCharts
Topic: Coding a function to calculate volatility
Replies: 16
Views: 1913

Re: Coding a function to calculate volatility

OZ Trade, I am able to get a value of Log(OpenD(0)/dayClose[1]), they output just fine. Anyone has any ideas? The StandardDev function does not like the value of Log( OpenD(0) / dayClose[1]) BL_CO_VOL = var0 * StandardDev( Log( OpenD(0) / dayClose[1] ), NumDays, 1 ) ; Put a double forward slash // i...
by brianhclo
09 Nov 2014
Forum: MultiCharts
Topic: Coding a function to calculate volatility
Replies: 16
Views: 1913

Re: Coding a function to calculate volatility

Thanks for looking into this.

My code compiles too, I dont think the changes solve the problem.
by brianhclo
09 Nov 2014
Forum: MultiCharts
Topic: Coding a function to calculate volatility
Replies: 16
Views: 1913

Coding a function to calculate volatility

HI MC Experts. I am new to MC, I would like to code a function but ran into some problems. What I need: I would like to calculate the Standard Deviation of overnight returns on a 1 minute chart. i.e. For 3 days, Vol = Stdev( ln(Open(today)/Close(t-1)), ln(Open(t-1)/Close(t-2)), ln(Open(t-2)/Close(t-...
by brianhclo
29 Oct 2014
Forum: MultiCharts
Topic: Time based order
Replies: 5
Views: 605

Re: Time based order

:: Thanks TJ. In fact I am opening a position close to market close. Anyways do you know anyways that I can place orders at 1559+30 seconds instead of 1559? Try CURRENTTIME_S requires IOG Caution: your computer clock better be accurate. Thanks alot. May I ask you one more thing. Do you think it is ...
by brianhclo
29 Oct 2014
Forum: MultiCharts
Topic: Time based order
Replies: 5
Views: 605

Re: Time based order

I have a 1 minute chart. Currently I am placing orders when time equals an input like this 1230 I would like to know if it is possible to be more precise and specify the seconds as well? i.e. 123030 (12:30:30) This is because I would like to place order as close to the closing time as possible. Tha...
by brianhclo
29 Oct 2014
Forum: MultiCharts
Topic: Time based order
Replies: 5
Views: 605

Time based order

I have a 1 minute chart. Currently I am placing orders when time equals an input like this 1230 I would like to know if it is possible to be more precise and specify the seconds as well? i.e. 123030 (12:30:30) This is because I would like to place order as close to the closing time as possible. Than...
by brianhclo
14 Oct 2014
Forum: MultiCharts
Topic: Plotting a variable
Replies: 4
Views: 825

Plotting a variable

can someone show me an example whereby a variable can be plotted on the same chart?

I want to plot the "Signal" variable so that I can visualize whether a trade is likely or not.

Thanks so much.
by brianhclo
01 Apr 2014
Forum: MultiCharts
Topic: Futures Expiry Syntax
Replies: 11
Views: 1249

Re: Futures Expiry Syntax

IQFeed came back and its a mistake on their end.
by brianhclo
01 Apr 2014
Forum: MultiCharts
Topic: Futures Expiry Syntax
Replies: 11
Views: 1249

Re: Futures Expiry Syntax

Thanks TJ, I am using IQFeed at the moment. Checking if they dont provide "good" futures exp dates.
by brianhclo
01 Apr 2014
Forum: MultiCharts
Topic: Futures Expiry Syntax
Replies: 11
Views: 1249

Re: Futures Expiry Syntax

I have attached the screen shot here. The problem is it seems the expiry date extracted are not the actual expiry dates. All the contracts expires around the 1st of the month, which explains why I get a value of 0 for the April14 contract (as it expires today). The real expiry date should be mid Apr...
by brianhclo
01 Apr 2014
Forum: MultiCharts
Topic: Futures Expiry Syntax
Replies: 11
Views: 1249

Re: Futures Expiry Syntax

Variables: dateToday(0), dateTodayFormat(0),dateFutExp(0), dateFutExpFormat(0); // 1. Assign the date of today to the variable 'dateToday' dateToday = Date; //Print("The current date in YYYMMdd format is: ", dateToday, NewLine); // 2. Now, convert the date to DateTime format dateTodayFormat = ELDat...
by brianhclo
01 Apr 2014
Forum: MultiCharts
Topic: Futures Expiry Syntax
Replies: 11
Views: 1249

Re: Futures Expiry Syntax

I have a strategy that buy/sell depends on number of (trading days) to expiry for a futures contract. Is it possible to reference such field in multicharts code? Thanks. Yes, you can use the keyword: ExpirationDate For a list of available keywords, look under PowerLanguage Keyword Reference https:/...
by brianhclo
01 Apr 2014
Forum: MultiCharts
Topic: Futures Expiry Syntax
Replies: 11
Views: 1249

Futures Expiry Syntax

I have a strategy that buy/sell depends on number of (trading days) to expiry for a futures contract.

Is it possible to reference such field in multicharts code?

Thanks.
by brianhclo
01 Apr 2014
Forum: MultiCharts
Topic: Can multicharts trade two instrument in one strategy?
Replies: 6
Views: 1470

Re: Can multicharts trade two instrument in one strategy?

right, i get the idea now.

in my case its going to be market orders so that should be fine.

i am new to multicharts, when coding what is the syntax to differentiate between trading data1 and data 2?

also is it possible to reference the number of days to expiry for the futures contract in the code?
by brianhclo
31 Mar 2014
Forum: MultiCharts
Topic: Can multicharts trade two instrument in one strategy?
Replies: 6
Views: 1470

Re: Can multicharts trade two instrument in one strategy?

Thanks. Say for example, Strategy monitors spread of a cash index(A) and its front month(B) future as signal for entry. When entry, strategy shorts the front month future(B) and another future (C). When you say MC does not support pair trading. Does that mean it cannot trade more than one asset at a...
by brianhclo
31 Mar 2014
Forum: MultiCharts
Topic: Can multicharts trade two instrument in one strategy?
Replies: 6
Views: 1470

Can multicharts trade two instrument in one strategy?

hi, i have a strategy that does the following, i would like to code it in multicharts but i am not sure if this is possible. the strategy involves monitoring prices of A, B and C. And only trades on B and C simultaneously. Does multicharts support using another instrument as indicator AND be able to...

Go to advanced search