Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now, It is Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Need help on NinjaTrader 8 Strategy issue with HalfTrend indicator
Hello,
i am creating a strategy for NinjaTrader 8 that receives a signal from HalfTrind indicator to buy or sell
when i receive a signal, i check if there is any other position is open, then i close it and open the new one.
currently, when i try to open a new order, i got this error message:
Buy stop or buy stop limit orders can't be placed below the market. affected order: BuyToCover 1 stopMarket @1234.00
another message:
Strategy submitted an order that generated the following error 'Order rejected'. Strategy has sent cancel requests, attempted to close the position and terminated itself.
i debug the code, and this was the value when i get the erro
Short High[0]: 4138.25 currentATR: 3.0280371924987 newStop: 4141.2780371925 _stop: 4141.2780371925
Can you help answer these questions from other members on NexusFi?
I am getting the exact same errors as you with a different strategy than yours. It executes the buy, target and stop perfectly when the market (es, nq) is moving slowly(eth) but during regular trading hours, when the market moves quickly, I get the same error "Sell stop or sell stop orders cannot be placed above the market"(or Below the Market) This disables my strategy and leaves my live order hanging in the market without a stop or takeprofit. This could be because the market moved quickly past the stop and won't execute at that level anymore. I'm wondering if there's any error proofing someone could post that would ensure that the stop or target executes at whatever price the market is currently at, even if its a few ticks past my stop or target. I'm using rithmic data feed with NT8 version 8.1.1.6
Cheers, Derek.
Thank you very much for your reply. It looks like getting the current ask/bid should work in my situation. I'll try it as soon as the market opens and let you know how I make out. Enjoy your weekend! Derek.