Hi,
I have a pair trading system that uses both minute (by default) and daily (using SetScaleDaily) data.
I use a couple of daily indicators as entry signals, but run RestoreScale(); right afterwards.
Anyways When I place an order on the second symbol
CODE:
Please log in to see this code.
It executes at the previous days's Close even though, the scale is minute data.
Any ideas?
Size:
Color:
QUOTE:
ShortAtClose(bar-1,String.Format("{0:0.0000}", ratio1[bar]) );
Why are you using bar-1 ?
Size:
Color:
I was just testing whether entry price would be different for bar / bar -1 / bar + 1 etc ... they all go to the daily price.
Size:
Color:
Calling RestoreScale right away is a prerequisite, great that you're doing it. Can you post more code?
Size:
Color: