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


Live strategy broken
Updated: Views / Replies:348 / 8
Created: by kidvic 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,321 since Jun 2009
Thanks: 3,530 given, 3,931 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)
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, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 1,981 since Sep 2013
Thanks: 1,396 given, 2,961 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


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, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 1,981 since Sep 2013
Thanks: 1,396 given, 2,961 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, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 1,981 since Sep 2013
Thanks: 1,396 given, 2,961 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)

FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May
 

An overview of volumetric analytical tools w/Artem Topol @ PTMC

Elite only
 

Finding Success in Futures Trading w/John Hoagland

Jun 6
 

FuturesTrader71 Extended Ask Me Anything (AMA)

Elite only
 

Diving Into Order Flow w/Alex Haywood & Jigsaw Trading

Jun 8

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only
     

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


All times are GMT -4. The time now is 09:39 PM.

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-05-29 in 0.12 seconds with 19 queries on phoenix via your IP 54.224.200.104