NexusFi: Find Your Edge


Home Menu

 





Please help with simple strategy with SMA


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one lurker with 8 posts (1 thanks)
    2. looks_two forrestang with 7 posts (3 thanks)
    3. looks_3 shodson with 1 posts (0 thanks)
    4. looks_4 dimkrinichnyi with 1 posts (0 thanks)
    1. trending_up 5,302 views
    2. thumb_up 4 thanks given
    3. group 4 followers
    1. forum 17 posts
    2. attach_file 3 attachments




 
Search this Thread

Please help with simple strategy with SMA

  #11 (permalink)
lurker
New Delhi, India
 
Posts: 14 since Aug 2010
Thanks Given: 5
Thanks Received: 6

Aargh... still waiting for reply. Trying to shift to NT I notice several blunders, hope that my perspective will change once teething problems are over

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
 
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?
21 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #12 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


lurker View Post
Aargh... still waiting for reply. Trying to shift to NT I notice several blunders, hope that my perspective will change once teething problems are over

If nobody gets to it before i do, i have been meaning to help out with this, just been a bit busy this weekend.

Reply With Quote
Thanked by:
  #13 (permalink)
lurker
New Delhi, India
 
Posts: 14 since Aug 2010
Thanks Given: 5
Thanks Received: 6


Forrestang, your gesture is very much appreciated mate. It's just that I wasted too many hours and started to feel annoyed.

Reply With Quote
  #14 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


lurker View Post
Forrestang, your gesture is very much appreciated mate. It's just that I wasted too many hours and started to feel annoyed.

Hehe..... try this out. Renamed so you can look at it and yours. Here are some examples I have highlighted on the chart. As it is now, I have only scripted the LONG side, but the short side would require similar inputs.

It will place a stop below the low of the PRIOR bar before entry. It will also check for an opposing MA cross to exit on each onBarUpdate(), so you have two exit conditions for each buy signal.

Attached Thumbnails
Click image for larger version

Name:	Prime2011-10-31_120347.JPG
Views:	196
Size:	319.2 KB
ID:	53656  
Attached Files
Elite Membership required to download: tutorial_mod.cs
Reply With Quote
Thanked by:
  #15 (permalink)
lurker
New Delhi, India
 
Posts: 14 since Aug 2010
Thanks Given: 5
Thanks Received: 6

I took what was missing from my earlier code and was able to get started within couple of minutes
I've done a lot of modifications and everything is working fine now

Reply With Quote
  #16 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


lurker View Post
I took what was missing from my earlier code and was able to get started within couple of minutes
I've done a lot of modifications and everything is working fine now

Congrats!

You mean you got it working without the latest script I posted?

Reply With Quote
  #17 (permalink)
lurker
New Delhi, India
 
Posts: 14 since Aug 2010
Thanks Given: 5
Thanks Received: 6

Ohh no, your script was the life saver. It helped me understand what I was missing

Reply With Quote
Thanked by:
  #18 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


lurker View Post
Ohh no, your script was the life saver. It helped me understand what I was missing

Ah cool. Glad you figured it out!

Reply With Quote
Thanked by:




Last Updated on November 1, 2011


© 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