Live strategy broken - NinjaTrader Programming | futures.io
futures.io futures trading


Live strategy broken
Started: by kidvic Views / Replies:261 / 8
Last Reply: Attachments:0

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

Live strategy broken

  #1 (permalink)
Trading for Fun
Los Angeles, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader, ThinkOrSwim
Favorite Futures: Options, Futures
 
Posts: 92 since Mar 2015
Thanks: 13 given, 2 received

Live strategy broken

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
 
  #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)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,257 since Jun 2009
Thanks: 3,479 given, 3,846 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.

Usually in trading, those who know don't talk, and those who talk don't know. (Al Brooks)
success requires no deodorant! (Sun Tzu)
Reply With Quote
 
  #4 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, CL, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 1,656 since Sep 2013
Thanks: 1,219 given, 2,499 received
Forum Reputation: Legendary

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 ?

Reply With Quote
 
  #5 (permalink)
Trading for Fun
Los Angeles, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader, ThinkOrSwim
Favorite Futures: Options, Futures
 
Posts: 92 since Mar 2015
Thanks: 13 given, 2 received

Futures Edge on FIO

Which products do you trade?

 

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
 
  #6 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, CL, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 1,656 since Sep 2013
Thanks: 1,219 given, 2,499 received
Forum Reputation: Legendary


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 ?

Reply With Quote
 
  #7 (permalink)
Trading for Fun
Los Angeles, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader, ThinkOrSwim
Favorite Futures: Options, Futures
 
Posts: 92 since Mar 2015
Thanks: 13 given, 2 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
 
  #8 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, CL, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 1,656 since Sep 2013
Thanks: 1,219 given, 2,499 received
Forum Reputation: Legendary


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

Reply With Quote
 
  #9 (permalink)
Trading for Fun
Los Angeles, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader, ThinkOrSwim
Favorite Futures: Options, Futures
 
Posts: 92 since Mar 2015
Thanks: 13 given, 2 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

Reply



futures.io > > > > > Live strategy broken

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

2016 True Edge Awards: Voting is open until Jan 21!

Now
 

An Afternoon with FIO member Massive l

Elite only
 

Anthony Drager: Pulling the trigger with confidence

Elite only
 

Leo Murphy: The Art and Science of Technical Analysis

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
KongZanaTrading live room plus strategy futurestrader1 Vendors and Product Reviews 157 August 30th, 2016 12:25 PM
is OEC Demo Strategy different than Live Strategy? Momozo Open E Cry 7 August 31st, 2015 04:53 AM
Taking automated strategy live DavidBodhi Elite Automated Trading 12 August 2nd, 2015 10:51 PM
How to pass information to a live strategy aviat72 NinjaTrader Programming 5 August 30th, 2010 09:08 PM
Live strategy trading - setup process? nanobiotech NinjaTrader 2 November 23rd, 2009 11:15 AM


All times are GMT -4. The time now is 09:08 AM.

no new posts
Page generated 2017-01-19 in 0.12 seconds with 20 queries on phoenix via your IP 54.211.179.232