PureBytes Links
Trading Reference Links
|
Folks
I have a system which uses two data streams. Using today's close of both
streams (ie. Spread) together with some other calculations, I determine a
target price for tomorrow (say using a function "_MyTarget").
What I am trying to do is to buy tomorrow's bar on a stop at the Opening +
_AbnormalMove (another UDF) but only if the resulting price is at my target
or higher.
The code looks something like this:
EntryOrder = Open of Next Bar + _AbnormalMove ;{_AbnormalMove only accesses
Data1}
If EntryOrder >= _MyTarget then
Buy 10 contract next Bar at EntryOrder stop ;
I get the error message:
#265 - Cannot mix next bar prices with data streams other than data1.
With "_MyTarget" highlighted
The manual doesn't seem to be much help.
Any ideas on a workaround?
Thanks
|