NexusFi: Find Your Edge


Home Menu

 





Swing Strategy help needed!


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one prisonbreaker82 with 2 posts (0 thanks)
    2. looks_two traderwerks with 1 posts (0 thanks)
    3. looks_3 Luger with 1 posts (0 thanks)
    4. looks_4 Big Mike with 1 posts (0 thanks)
    1. trending_up 2,104 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 5 attachments




 
Search this Thread

Swing Strategy help needed!

  #1 (permalink)
 
prisonbreaker82's Avatar
 prisonbreaker82 
Rio de Janeiro
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire, IB
Trading: Equity & Futures
Posts: 312 since Jun 2010
Thanks Given: 58
Thanks Received: 141

Hi!

Can anyone point me in right direction what I need to do to avoid the arrows to be repeated.

Trading idea

Long side:
EMA>200
SMA(10) > EMA(30)

Enter Long on WilliamR(3) < -80

I am trying to add the conditions in the Strategy Wizard, but I can not find where to tell the system only write one green arrow when all the conditions are full filled.

Attached Thumbnails
Click image for larger version

Name:	conditions_actions.png
Views:	196
Size:	53.4 KB
ID:	70117   Click image for larger version

Name:	oversold.png
Views:	187
Size:	45.1 KB
ID:	70118   Click image for larger version

Name:	chart.png
Views:	227
Size:	106.1 KB
ID:	70119  
Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
HumbleTraders next chapter
11 thanks
GFIs1 1 DAX trade per day journal
11 thanks
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,212
Thanks Received: 101,599


Sounds like you only want an entry when flat. So something like

if (MarketPosition != MarketPosition.Flat) return;

Haven't used NT in a long while, so I may be rusty or wrong. No idea where it is in the wizard, never used it.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 Luger 
Nashville, TN
 
Experience: Intermediate
Platform: NinjaTrader
Broker: IB
Trading: NQ ES
Posts: 468 since Feb 2011
Thanks Given: 323
Thanks Received: 543

When applying the strategy to a chart you need to set it to only one entry, but because you are having it draw an arrow instead of taking a trade, I am unsure if this is possible from the strategy options.

You could however create a variable, start with it set to 0 and make that variable being 0 a condition of you going long (drawing the arrow), then at the same time you draw your first arrow set it to 1. You would also need to have an opposite condition to set the variable back to 0, basically whatever logic is saying that you should not be long would set the variable to 0.

If I were you, I would just setup the strategy to take a trade, would be much simpler and you could have it take one trade per signal.

Luger

Reply With Quote
  #5 (permalink)
 
prisonbreaker82's Avatar
 prisonbreaker82 
Rio de Janeiro
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire, IB
Trading: Equity & Futures
Posts: 312 since Jun 2010
Thanks Given: 58
Thanks Received: 141


Luger View Post
When applying the strategy to a chart you need to set it to only one entry, but because you are having it draw an arrow instead of taking a trade, I am unsure if this is possible from the strategy options.

You could however create a variable, start with it set to 0 and make that variable being 0 a condition of you going long (drawing the arrow), then at the same time you draw your first arrow set it to 1. You would also need to have an opposite condition to set the variable back to 0, basically whatever logic is saying that you should not be long would set the variable to 0.

If I were you, I would just setup the strategy to take a trade, would be much simpler and you could have it take one trade per signal.

Luger

Thank you for your reply!

I understand the problem... But it looks like on the chart where it print outs the green arrows is wrong.

According to attached screen shot these are the pullbacks it should show, but when I runt the strategy it shows green arrows even when WilliamsR(3) is not oversold...

It looks like the system prints out an arrow if price is above EMA(200) and SMA(10)>EMA(30) does not take into account the WilliamsR(3) condition...

Attached Thumbnails
Click image for larger version

Name:	pullbacks.png
Views:	202
Size:	92.7 KB
ID:	70129  
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #6 (permalink)
 traderwerks   is a Vendor
 
Posts: 692 since Jun 2009
Thanks Given: 436
Thanks Received: 465

Add a condition to Set 1 in your strategy builder

 
Code
WilliamsR(3)[1] >= OverSold
Not perfect, but it will only give you the arrow when WilliamsR changes. You

Math. A gateway drug to reality.
Reply With Quote
  #7 (permalink)
 
EDGE's Avatar
 EDGE 
Saint Louis, Mo., USA
 
Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker: Amp/CQG, Velocity/TT, Kinetick, TS
Trading: Anything That Moves..
Frequency: Daily
Duration: Minutes
Posts: 209 since Aug 2010
Thanks Given: 98
Thanks Received: 392


prisonbreaker82 View Post
Thank you for your reply!

I understand the problem... But it looks like on the chart where it print outs the green arrows is wrong.

According to attached screen shot these are the pullbacks it should show, but when I runt the strategy it shows green arrows even when WilliamsR(3) is not oversold...

It looks like the system prints out an arrow if price is above EMA(200) and SMA(10)>EMA(30) does not take into account the WilliamsR(3) condition...


Remember that Stategies are executed at bar close.. Things get very very tricky intrabar, and I would not suggest you even try at this point in your learning curve.. I put together your simple strat in the wizard, as well as adding several parameters that should allow you to tweak along the way without having to go into the strat wizard every single time.. This DOES Execute ORDERS, with a user defineable profit target and stop loss. MAKE SURE YOU ARE IN SIMULATION MODE!!! Import this like any other indicator or strat.. Control Panel - File - Utilities - Import ... I'm not sure your going to like the results of your strategy, but guess we all have to start somewhere.. Don't forget to add slippage in for any backtesting or historical data.. It's very unlikely that I will follow this thread or have time to help any further.. But hopefully this will at least get you thinking and started in the right direction of your journey.. Best of Luck!!!





Attached Files
Elite Membership required to download: PrisonBreaker82.zip
Reply With Quote
Thanked by:




Last Updated on April 16, 2012


© 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