NexusFi: Find Your Edge


Home Menu

 





EnterLongLimit(EMA, "myLong")


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one MXASJ with 7 posts (1 thanks)
    2. looks_two max-td with 4 posts (0 thanks)
    3. looks_3 bukkan with 3 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 5,248 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 14 posts
    2. attach_file 0 attachments




 
Search this Thread

EnterLongLimit(EMA, "myLong")

  #11 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

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

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
 
  #12 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


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)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800


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!

Started this thread Reply With Quote
  #14 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

hey mxa..

how this topic runs on your side now ?

max-td
Reply With Quote
  #15 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800


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...

Started this thread Reply With Quote
Thanked by:




Last Updated on July 16, 2010


© 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