strategy development - NinjaTrader Programming | futures io social day trading
futures io futures trading


strategy development
Updated: Views / Replies:3,460 / 14
Created: by kavin729 Attachments:4

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 donít 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
 4  
 
Thread Tools Search this Thread
 

strategy development

  #11 (permalink)
Elite Member
U.S.A.
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 19 since May 2010
Thanks: 5 given, 11 received

Kavin, Here's another way

Anyone familiar with the Android website SampleATMstrategyCANCEL.cs - autostrats - Project Hosting on Google Code ?

What I did is add some of Kavin's code to this ATM Strategy. If you see any errors please note a correction. It
looks like to me, people are using their Google Cell phones to trade with. I would think they would use GOTOMY
COMPUTER.COM and get into their desktop or server and trade. The power of these mobile cell phones is going up. Does anyone know of anyone who is trading using their mobile phone and they have NT7.0 on their cell phone and their using ATM to trade? I know you can get up to probably 8 gigs of extra memory. Would an Android be faster then an IPhone? What if you have a dropped connection? I'd think if I could use a laptop and go to my PC and trade, but you'ld have to make sure no one was watching you put in your password.

Here's the Android Code with some of Kavin's code changes added (TF_long_3W_3BR and TF_short_3W_3BR would be templates you would save out there that would control your stops, targets, auto trail, Breakeven,
auto trail strategies) as follows:

Attached Thumbnails
strategy development-bg_main.jpg  
Attached Files
Register to download File Type: cs atm2.cs (11.9 KB, 24 views)
Reply With Quote
The following user says Thank You to bill897 for this post:
 
  #12 (permalink)
Elite Member
Dublin, Ireland.
 
Futures Experience: Advanced
Platform: NinjaTrader, TOS, Multicharts, Open Source various
Favorite Futures: FDAX, cable/yen, FX, options on commodities
 
mrticks's Avatar
 
Posts: 67 since Jun 2009
Thanks: 16 given, 9 received


bill897 View Post
Anyone familiar with the Android website SampleATMstrategyCANCEL.cs - autostrats - Project Hosting on Google Code ?

What I did is add some of Kavin's code to this ATM Strategy. If you see any errors please note a correction. It
looks like to me, people are using their Google Cell phones to trade with. I would think they would use GOTOMY
COMPUTER.COM and get into their desktop or server and trade. The power of these mobile cell phones is going up. Does anyone know of anyone who is trading using their mobile phone and they have NT7.0 on their cell phone and their using ATM to trade? I know you can get up to probably 8 gigs of extra memory. Would an Android be faster then an IPhone? What if you have a dropped connection? I'd think if I could use a laptop and go to my PC and trade, but you'ld have to make sure no one was watching you put in your password.

Here's the Android Code with some of Kavin's code changes added (TF_long_3W_3BR and TF_short_3W_3BR would be templates you would save out there that would control your stops, targets, auto trail, Breakeven,
auto trail strategies) as follows:

I put that code up on Google to save out my daily strat code changes but since moved to subversion. Did you get anywhere with it or I could I help with something?

Reply With Quote
 
  #13 (permalink)
Trading Apprentice
 
Futures Experience: Beginner
Platform: ninjatrader
Favorite Futures: ES
 
Posts: 8 since Jan 2010
Thanks: 8 given, 0 received


Hi I want to place stoploss below current day open for long trade,and above current day open for short tradeI get error
"Operator"-" cannot be applied to operands of type "Ninja Trader .Data.DataSeries"and "double
error code NT0019
??

