NexusFi: Find Your Edge


Home Menu

 





Avoid being whipsawed on the entry candle.


Discussion in NinjaTrader

Updated
    1. trending_up 3,864 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?
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
El Clasico Draws $9.2M in Prediction Market Action -- Bi …
Prediction Markets & Event Contracts
$4.5M Floods Russia Nuclear Contract in 24 Hours -- Krem …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 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