but it seems the ChartTrader buttons for the same are more efficient
my code uses GetCurrentAsk or GetCurrentBid
and then has to decide if this is ahead or behind the Price to know whether to place a StopLimit or Limit order. Sometimes the broker rejects the order because the StopLimit or Limit is not in the correct relation to the Current Price
But the Ninja buttons don't seem to have this problem..the fills are better.
so...questions:
1) how to press the BuyAsk / SellBid buttons from script?
2) how can I make my code perform as good as the buttons?
thx
Comment