HTML Code:
private void GoLong()
		{
			SetStopLoss("target1", CalculationMode.Price, CurrentDayOHL().CurrentOpen - (Stop*TickSize), false);
			SetStopLoss("target2", CalculationMode.Price,CurrentDayOHL().CurrentOpen - (Stop*TickSize), false);
			SetStopLoss("target3", CalculationMode.Price, CurrentDayOHL().CurrentOpen - (Stop*TickSize), false);
			
			SetProfitTarget("target1", CalculationMode.Price, Close[0] + (Target1*TickSize));
			SetProfitTarget("target2", CalculationMode.Price, Close[0] + ((Target1+Target2)*TickSize));
			SetProfitTarget("target3", CalculationMode.Price, Close[0] + ((Target1+Target2+Target3)*TickSize));
			
			EnterLong("target1");
			EnterLong("target2");
			EnterLong("target3");
			
			
		}
		private void GoShort()
		{
			SetStopLoss("target1", CalculationMode.Price, CurrentDayOHL().CurrentOpen + (Stop*TickSize), false);
			SetStopLoss("target2", CalculationMode.Price, CurrentDayOHL().CurrentOpen + (Stop*TickSize), false);
			SetStopLoss("target3", CalculationMode.Price, CurrentDayOHL().CurrentOpen + (Stop*TickSize), false);
			
			SetProfitTarget("target1", CalculationMode.Price, Close[0] - (Target1*TickSize));
			SetProfitTarget("target2", CalculationMode.Price, Close[0] - ((Target1+Target2)*TickSize));
			SetProfitTarget("target3", CalculationMode.Price, Close[0] - ((Target1+Target2+Target3)*TickSize));
			
			EnterShort("target1");
			EnterShort("target2");
			EnterShort("target3");
			
			
		}

Reply With Quote
 
  #14 (permalink)
Trading Apprentice
 
Futures Experience: Beginner
Platform: ninjatrader
Favorite Futures: ES
 
Posts: 8 since Jan 2010
Thanks: 8 given, 0 received

Hi as per condition i am getting Dots at the correct bars why am i getting long signal on the next bar
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

HTML Code:
  protected override void OnBarUpdate()
       {
// Condition set 1
            if (Close[1] > CurrentDayOHL().CurrentOpen[0]
				&& Close[1]>Open[1]
				&& High[0]>Open[0]
                && High[0] > High[1])
            {
               Print("");
				DrawDot("My Dot"+ CurrentBar,false,0,High[0],Color.Blue);
               EnterLong();
            }

            // Condition set 2
           if (Close[1] < CurrentDayOHL().CurrentOpen[0]
				&& Close[1]<Open[1]
				&& Low[0]<Open[0]
               && Low[0] < Low[1])
            {
                Print("");
				DrawDot("My Dot"+ CurrentBar,false,0,Low[0],Color.Red);
                EnterShort();
            }
        }

Reply With Quote
 
  #15 (permalink)
Market Wizard
New Orleans, La (Mardi Gras City)
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Ninjatrader / Optimus Futures / AmpFutures
Favorite Futures: ES / 6E / 6B / CL
 
DavidHP's Avatar
 
Posts: 1,001 since Aug 2009
Thanks: 802 given, 1,367 received


kavin729 View Post
Hi as per condition i am getting Dots at the correct bars why am i getting long signal on the next bar


Probably because the strategy is set to Calculate On Bar Close.

Most people think they can get a signal and get an entry on the same bar.
This causes a lot of frustration to new traders.

In real time trading, this is seldom possible.
Most indicators/strategies calculate on bar close which means the price has moved.

Also, when a signal occurs, there is a spread.
Either the bid or ask is not at the signal price.
A 'real time' fill at the signal price is not usually possible after the signal.

Price is seldom stagnant.
(if it was, would you trade it?)

Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Reply With Quote
The following user says Thank You to DavidHP for this post:

Reply



futures io > > > > > strategy development

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building a PC for Discretionary/Automated Trading and Strategy Development nlhaines Tech Support 50 January 13th, 2017 06:18 PM
Perrys Trading -> Strategy - development wgreenie NinjaTrader Programming 259 October 21st, 2015 02:22 PM
Strategy development GOM CD divergence chipotlebop The Elite Circle 72 April 14th, 2014 10:41 AM
Custom development neb1998 NinjaTrader Programming 1 March 7th, 2011 04:43 PM
Strategy development suprsnipes NinjaTrader Programming 1 March 2nd, 2010 11:45 PM


All times are GMT -4. The time now is 07:43 AM.

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-11 in 0.14 seconds with 20 queries on phoenix via your IP 54.226.132.197