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,425 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

  #11 (permalink)
 
RodS's Avatar
 RodS 
Indy
 
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus/Zen-Fire
Trading: 6E,TF,YM,NQ
Posts: 89 since Jun 2009
Thanks Given: 435
Thanks Received: 66

Sharky,

I like the potential this presents.
I was testing this morning on the ZN 4 range chart with only the 1 contract. I set the strategy on sim and I just got back and it only took a couple of trades and stopped. Not sure why it stopped but i will continue to check it out later on replay.

I would like to know if someone can take this a step farther. I would like to trade this based off the 4 range chart but only take signals that agree with my 11 range chart.
This way you are only trading with the long term trend. The strategy still kicks your position out when the DMA turns to short but it doesn't reverse your position. It just lets the pullback happen and re-enters when it goes long again.

Any thoughts?

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
About a successful futures trader who didn´t know anyth …
Psychology and Money Management
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
Quant vue
Trading Reviews and Vendors
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #12 (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

yes one step at a time we are working one bug out at a time but it will get better over time i promise thanks...sharky

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #13 (permalink)
 
RodS's Avatar
 RodS 
Indy
 
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus/Zen-Fire
Trading: 6E,TF,YM,NQ
Posts: 89 since Jun 2009
Thanks Given: 435
Thanks Received: 66


Thanks! I understand, just throwing an idea out there.

Reply With Quote
  #14 (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

just dont want people to get sidetracted from my original idea i have something in my head so please just be patient and let me run with this lol and i promise we will find something that works for everyone...sharky

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #15 (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

OK, tried to add condition that it only enters when signal changes.

This is COMPLETELY untested (done a minute ago) .....so at own risk.

Attached Files
Elite Membership required to download: SharkyMAStrategy_v1_01.zip
Reply With Quote
Thanked by:
  #16 (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

i would like to thank everyone for helping with the script ive taken everyones suggestion into consiteration and but ive been trying to keep this one as simple as i could with only the rules from my mind that make sense to me with trial and erros,i add a rule and take one off but im trying to keep this as orignal as i can to my first idea,if we want to make a different script later with more rules than im all for helping but the sharky script i would like to keep with just a few of sharkys basic ideas anyway thanks again for the awsome imput and good luck with your trading next week...sharky

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #17 (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


Peter View Post
OK, tried to add condition that it only enters when signal changes.

This is COMPLETELY untested (done a minute ago) .....so at own risk.

Peter,I was testing this on market replay this morning. I had to manually add the MApaint 7 zerolag indicators to my chart. Otherwise I saw trades in both directions with bar close set to true.
Vic

Reply With Quote
  #18 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629

A modified version, with no more time limits, stop win, stop loss, trailing stop, and ZeroLagMA period from 1 to ....

Attached Files
Elite Membership required to download: SharkyMAStrategy_v1_02.zip
Follow me on Twitter Reply With Quote
Thanked by:
  #19 (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

thanks sam i will test it monday have a great weekend and be ready for more mods to the script next week

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #20 (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


Adapted the last version a bit.

- Saw that strategy didn't take certain valid trades. Reason was that strategy only allowed for new direction when being flat.
I changed ExitShort/ExitLong rules to allow for immediate reversal of position before being flat first.

- made second ZeroLag period also accessible parameter

- (line 70) added DMAPaint to be displayed on the chart
The DMAPaint in the .zip is adapted with the parameter PaintBar changed to false by default.

- (line 80) commented out "//if (Historical) return" to enable backtesting
As EOD all trades are closed don't see a reason yet to leave in.
Spend an hour before realizing that this was why the strategy didn't work in backtests.

BTW The DMAinternal.cs in this zip is my adapted version that also allows for TEMA, ZeroLagTEMA and ZeroLagHATEMA to be selected in the DMAPaint pulldown.


The wrong type of DMA was displayed with the strategy. This is corrected in the 1.03b zip

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




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