Hi
I have a chart with Data1 x 1Min and Data2 x 2Min .
I plot a signal with entry and sell based also on the Data2 ; I plot also an indicator based on data2 ( this indicator ( based on Close of data2 ) is also included in the signal and i need for entries and sells from it ; when the the indicator based on Data2 crosses above or below its average I must have in the signal the corresponding entries or exits ... ;
but the entry and sell generates from the signal does not match with the indicator himself ...... !
The entries and exits are generated but they correspond to the same indicator but as it was based on data1 not on Data2 ...... ! Why ?
any help ?
best regards
Maxme
problem with Signal based on 2 data
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
signal on 2 data
Hello TJ
thanks for reply !
the signal has inputs based also on Data2 ; per example " if average( close of data2 ,9) > average( close of data2 ,9)[1] and H > H[1] then buy ........ " .
the problem is that this inputs seems to be not respected ( per example the average is down and I have a Buy from the signal ... ) , why ?
You write me to use " intrabarpersist " , what is this ?
How I must use the code You wrote me to read the output ?
thanks
Maxme
thanks for reply !
the signal has inputs based also on Data2 ; per example " if average( close of data2 ,9) > average( close of data2 ,9)[1] and H > H[1] then buy ........ " .
the problem is that this inputs seems to be not respected ( per example the average is down and I have a Buy from the signal ... ) , why ?
You write me to use " intrabarpersist " , what is this ?
How I must use the code You wrote me to read the output ?
thanks
Maxme
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times