Login Page - Create Account

Support Board


Date/Time: Wed, 08 May 2024 01:35:46 +0000



help creating 3 security difference butterfly chart

View Count: 878

[2016-09-20 19:31:17]
User71961 - Posts: 144
i want to create a candle chart fly (A*sec1 - B*sec2 - C*sec3) where A,B,C are multipliers, and sec1,2,3 are the prices of different securities

i thought the "Difference Single Line" study http://www.sierrachart.com/index.php?page=doc/helpdetails61.html might be able to do this, but there is only 1 option for another security in the study settings (Chart1 and Chart2).

So, how can i create a chart of this custom-weighted 3 security portfolio?

I've tried nesting using the Difference (Single Line) Study to create this...but i'm not quite there.

Since i am subtracting B*Sec2 + C*Sec3 from A*Sec1, i created a new chart #4 with the Study - Difference (Single Line), where Chart#1 = Sec2 and Chart #2 = Sec3, with a negative #2 multiplier (so, its really just adding the prices of B*Sec2 and C*Sec3). I set the option to "display as main price graph" and This works in creating this step (the value of the chart#4 = B*sec2 + C*sec3). So, this seems to be half the battle...

However, now i want to go back to the chart for Sec1 (chart #3), added the study Difference (Single Line), where Chart#2 = Chart#4 (B*Sec2 + C*Sec3).

However, this results in the underlying security from chart #4 (not my study...but the primary security of the chart) being spread from the chart #3. However, since on chart #4, i've selected "display as main price graph"...i was expecting the value i see in the chart #4 main price graph (B*Sec2 + C*Sec3) to be subtracted from chart#3 A*Sec1.

So, what am i missing? What do i need to do to get Chart3 to recognize the "Study" from Chart #4 as the "value" of chart #4, rather than the primary security of the chart?

I also tried doing it all in one chart as i read in the "High Accuracy Spread" help topic...adding a 2nd "Study - Difference (Single Line)" based on the 1st "Study - Difference (Single Line)" on the same chart...when i set the 1st study to "display as main price graph" and then hide this 1st study, i can then add the 2nd study, and "difference" off the 1st study, and this shows the correct portfolio data after i set the time frame to be 10 seconds. But i now want to see 15min candles for this package to show the range traded in the 15min candles (the 3 original charts are set at 10 seconds)...so i duplicated chart #4 (now we are looking at chart #5), added the "Study - Overlay OHLC", based on the 2nd "Study - Difference (Single Line)" set the timeframe to 15min ...but all i see are dots of the data points...where i was expecting to see candles?

also...even more messed up...chart #4 and chart #5 not showing the same value for the same fly?
Chart#4 2 "Study - Difference (Single Line)" nested, is using 1 second data time-frame...Chart #5 5min....and the last data point is not matching?

when i calc the last point manually...i agree with the 1 second chart...but the 5min chart last value is not correct.
Chart #5 was a duplicate of Chart #4, but then i changed the timeframe to be normal, such as 5min.
Date Time Of Last Edit: 2016-09-20 23:55:15
[2016-09-21 18:24:11]
Sierra Chart Engineering - Posts: 104368
From our perspective, all of this is very confusing. We would need to get a Chartbook to understand what you are doing. So there is no need to write any of this out.

However, we understand what you want to do and you just need to use the Spread-3 Chart study:
https://www.sierrachart.com/index.php?page=doc/TechnicalStudiesReference.html#s53
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account