I was searching the forum now for quite a while, but could not find any answre to my problem. I am new to NT.
I wrote a strategy which I test against EOD data.
I want to use EnterLongLimit, EnterLongStop, ExitLongLimit and ExitLongStop.
Example:
I want that the target share is bought at a limit of 160:
EnterLongLimit(1,160);
The order always get's cancelled, even the EOD data is several days below 160. I assume that it has to to with liveUntilCancelled parameter. As I understand, the statement above is valid only for the current bar?
So I tried this:
EnterLongLimit(0,true, 1, 160,"test")
It also does not work. because of barsInProgressindex?
1. Could you explain me how I have to code that I can submit an order lasting several days until it is fulfilled or cancelled?
2. What is the meaning of the barsInProgressIndex? At point t I can only reference bars of t or earlier. How is this then applied?
Thanks for your help
Andre
Comment