NexusFi: Find Your Edge


Home Menu

 





script idea


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one sharky with 22 posts (7 thanks)
    2. looks_two systrader with 11 posts (31 thanks)
    3. looks_3 Peter with 6 posts (10 thanks)
    4. looks_4 zeller4 with 4 posts (1 thanks)
      Best Posters
    1. looks_one systrader with 2.8 thanks per post
    2. looks_two sam028 with 2 thanks per post
    3. looks_3 Peter with 1.7 thanks per post
    4. looks_4 sharky with 0.3 thanks per post
    1. trending_up 22,342 views
    2. thumb_up 58 thanks given
    3. group 11 followers
    1. forum 64 posts
    2. attach_file 14 attachments




 
Search this Thread

script idea

  #51 (permalink)
 David 
UK
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Futures
Posts: 88 since Jun 2009
Thanks Given: 35
Thanks Received: 84

The Bollinger Band Squeeze indicator has a good chop indicator built in. Chop is indicated by blue dots.

BBS(2,1.5,20) is a good setting.

David

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #52 (permalink)
 
Riverend's Avatar
 Riverend 
Westlake, Oh
 
Experience: Beginner
Platform: NinjaTrader
Trading: CL
Posts: 356 since Jun 2009
Thanks Given: 1,519
Thanks Received: 220


David View Post
The Bollinger Band Squeeze indicator has a good chop indicator built in. Chop is indicated by blue dots.

BBS(2,1.5,20) is a good setting.

David

Thanks david I'll give it a look. Maybe Sharky will like this added.

Reply With Quote
  #53 (permalink)
systrader
Rocky Mountains
 
Posts: 19 since Jun 2009
Thanks Given: 17
Thanks Received: 37


I think I found a bug w/ v.06 that I uploaded last night - not sure if it's moving the stop loss to break even correctly (when short). I'm running it now on live data so I will upload a fix once I confirm.

Edit: confirmed. Here's an updated version w/ the fix.

Attached Files
Elite Membership required to download: SharkyMAStrategy_v1_06.cs
Reply With Quote
Thanked by:
  #54 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 477 since Jun 2009
Thanks Given: 1,416
Thanks Received: 404

Hello systrader,

please tell us what line(s) you fixed to help us learn in the process, didn't see any notes in the new version.
thx
kz

Reply With Quote
  #55 (permalink)
 
sharky's Avatar
 sharky 
MIAMI,FL
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, tradingview
Broker: Private
Trading: Crypto and natural gas
Posts: 1,063 since Jun 2009
Thanks Given: 625
Thanks Received: 3,906

do you have a zip file for everyone? and we will look at chop later as far as the atm is concerned feel free to add to it david if you like but just make it flrexible enough for everyones own style thanks...sharky

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #56 (permalink)
systrader
Rocky Mountains
 
Posts: 19 since Jun 2009
Thanks Given: 17
Thanks Received: 37


zeller4 View Post
Hello systrader,

please tell us what line(s) you fixed to help us learn in the process, didn't see any notes in the new version.
thx
kz

Sorry, I fixed this section where it moves the stop loss if short to break even:

if (((Position.AvgPrice - Close[0]) / TickSize) >= autoBrkEvenTicks )

It used to read:

if (((Close[0] - Position.AvgPrice) / TickSize) >= autoBrkEvenTicks )

Reply With Quote
Thanked by:
  #57 (permalink)
systrader
Rocky Mountains
 
Posts: 19 since Jun 2009
Thanks Given: 17
Thanks Received: 37

New Version: v01.00.07

Changes:

Added a second DMA (fully configurable) to be used as the long-term trend filter. It will only take trades in the direction of this DMA. So if the long-term trend is down, it will only take short trades.

Status:

Beta - not fully tested so please do not trade w/ real $

Attached Files
Elite Membership required to download: SharkyMAStrategy_v1_07.cs
Reply With Quote
Thanked by:
  #58 (permalink)
 
Peter's Avatar
 Peter 
Brisbane; Australia
 
Experience: Intermediate
Platform: NT
Broker: IB/TDA needing new broker
Trading: Futures, Forex, Stocks
Posts: 97 since Jun 2009
Thanks Given: 91
Thanks Received: 118

Looks good Systrader. Interesting to see how how you coded some stuff.

I will start using that 'private void Long()' in my own strategies, it looks much cleaner and more flexible than the way NT does in their examples.

Reply With Quote
  #59 (permalink)
systrader
Rocky Mountains
 
Posts: 19 since Jun 2009
Thanks Given: 17
Thanks Received: 37

Thanks Peter.

Reply With Quote
  #60 (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,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,603


I just want to chime in here...

I am very impressed by you guys, your ability to take non-programmers and programmers alike and form a collaborative effort and to keep that effort organized.

Well done!


This is exactly what I envisioned when creating the site, and I am very happy to see it set in motion.

Remember the founding principle of the site:



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




Last Updated on November 15, 2009


© 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