EnterLongLimit(EMA, "myLong") - NinjaTrader Programming | futures io social day trading
futures io futures trading


EnterLongLimit(EMA, "myLong")
Updated: Views / Replies:2,731 / 14
Created: by MXASJ 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 100,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
 

EnterLongLimit(EMA, "myLong")

  #11 (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, 921 received

modify a working order by calling the entry order method again with your new parameters..."

sounds doable!

keep us informed how it ends !

max-td
Reply With Quote
 
  #12 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 262 received


MXASJ View Post
I can now lose money in milliseconds! Before I had to wait a whole day!

In the Unmanaged Orders documentation I found this line:

"Unlike the Managed approach where you could modify a working order by calling the entry order method again with your new parameters..."

So I might try that first if I can ensure I'm keeping my position in queue and not doing a cancel/replace if there has been no price change.

All good fun...


ya that sounds good.

sometimes NT documentation could be tricky.

Reply With Quote
 
  #13 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 790 received


Trying this now:

 
Code
                            
if (useEMARetracementEnterLongLimit(0trueEntriesPerDirection eMAEntry"Long 1a");
     {
     if (
EMA(8)[0] > myEMA)
          {
          
eMAEntry Instrument.MasterInstrument.Round2TickSize(myEMA);
          
EnterLongLimit(0trueEntriesPerDirection eMAEntry"Long 1a"); 
          }
     } 
Not sure if its in the right place but I've got a days worth of live market data to play with. Thanks for your input!

Reply With Quote
 
  #14 (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, 921 received

hey mxa..

how this topic runs on your side now ?

max-td
Reply With Quote
 
  #15 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 790 received


max-td View Post
hey mxa..

how this topic runs on your side now ?


This is where I'm at. I've coded a bunch of custom methods, but you should get the idea:

 
Code
                            
case UniversalModel.Model2:
{
if (
Close[0] > EMA(8)[0] && Rising(EMA(BarsArray[2],8))== true)
{
longOK true;
}
else 
longOK false;
 
break;


and

 
Code
                            
if (entryType == UniversalEntry.AlphaMethodEntry && modelType == UniversalModel.Model2)
{
EnterLongLimit(0trueposSizeEMA(8)[0], "Long 1a");

It does the cancel/replace thing in background until the order is filled, and then the stop logic takes over. Getting there slowly...

Reply With Quote
The following user says Thank You to MXASJ for this post:

Reply



futures io > > > > > EnterLongLimit(EMA, "myLong")

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

July Journal Challenge - $500 in Amazon Gift Cards!

July

Battlestations: $750 in prizes - Show us your trading desk!

August

TBA: FuturesTrader71 w/Morad Askar

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Floored," the documentary on Trading Pit opens in Chicago this week goldilocks Off-Topic 39 September 11th, 2013 11:55 AM
RodS ZN trades using Sharkys "power of 7" DMA paint RodS Trading Journals 23 May 29th, 2011 01:36 PM
dealing with GetCurrentBidVolume and GetCurrentAskVolume , "long" casting into "int" jmejedi NinjaTrader Programming 4 May 23rd, 2011 09:33 AM
RJay's "Trader Volume" and "Trader Tick" Indicator Suites RJay The Elite Circle 20 December 20th, 2010 05:01 PM
"time"stop" codes for MC ptcm EasyLanguage Programming 1 September 2nd, 2010 12:57 AM


All times are GMT -4. The time now is 10:00 AM. (this page content is cached, log in for real-time version)

Copyright © 2018 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 2018-07-22 in 0.09 seconds with 14 queries on phoenix