I must be missing something obvious but here goes. What is the value of multiple data series in a signal when the the additional data series are over ridden by data1 ??
If data1 is 5 min, and data2 is a 1 minute there seems to be no way to extract, lets say, a 5 bar average from data2 that actually is a five bar average of data2 to use in the signal because it
Average(close data1)= Average(close data2)
Even in an indicator it will default to data1 unless you manually format it and force it to be based on data2. However, in a signal I am not aware of any method to force data2 to actually be based on data2. If anyone knows how to do that, or pls explain how I am looking at it incorrectly. Thanks.
Multiple Data Series in a signal. [SOLVED]
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Multiple Data Series in a signal.
You must set the fastest data series as data1.I must be missing something obvious but here goes. What is the value of multiple data series in a signal when the the additional data series are over ridden by data1 ??
If data1 is 5 min, and data2 is a 1 minute there seems to be no way to extract, lets say, a 5 bar average from data2 that actually is a five bar average of data2 to use in the signal because it
Average(close data1)= Average(close data2)
Even in an indicator it will default to data1 unless you manually format it and force it to be based on data2. However, in a signal I am not aware of any method to force data2 to actually be based on data2. If anyone knows how to do that, or pls explain how I am looking at it incorrectly. Thanks.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Multiple Data Series in a signal.
See post #4I must be missing something obvious but here goes. What is the value of multiple data series in a signal when the the additional data series are over ridden by data1 ??
If data1 is 5 min, and data2 is a 1 minute there seems to be no way to extract, lets say, a 5 bar average from data2 that actually is a five bar average of data2 to use in the signal because it
Average(close data1)= Average(close data2)
Even in an indicator it will default to data1 unless you manually format it and force it to be based on data2. However, in a signal I am not aware of any method to force data2 to actually be based on data2. If anyone knows how to do that, or pls explain how I am looking at it incorrectly. Thanks.
[FAQ] Multiple time frame, Multi-Data Analysis
viewtopic.php?f=16&t=6929
Re: Multiple Data Series in a signal.
Thank you TJ. Not the answer I was hoping for however. I did want to use some shorter data series as inputs into a longer data series (data1), but you are saying that is not possible as I understand your answer.
Is there anything that could be done in the code that could force what i am trying to do? or through global variable?
Is there anything that could be done in the code that could force what i am trying to do? or through global variable?
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Multiple Data Series in a signal.
I do not understand what you want to achieve.Thank you TJ. Not the answer I was hoping for however. I did want to use some shorter data series as inputs into a longer data series (data1), but you are saying that is not possible as I understand your answer.
Is there anything that could be done in the code that could force what i am trying to do? or through global variable?
Re: Multiple Data Series in a signal.
OK here's an example. I want to use 3 averages as follows:
data2 = 1 min
data3 = 2 min
data4 = 3 min
value1 = average(data2,5) + average(data3,10) + average(data4,15);
How do I apply that to a signal on 4 min chart? Let's say I want certain benefits from using a longer time series but still have the speed of the faster time series. With an indicator I can manually force each average to behave, but in a signal there seems to be no way to accomplish this although I hope I am wrong.
data2 = 1 min
data3 = 2 min
data4 = 3 min
value1 = average(data2,5) + average(data3,10) + average(data4,15);
How do I apply that to a signal on 4 min chart? Let's say I want certain benefits from using a longer time series but still have the speed of the faster time series. With an indicator I can manually force each average to behave, but in a signal there seems to be no way to accomplish this although I hope I am wrong.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Multiple Data Series in a signal.
Look up:OK here's an example. I want to use 3 averages as follows:
data2 = 1 min
data3 = 2 min
data4 = 3 min
value1 = average(data2,5) + average(data3,10) + average(data4,15);
How do I apply that to a signal on 4 min chart? Let's say I want certain benefits from using a longer time series but still have the speed of the faster time series. With an indicator I can manually force each average to behave, but in a signal there seems to be no way to accomplish this although I hope I am wrong.
barstatus
you can set the 4 min chart as data5,
eg.
Code: Select all
if barstatus(5) = 2 then
begin
if buycondition = true then buy...
end;
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times