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 21,881 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

  #21 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

hey peter!
ThanX -
+ incl. perfect update-report !

max-td
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Deepmoney LLM
Elite Quantitative GenAI/LLM
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Futures True Range Report
The Elite Circle
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
GFIs1 1 DAX trade per day journal
22 thanks
NexusFi site changelog and issues/problem reporting
22 thanks
The Program
20 thanks
  #22 (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

peter its not a zerolag dma anymore i have my normal 7 zerolag on the chart and your new version and the 2 dmas are way different...sharky

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


Sharky, you got me very confused now.

I didn't change anything with regard to the DMAPaint.
All strategies in this thread were and are based on the DMPaint(7, ZeroLagEMA, 7 ZeroLagEMA).
The only thing that is changed is that the period settings of the ZeroLag's can be changed when running the strategy without having to edit the code.
This is often handy to tweak and optimize, until you really decide for one setting embedded in the strategy code.

Also the pictures in you first entry are the DMAPaint with that setting. Are those pics not from the settings you want?


---------------------------------------------------------------
Before I read Sharky's reaction I already worked on something else that the coders may want to look at.
All strategies before use the Signal dataseries of the DMAPaint indicator.
I didn't have market replay files to test, but I think using the Signal dataseries can result in delayed entries/exits (triggering like the arrows which are painted 2 bars backwards).
The strategy below uses the DMV dataseries in DMAPaint. You may want to try both simultaneously to see if v1.04 behaves differently (and better of worse for the purpose).
This is NOT tested, just a development version

Attached Files
Elite Membership required to download: SharkyMAstrategy_v1_04c_DMVversion.zip
Reply With Quote
Thanked by:
  #24 (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,399 since Jun 2009
Thanks Given: 33,173
Thanks Received: 101,539


Peter View Post
I didn't have market replay files to test

Thanks Peter for your code contributions. You can find Market Replay files in the Downloads section, NinjaTrader, Miscellaneous.

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
  #25 (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

peter i already went into my script and changed the zerolag tema to aerolag ema

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

look in your script line 69 it says tema it needs to say ema
and i changed the trailing to stop to 0 instead of 1 from line 177

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

and look at the dma paint indicator and put the 7 zero lag on your chart and then put yours on top of it and see the difference you have yellow in your and the normal dma paint is just 2 colors and sams version is the same as the dma paint.

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

Ah, I finally see what you mean.

The strategy itself was ok, it uses the ZLEMA to buy/sell.

Apparently I made a typo in the part that paints the line. I Added it as help for myself on blank charts ...
I'll change it to ZLEMA and reupload the Zip files.


OK, here are the latest.
Please read the previous post on the differences

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

peter set your zerolag on 12 for me please and put it on a chart

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


Sam,peter or anyone else

I am interested in testing this strategy Monday for quick scalps, and I would like to revise it to include the following:

I do not want to employ a TrailStop, so set TrailStop default = 0 (not = 1 as it currently is).

I do want an Auto Breakeven feature that once open profit = 2 ticks (set as variable), I want to automatically move my Stop Loss to Entry. This protects my position if my Profit Target is hit but I am not filled, and price then moves against me.

This feature in the ATM Stop Strategy would read as follows:

Auto breakeven (ticks)
Profit trigger: 2 (set as variable) Plus: 0 (set as variable)

Visit my NexusFi Trade Journal Started this thread 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