ORDER PENDING - NinjaTrader Programming | futures io social day trading
futures io futures trading


ORDER PENDING
Updated: Views / Replies:2,082 / 8
Created: by firecan Attachments:0

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
 
Thread Tools Search this Thread
 

ORDER PENDING

  #1 (permalink)
Elite Member
sevilla
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: futures
 
firecan's Avatar
 
Posts: 7 since Nov 2010
Thanks: 7 given, 0 received

ORDER PENDING

Hi, I want to send a pending order when the market reaches a certain price. (NT)

Is this possible ?

CODE:

if (Price = touch_price)
{EnterLong (0,true,contrats,Close[0]+DistanceMarket*TickSize, "Open Long 1");}

Regards.

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
UK
 
Futures Experience: Intermediate
Platform: Ninja
Broker/Data: Mirus/Zen
Favorite Futures: Futures - bonds, currencies, index
 
Posts: 288 since Oct 2010
Thanks: 70 given, 267 received


If you want to go long, use one of these

EnterLongStop
EnterLongLimit

Stop for entries above the current price, and limit for entries below. Replace Long with Short to go short.

Reply With Quote
 
  #4 (permalink)
Elite Member
sevilla
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: futures
 
firecan's Avatar
 
Posts: 7 since Nov 2010
Thanks: 7 given, 0 received

Order Pending

Hello again, thank you.

The problem is to write the code that generates the entry.

Can you help me.

_________________________________________________________
Variables

private int touch_price = 1,2345

if (Price = touch_price) // This is wrong code - need change it -

{EnterLongStop (0,true,contrats,Close[0]+DistanceMarket*TickSize, "Open Long 1");}
__________________________________________________________

Regards.

Salvador.

Reply With Quote
 
  #5 (permalink)
Elite Member
UK
 
Futures Experience: Intermediate
Platform: Ninja
Broker/Data: Mirus/Zen
Favorite Futures: Futures - bonds, currencies, index
 
Posts: 288 since Oct 2010
Thanks: 70 given, 267 received

I'm not sure exactly what you're having trouble with. Your if statement needs == rather than =

Was that all?

Reply With Quote
 
  #6 (permalink)
Elite Member
sevilla
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: futures
 
firecan's Avatar
 
Posts: 7 since Nov 2010
Thanks: 7 given, 0 received

Hello again.

I've tried with:

privateint touch_price = 1,4030; // 6E
private boll touch_price = 1,4030; // 6E
private double touch_price = 1,4030; // 6E

And in any case accept decimals.

Also:

if (Position.AvgPrice == touch_price);
GoLong();


I don't know if it works with (Position.AvgPrice == touch_price); .Becasue do not let me compile it by not allowing decimals.

Could you help me.

Greetings.

Reply With Quote
 
  #7 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,221 received


firecan View Post
Hello again.

I've tried with:

privateint touch_price = 1,4030; // 6E
private boll touch_price = 1,4030; // 6E
private double touch_price = 1,4030; // 6E

And in any case accept decimals.

Also:

if (Position.AvgPrice == touch_price);
GoLong();


I don't know if it works with (Position.AvgPrice == touch_price); .Becasue do not let me compile it by not allowing decimals.

Could you help me.

Greetings.

You need to wrap code snippets in the [code]put code here[/code] tags to prevent bad formatting on the forum.

It sounds like what you are wanting is called Market On Touch. You'll have to run your strategy with COBC = false to monitor tick by tick.

You seem to be saying you are getting an error message. It would be helpful if you would post a screen shot of the error message, but my guess from your posts is that you need to use a dot . not a comma , in the double. BTW, an int cannot have decimals, and a boolean cannot have decimals.

I suggest you study some existing strategy and indicator code, there are hundreds available on this site. Read line by line and you will begin to understand what you can do from others working examples.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #8 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received


firecan View Post
Hello again.

I've tried with:

privateint touch_price = 1,4030; // 6E
private boll touch_price = 1,4030; // 6E
private double touch_price = 1,4030; // 6E

And in any case accept decimals.

Also:

if (Position.AvgPrice == touch_price);
GoLong();


I don't know if it works with (Position.AvgPrice == touch_price); .Becasue do not let me compile it by not allowing decimals.

Could you help me.

Greetings.


maybe this helps for one step ahead ....

your last sentence explains one problem to me

decimals in codes dont like comma but they need to be written with points
try it like this :

 
Code
                            
private int touch_price =  1.4030// 6E
private bool touch_price =  1.4030// 6E 
private double touch_price =  1.4030// 6E 

and report
-

max-td
Reply With Quote
 
  #9 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received

ooops,
mike wrote something like this yet


Quoting 
by mike : You seem to be saying you are getting an error message. It would be helpful if you would post a screen shot of the error message, but my guess from your posts is that you need to use a dot . not a comma , in the double. BTW, an int cannot have decimals, and a boolean cannot have decimals.

i am still sleepy a bit here it seems

max-td
Reply With Quote

Reply



futures io > > > > > ORDER PENDING

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
Pending Home Sales Rise 8.2% in May, A Surprise Rebound Quick Summary News and Current Events 0 June 29th, 2011 11:40 AM
Pending Home Sales Surged Unexpectedly During October Quick Summary News and Current Events 0 December 2nd, 2010 11:40 AM
Pending Home Sales Post a Surprising Jump in July Quick Summary News and Current Events 0 September 2nd, 2010 11:20 AM
Pending Home Sales Plunge as Housing Market Weakens Quick Summary News and Current Events 0 August 3rd, 2010 11:10 AM
Pending Forex Problem: HOW TO STOP THE CFTC websouth Off-Topic 0 January 21st, 2010 02:35 AM


All times are GMT -4. The time now is 07:32 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-13 in 0.22 seconds with 19 queries on phoenix via your IP 54.196.182.102