help with strategy - NinjaTrader Programming | futures io social day trading
futures io futures trading


help with strategy
Updated: Views / Replies:842 / 6
Created: by niki Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you dont need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

help with strategy

  #1 (permalink)
Elite Member
wokolina
 
Futures Experience: None
Platform: ninjatrader
 
Posts: 4 since Mar 2010
Thanks: 0 given, 1 received

help with strategy

hi, I am not good with coding and what I looking for to figure out is how to develop a strategy where I can put SMA + some range
eg
 
Code
                            
protected override void Initialize()
 { 
  
SetProfitTarget ("", CalculationMode.Ticks4); 
 
SetStopLoss ("", CalculationMode.Ticks2); 
 
CalculateOnBarClose false
 } 
    
SMA(close4)
 if ( 
price_is_above_SMA_5_ticks 
 {  
enterlong;  //only one time, if price pullback (one tick because second is SL) and cross the fifth tick from SMA again, no more opening position 
  
}
 if ( 
price_is_bellow_SMA_5_ticks 
 {  
entershort//only one time  



Last edited by sam028; April 19th, 2010 at 03:45 PM. Reason: add php tag
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Florida
 
Futures Experience: Intermediate
Platform: NT7
Favorite Futures: CL, NQ, NG
 
Posts: 456 since Jun 2009
Thanks: 1,359 given, 383 received


Hey Niki,

Not exactly sure how to interpret your request...

Two thoughts to help move it along:

1. Post a screenshot with markups to identify what you mean by this:

Quoting 
//only one time, if price pullback (one tick because second is SL) and cross the fifth tick from SMA again, no more opening position

2. Check out the SampleMACrossover strats on the Ninjatrader forum website and see if that could be altered to accomplish what you want.

kz

Reply With Quote
 
  #4 (permalink)
Elite Member
wokolina
 
Futures Experience: None
Platform: ninjatrader
 
Posts: 4 since Mar 2010
Thanks: 0 given, 1 received

it looks like that

Attached Thumbnails
help with strategy-long_short.jpg  
Reply With Quote
 
  #5 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,573 given, 3,982 received

I'm not sure to understand the question, but if you want to avoid reversing your positions after each opposite signal, the idea is maybe to do something like:
 
Code
                            
 if ( ( price_is_above_SMA_5_ticks ) && (Position.MarketPosition == MarketPosition.Flat) ) {
enterlong ;
}

if ( ( 
price_is_below_SMA_5_ticks ) && (Position.MarketPosition == MarketPosition.Flat) ) {
 
entershort ;


Success requires no deodorant! (Sun Tzu)
Reply With Quote
The following user says Thank You to sam028 for this post:
 
  #6 (permalink)
 Vendor: www.coroin.com 
Galveston ,TX
 
Futures Experience: Intermediate
Platform: NT7
Broker/Data: Zaner
Favorite Futures: Futures
 
Posts: 386 since Mar 2010
Thanks: 364 given, 433 received

if you're asking for the "formula" to express price_is_above_SMA_5_ticks, try this:
 
Code
if (Close[0] > SMA(Close,4) + 5 * TickSize)
cheers,
-e

Reply With Quote
 
  #7 (permalink)
Elite Member
wokolina
 
Futures Experience: None
Platform: ninjatrader
 
Posts: 4 since Mar 2010
Thanks: 0 given, 1 received


eman View Post
if you're asking for the "formula" to express price_is_above_SMA_5_ticks, try this:
 
Code
if (Close[0] > SMA(Close,4) + 5 * TickSize)
cheers,
-e

yes, that what I'm looking for, I found it on ninja forum but anyway thx.

Reply With Quote

Reply



futures io > > > > > help with strategy

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Call ATM Strategy on an automated strategy to control position jsengxx NinjaTrader Programming 7 May 31st, 2016 05:51 PM
Utility To Transpose Optimized Strategy Values From Excel Output to Actual Strategy mercuryfx NinjaTrader 5 April 7th, 2012 04:59 PM
Ninjatrader7 ATM Strategy combine with Strategy Wizard Ninja Script schuster21 NinjaTrader Programming 4 July 4th, 2011 05:39 PM
Ninja Strategy multi-timeframe issue/Strategy to indicator nw123 NinjaTrader Programming 2 December 20th, 2009 07:24 PM


All times are GMT -4. The time now is 02:53 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-16 in 0.10 seconds with 20 queries on phoenix via your IP 54.163.209.109