hi
I would like to plot the 2 symbols on 1 chart and plot a spread on these 2 instruments.
But 1 is traded in OSE and 1 is traded in SGX.
Even though for majority of the trading day they are traded simultaneously at the same time.
But MC does not align them when i plot them on the same chart.
Can this be done ?
thanks
Plotting a spread between NK in OSE and NK on SGX
- Alex Kramer
- Posts: 834
- Joined: 23 Feb 2006
- Alex Kramer
- Posts: 834
- Joined: 23 Feb 2006
- Andrew Kirillov
- Posts: 1589
- Joined: 28 Jul 2005
- Has thanked: 2 times
- Been thanked: 31 times
- Contact:
Dear TJ,
Use the indicator attached. Inputs - are symbols' weights in decimals. The indicator works with two data series.
Use the indicator attached. Inputs - are symbols' weights in decimals. The indicator works with two data series.
- Attachments
-
- CompSymbol.xml
- (3.13 KiB) Downloaded 560 times
Synthetic symbols and Spread Charts
Hi Folks
i've had a look around on the MC forum and there are very few posts about spreadcharting and synthetic symbols.
I want to be able to chart spreads on close. Obviously creating a chart is no problem if the spread data is available from your data provider. However, if the particular spread you want to chart is not then i assume that the only want to do this in MC is to create a synthetic symbol. Am i right?
I found this post with the useful-looking indicator attached. I'm a real coding novice and can do virtually nothing in code. I was wondering if anyone else out there had adapted and improved this indicator or written another indicator to help chart spreads? Something that can handle more than two parent symbols would be useful, for charting things like crack spreads.
I wait in hope...
Syn
i've had a look around on the MC forum and there are very few posts about spreadcharting and synthetic symbols.
I want to be able to chart spreads on close. Obviously creating a chart is no problem if the spread data is available from your data provider. However, if the particular spread you want to chart is not then i assume that the only want to do this in MC is to create a synthetic symbol. Am i right?
I found this post with the useful-looking indicator attached. I'm a real coding novice and can do virtually nothing in code. I was wondering if anyone else out there had adapted and improved this indicator or written another indicator to help chart spreads? Something that can handle more than two parent symbols would be useful, for charting things like crack spreads.
I wait in hope...
Syn
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Synthetic symbols and Spread Charts
... Obviously creating a chart is no problem if the spread data is available from your data provider...
I wait in hope...
Syn
if the symbol is not available from your dataprovider, then you have to create a symbol manually, and enter the data into it manually.
You can do that through QuoteManager.
Hi AndrewDear TJ,
Use the indicator attached. Inputs - are symbols' weights in decimals. The indicator works with two data series.
My aim is to chart the differential between two symbols in a line on close chart. To do this i weight the first symbol as 1.00 and the second symbol as -1.00.
But how can i plot just a line chart of the close rather than a candle chart. Can you help please.
Thanks
Syn
Hi againHi Andrew
My aim is to chart the differential between two symbols in a line on close chart. To do this i weight the first symbol as 1.00 and the second symbol as -1.00.
But how can i plot just a line chart of the close rather than a candle chart. Can you help please.
Thanks
Syn
i've amended the coding and got it to plot a line on close. I'm sure my coding isn't that tidy, but it works.
Syn
Hi Andrew,Dear TJ,
Use the indicator attached. Inputs - are symbols' weights in decimals. The indicator works with two data series.
i solved my last problem myself, but i need your (or someone else's) help on this one.
As you can see from my last post, i now have a line on close chart of the spread between two symbols. How can i base indicators on this, e.g a parabolic SAR, moving ave, etc.
Your help will be very much appreciated.
Syn
- Andrew Kirillov
- Posts: 1589
- Joined: 28 Jul 2005
- Has thanked: 2 times
- Been thanked: 31 times
- Contact:
Synonym,
Sorry that we missed this topic. The next time use our phone and live chart support, because forum is the lowest priority support source.
Let me explain how to use an indicator on an indicator.
I will use a moving average as an example. To plot an indicator on an indicator you should basically replace base data series with the function.
For example Moving average is Average(close,10). It means that Close is the data series.
So if you want to apply the moving average to the indicator instead of price data series (Close) you should replace it with your function.
So your indicator should look like this:
Plot1(Average(YourCustomSpreadFunction,10),"ind");
Where YourCustomSpreadFunction is a function that calculates the difference of two data streams.
Sorry that we missed this topic. The next time use our phone and live chart support, because forum is the lowest priority support source.
Let me explain how to use an indicator on an indicator.
I will use a moving average as an example. To plot an indicator on an indicator you should basically replace base data series with the function.
For example Moving average is Average(close,10). It means that Close is the data series.
So if you want to apply the moving average to the indicator instead of price data series (Close) you should replace it with your function.
So your indicator should look like this:
Plot1(Average(YourCustomSpreadFunction,10),"ind");
Where YourCustomSpreadFunction is a function that calculates the difference of two data streams.
Hi Andrew
thanks for your reply. I would usually ring you, but it's not been that convenient for me to do so over the past week or so and thought i'd try posting whilst i was unable to get to contact you.
Anyway, i'm a real coding novice, but i'll play around with what you have suggested and if i get nowhere then i'll ring your team.
cheers
Syn
thanks for your reply. I would usually ring you, but it's not been that convenient for me to do so over the past week or so and thought i'd try posting whilst i was unable to get to contact you.
Anyway, i'm a real coding novice, but i'll play around with what you have suggested and if i get nowhere then i'll ring your team.
cheers
Syn
Hi
I'm having trouble doing as you have suggested. As i mentioned i only want a line chart based on the close (not the range) of differential between two symbols. I then want to add a Parabolic SAR to this. From your suggestion Andrew there is not enough info for me to do this (as i mentioned, i'm a real coding novice!).
I am unable to ring your team to discuss this now. I will be able to do so tomorrow. I was thinking that perhaps your team could be looking at this in the meantime so that you can have the answer for me when i contact you tomorrow. Now that would be really great!
thanks
Syn
I'm having trouble doing as you have suggested. As i mentioned i only want a line chart based on the close (not the range) of differential between two symbols. I then want to add a Parabolic SAR to this. From your suggestion Andrew there is not enough info for me to do this (as i mentioned, i'm a real coding novice!).
I am unable to ring your team to discuss this now. I will be able to do so tomorrow. I was thinking that perhaps your team could be looking at this in the meantime so that you can have the answer for me when i contact you tomorrow. Now that would be really great!
thanks
Syn