NexusFi: Find Your Edge


Home Menu

 





Avoid being whipsawed on the entry candle.


Discussion in NinjaTrader

Updated
    1. trending_up 3,782 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
koganam
Garner, NC/USA
 
Posts: 39 since Dec 2009
Thanks Given: 16
Thanks Received: 42

Remember how sometimes you write a strategy, especially an always-in-market (i.e., stop and reverse) strategy, and then when you backtest or try to optimize it, you end up with a whole bunch of trades that entered and exited on the same bar, at the same price, at the same time, chewing up commission costs to no purpose, and messing up your results?

I just posted an example strategy that shows how to ensure that an entry in the market stays in for at least one bar before it can trigger a stoploss. I used the SampleMACrossOver as the basis for the strategy as I wanted to post a working strategy rather than just a shell.

I must state that I do not have much faith in the MovingAverageCrossOver as a trading strategy, so even though when optimized, (as in the picture that accompanies the strategy), it shows a profit, remember that backtesting is different from live trading. That means one needs to think very carefully before turning such a strategy live on a real account. I used it ONLY as a working example, not a strategy to actually trade with.

Here is the link:
https://nexusfi.com/free_downloads/ninjatrader/strategies/222-download.html?view


Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
Prediction Markets & Event Contracts
Warsh Confirmed 54-45 on PPI Day -- 97% Say He Holds in …
Prediction Markets & Event Contracts
Hormuz Normalization Collapses to 19.5% -- Iran Regime F …
Prediction Markets & Event Contracts
Pakistan Mediator in Tehran as Hormuz Normalization Coll …
Prediction Markets & Event Contracts
The Feds Stagflation Trap -- Negative Payrolls, $91 Oil, …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
23 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
  #2 (permalink)
koganam
Garner, NC/USA
 
Posts: 39 since Dec 2009
Thanks Given: 16
Thanks Received: 42

That solves what?

I do not quite understand your question.


kostas View Post
Is there any indicator out there that solves this ?


Reply With Quote




Last Updated on January 5, 2010


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts