NexusFi: Find Your Edge


Home Menu

 





Market Swing Question


Discussion in NinjaTrader

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




 
Search this Thread

Market Swing Question

  #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 Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Build trailing stop for micro index(s)
Psychology and Money Management
Futures True Range Report
The Elite Circle
 
  #3 (permalink)
 RM99 
Austin, TX
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 839 since Mar 2011
Thanks Given: 124
Thanks Received: 704


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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts