NexusFi: Find Your Edge


Home Menu

 





Please Help, driving me mad!!


Discussion in NinjaTrader

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




 
Search this Thread

Please Help, driving me mad!!

  #1 (permalink)
 
ryangillespie's Avatar
 ryangillespie 
london, England
 
Experience: Intermediate
Platform: Ninjatrader
Trading: CL, ES
Posts: 41 since Nov 2011
Thanks Given: 10
Thanks Received: 2

Hi everyone,

I am trying to learn how to code strategies in ninjascript. I am taking indicators and trying to adjust them to trade automaticly and then play with them from there. This one whowever is driving me up the wall, I just cant seem to get it working.

Its simple to someone who knows how, all I want to do is enter long on a blue plot and short on a red plot with a trailing stop.

Why wont it work, if someone can help me and point out how to code it correctly I would really appreciate it.

Thanks,

Ryan

Attached Files
Elite Membership required to download: ZLTEMA_Cross_Startegy.txt
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Request for MACD with option to use different MAs for fa …
NinjaTrader
ZombieSqueeze
Platforms and Indicators
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
58 thanks
Battlestations: Show us your trading desks!
55 thanks
NexusFi site changelog and issues/problem reporting
48 thanks
What percentage per day is possible? [Poll]
31 thanks
GFIs1 1 DAX trade per day journal
29 thanks

  #3 (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,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,477



ryangillespie View Post
Why wont it work

What is not working? Error message? No trades?

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
  #4 (permalink)
 
ryangillespie's Avatar
 ryangillespie 
london, England
 
Experience: Intermediate
Platform: Ninjatrader
Trading: CL, ES
Posts: 41 since Nov 2011
Thanks Given: 10
Thanks Received: 2


Big Mike View Post
What is not working? Error message? No trades?

Mike


Hi Mike,

Sorry about that, not a very informative post. I am trying to adjust the code to submit orders when the ZLTEMA indicators are initiated either long or short. When I try to compile the code I get inundated with errors and I dont know where to start. I am looking for someone who knows what they are doing with regards to ninjascript so they can take a look at the code and point out my errors and how to remady them.

Thanks for the reply.

Ryan

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,322 since Jun 2009
Thanks Given: 33,143
Thanks Received: 101,477



Hopefully someone can help you out.

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
  #6 (permalink)
 traderwerks   is a Vendor
 
Posts: 692 since Jun 2009
Thanks Given: 436
Thanks Received: 465

I am not in front of my machine so I cannot compile, but you do have a few errors.

Start at the first error and work your way down.

Lines like this where you calculate the zltema34slope tend to be where you can find problems like mismatched parens.

 
Code
 zltema34slope = (int)(radToDegrees*(Math.Atan((ZeroLagTEMA(Period)[0]-(ZeroLagTEMA(Period)[1]+ZeroLagTEMA(Period)[2])/2)/1.5/TickSize)));

Math. A gateway drug to reality.
Reply With Quote





Last Updated on January 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