PureBytes Links
Trading Reference Links
|
Hi All,
Using 2000i. I've written a little indicator:
if cci(14) crosses above 0 and cci(6) crosses above 0 then plot1(l-.5,"
B");
if cci(14) crosses below 0 and cci(6) crosses below 0 then plot2(h+.5,"
S");
I have two data sets - 3 min bars and 1 min bars. I plot the indicator
on the 3 min bars and it's fine. I also plot a second version on the 3
min bars but in the Format Indicator box I set 'Base Study On' to the 1
min bars. And that's fine, too.
So I try to write a signal for it:
if cci(14) crosses above 0 and cci(6) crosses above 0 and cci(14) of
data2 crosses above 0 and cci(6) of data2 crosses above 0 then buy next
bar at open;
if cci(14) crosses below 0 and cci(6) crosses below 0 and cci(14) of
data2 crosses below 0 and cci(6) of data2 crosses below 0 then sell next
bar at open;
But it doesn't produce signals at the same points as the indicator.
Anyone know where I'm going wrong?
Ian
|