Live strategy broken - futures io
futures io futures trading



Live strategy broken


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one kidvic with 4 posts (0 thanks)
    2. looks_two rleplae with 3 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 sam028 with 1 posts (0 thanks)
    1. trending_up 874 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 8 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

Live strategy broken

(login for full post details)
  #1 (permalink)
Los Angeles, CA
 
 
Posts: 92 since Mar 2015
Thanks: 13 given, 3 received

Hi,

I have a script that was working beautifully in market replay as soon as I go live, it malfunctions.

It enters 2 short liimits or 2 long limits at certain market conditions.

I have setstoploss and setprofittarget on the script, but heres the problem: it doesnt always place them there!

I have seen that on some instruments, it will do it, then on some it won't.

Like I said, the problem is when live!, why?

Please help!

Reply With Quote

Can you help answer these questions
from other members on futures io?
Short Interest Ratio indicator?
ThinkOrSwim
ZigZag with Depth and Backstep
EasyLanguage Programming
Webinar: Finding your own way in trading w/Adam Grimes
The Elite Circle
Automatic pattern research with NT
Elite Algorithmic NinjaTrader Trading
Help Needed: TOS Options Chain IV & IMPL MOVE Calcul …
ThinkOrSwim
 
 
(login for full post details)
  #3 (permalink)
Site Moderator
 
 
sam028's Avatar
 
Posts: 3,665 since Jun 2009
Thanks: 3,787 given, 4,494 received



kidvic View Post
Hi,

I have a script that was working beautifully in market replay as soon as I go live, it malfunctions.

It enters 2 short liimits or 2 long limits at certain market conditions.

I have setstoploss and setprofittarget on the script, but heres the problem: it doesnt always place them there!

I have seen that on some instruments, it will do it, then on some it won't.

Like I said, the problem is when live!, why?

Please help!

Without the code it's impossible to say what's wrong.
You may add some Print() for debugging purposes and see what are the values of the stop/target.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
 
(login for full post details)
  #4 (permalink)
Gits (Hooglede) Belgium
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,991 since Sep 2013
Thanks: 2,437 given, 5,801 received

Is there anything in the log ?
Do you get any error condition back ?

It could be rejected by the broker upon certain conditions, what broker are you using ?

Do you have a concrete example ?

Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #5 (permalink)
Los Angeles, CA
 
 
Posts: 92 since Mar 2015
Thanks: 13 given, 3 received


rleplae View Post
Is there anything in the log ?
Do you get any error condition back ?

It could be rejected by the broker upon certain conditions, what broker are you using ?

Do you have a concrete example ?

I use AMP.
It's really bizzare.
I used to have it with entries per direction = 2, yet it would put more instances, (mind you, when it entered 4, it actually placed apprppriate stops and profits) (even tho my strategy enters 2 per direction)
Im using Iorders, liveuntil cancelled.
I made the stop and takeprofit so they get created when market position is long or short ( because I thought they were entering too soon before the entry was triggered)

things that I think might be at issue:
I have set it to historical to return, (so it only takes new trades)
I have taken the entries per direction off( this helped as I only see 2 orders at a time now, but this doesnt make sense)
I have entryhandling to uniqueentries
I have also realtime errorhandling to take no action (my script automatically closes an order if it encounters a problem)

the things that I think might be the issue, could be the issue, but I've manipulated them in different variations, yet it still only seems to work with some instruments and not on others. This is what i find puzzling.

Reply With Quote
 
(login for full post details)
  #6 (permalink)
Gits (Hooglede) Belgium
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,991 since Sep 2013
Thanks: 2,437 given, 5,801 received


kidvic View Post
I use AMP.
It's really bizzare.
I used to have it with entries per direction = 2, yet it would put more instances, (mind you, when it entered 4, it actually placed apprppriate stops and profits) (even tho my strategy enters 2 per direction)
Im using Iorders, liveuntil cancelled.
I made the stop and takeprofit so they get created when market position is long or short ( because I thought they were entering too soon before the entry was triggered)

things that I think might be at issue:
I have set it to historical to return, (so it only takes new trades)
I have taken the entries per direction off( this helped as I only see 2 orders at a time now, but this doesnt make sense)
I have entryhandling to uniqueentries
I have also realtime errorhandling to take no action (my script automatically closes an order if it encounters a problem)

the things that I think might be the issue, could be the issue, but I've manipulated them in different variations, yet it still only seems to work with some instruments and not on others. This is what i find puzzling.

do you get a return error code ?
anything in the log file ?

Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #7 (permalink)
Los Angeles, CA
 
 
Posts: 92 since Mar 2015
Thanks: 13 given, 3 received


rleplae View Post
do you get a return error code ?
anything in the log file ?

it seems as though it canels, or rejects them. they pop up in the orders then go away.

Reply With Quote
 
(login for full post details)
  #8 (permalink)
Gits (Hooglede) Belgium
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,991 since Sep 2013
Thanks: 2,437 given, 5,801 received


kidvic View Post
it seems as though it canels, or rejects them. they pop up in the orders then go away.

Have you studied the trace file ?
~document\ninjatrader 7\trace

This could give you a clue of what is happening.. if the broker is rejecting it

Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #9 (permalink)
Los Angeles, CA
 
 
Posts: 92 since Mar 2015
Thanks: 13 given, 3 received


rleplae View Post
Have you studied the trace file ?
~document\ninjatrader 7\trace

This could give you a clue of what is happening.. if the broker is rejecting it

Thanks for that, I tihink ill seperate the long and the short, you have always been very helpful.

Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Live strategy broken


Last Updated on August 13, 2016


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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