|
#23 (permalink)
|
Denver CO USA
Posts: 32 since Sep 2016
Thanks: 0 given,
13
received
|
Yes, definitely looks timing related (FirstTickOfBar vs OnBarClose), as Close[0] changes with every tick. I will keep that in mind, but for now I have given up on NT, as support couldn't answer my questions on unmanaged strategies. The big issue is they have no Order.Close function like every other trading language I''ve used. And the only strategy they could point me to as an example is CamarillaPointsUnmanaged. One, when ran in real mode it bombs with an order reject. And two, it stops out or hits profit target. That's the only way to get out of the order.
If I missed something, I would love to know how to close an order. I entered a reverse BuyToCover or Sell to get out and sometimes it works, and sometimes it opens up new positions.
Thanks.
|
|
|