NexusFi: Find Your Edge


Home Menu

 





help with strategy please


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one benrock with 4 posts (0 thanks)
    2. looks_two Big Mike with 1 posts (0 thanks)
    3. looks_3 NJAMC with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 1,590 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 6 posts
    2. attach_file 2 attachments




 
Search this Thread

help with strategy please

  #1 (permalink)
 benrock 
hampton bays
 
Experience: Master
Platform: ninjatrader , TOS
Broker: CQG
Trading: FUTURES
Posts: 85 since Mar 2012

can anyone help me write this strategy code ?

3 greater bars close = buy signal = 2 bar target - 2 bar trailing stop

3 lower bars close = sell signal = 2 bar target - 2 bar trailing stop

only one trade per up or down trend .

thanks

Attached Thumbnails
Click image for larger version

Name:	2012-04-11_1732.png
Views:	118
Size:	58.8 KB
ID:	69649  
Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
 
  #3 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395



benrock View Post
can anyone help me write this strategy code ?

3 greater bars close = buy signal = 2 bar target - 2 bar trailing stop

3 lower bars close = sell signal = 2 bar target - 2 bar trailing stop

only one trade per up or down trend .

thanks

If I understand your rules right, wouldn't there be additional entries around:

01:18ish: Long
02:19ish: Short
09:32ish: Short
09:35ish: Long
09:41ish: Short
09:42ish: Long

Seems like there is another filter you have in mind?

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 benrock 
hampton bays
 
Experience: Master
Platform: ninjatrader , TOS
Broker: CQG
Trading: FUTURES
Posts: 85 since Mar 2012

Yes there are others but I was just drawing a clear example of what I'm looking to do
And I want trend to finish before taking new long or short

Follow me on Twitter Started this thread Reply With Quote
  #5 (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,464 since Jun 2009
Thanks Given: 33,242
Thanks Received: 101,662

And you define a trend how? I don't see it on your chart or your first post.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

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
  #6 (permalink)
 benrock 
hampton bays
 
Experience: Master
Platform: ninjatrader , TOS
Broker: CQG
Trading: FUTURES
Posts: 85 since Mar 2012

Meaning once a long signal is triggered I don't want another long until a short signal goes through

Follow me on Twitter Started this thread Reply With Quote
  #7 (permalink)
 benrock 
hampton bays
 
Experience: Master
Platform: ninjatrader , TOS
Broker: CQG
Trading: FUTURES
Posts: 85 since Mar 2012

updated chart , there is a nbaruptrend / nbardowntrend indicator that will work , i just need to know how to code it into strategy

Attached Thumbnails
Click image for larger version

Name:	3BAR.png
Views:	114
Size:	67.4 KB
ID:	69802  
Follow me on Twitter Started this thread Reply With Quote




Last Updated on April 12, 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