NexusFi: Find Your Edge


Home Menu

 





Market Swing Question


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 
sdt929's Avatar
 sdt929 
Dallas, Texas
 
Experience: Intermediate
Platform: NT
Broker: Amp/CQG
Trading: CL,ZB,TF
Posts: 17 since Sep 2009
Thanks Given: 46
Thanks Received: 27

Ok, I'm trying to write a strategy that scalps swings. Sorry this is probably a really dumb question!!!! Is there code that once I scalp a long signal, then the strategy will only look for my short signal? The simple strategy I have will, for example, take a long signal. I'll get 4 or 5 ticks but it keeps taking long signals until the market swings and I lose. Then it starts taking short signals until it swings and goes back long. Ya'll remember I have just started looking and trying to build a strategy and I don't have a clue what I am doing. Gotta start somewhere!


Follow me on X Started this thread Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 RM99 
Austin, TX
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 838 since Mar 2011
Thanks Given: 124
Thanks Received: 705


Are you autotrading?

If so, I've run into this before, but the solutions have drawbacks.....

you can try

If marketposition(1) <> 1

That will ensure that if your last trade a positive position, it will not enter a long(positive) position. However, as you would expect, it comes at a price, because you lose some winners that you enjoy on longer trends in the same direction.

You can try to change your entry code to recognize the change in trend rather than the trend.

So instead of

if close > high[1] then.....

to look more like this....

if close > high[1] and close[1] > close[2] and close[2] < close[3]

You can expand outward from the pivot point as much as you'd like in series to reduce spurious pivot signals.....


Reply With Quote
Thanked by:




Last Updated on March 21, 2011


© 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