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 2,244 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 6 posts
    2. attach_file 2 attachments




 
Search this Thread
  #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:	177
Size:	58.8 KB
ID:	69649  
Follow me on X Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Prediction Markets Expiry Day: Trump Eyes War Exit, $230 …
Prediction Markets & Event Contracts
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
Irans Dual Probability: Guns Quiet at 99.95% While Forma …
Prediction Markets & Event Contracts
Double Deadlock: Rubio Calls Hormuz Tolls "Unfeasib …
Traders Hideout
US Navy Blockade of Hormuz Starts Today -- Oil Surges 8p …
Prediction Markets & Event Contracts
 
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)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,951 since Dec 2010
Thanks Given: 3,042
Thanks Received: 2,397



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: [wiki=NT-Local-Order-Manager-LOM-Guide][/wiki]
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 X 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,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,557

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

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 X 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 X 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:	167
Size:	67.4 KB
ID:	69802  
Follow me on X Started this thread Reply With Quote




Last Updated on April 12, 2012


© 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