In AutoTrading is a phantom (dummy) contract and a live (replay) contract possible? - futures io
futures io futures trading



In AutoTrading is a phantom (dummy) contract and a live (replay) contract possible?


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one rpm123 with 4 posts (5 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 MrYou with 1 posts (1 thanks)
    4. looks_4 vegasfoster with 1 posts (1 thanks)
      Best Posters
    1. looks_one serac with 2 thanks per post
    2. looks_two rpm123 with 1.3 thanks per post
    3. looks_3 vegasfoster with 1 thanks per post
    4. looks_4 MrYou with 1 thanks per post
    1. trending_up 3,619 views
    2. thumb_up 9 thanks given
    3. group 4 followers
    1. forum 7 posts
    2. attach_file 3 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
 

In AutoTrading is a phantom (dummy) contract and a live (replay) contract possible?

(login for full post details)
  #1 (permalink)
Green Bay WI
 
Experience: Intermediate
Platform: NT
Broker: AMP/CQG
Trading: 6E
 
rpm123's Avatar
 
Posts: 321 since Apr 2010
Thanks: 337 given, 465 received

I've played with a number of bots, mostly simple SAR ones that do not make money, but they still show a positive # of ticks on a high 80% of trades before moving adversely. I.e., very few trades are entered at the top or bottom of the move (except in the worst chop). So naturally I add a target and stop loss to catch the initial surge and limit my downside. But then, of course, the simple algo increases the total number of trades, and I am worse off than I started.

So my question is, can a bot have that first contract not actually trade live (or replay), but be used as a signal to the second contract to enter live (replay), the second contract having the stop loss/target requirements on it, but the second contract, after closing out, would not take another action, until the first contract signaled it again?

Is this a common mis-perception of trade analysis or am I on to something here?

Visit my futures io Trade Journal Started this thread Reply With Quote
The following 2 users say Thank You to rpm123 for this post:

Journal Challenge February 2021 results:
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(172 thanks from 31 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(120 thanks from 33 posts)
looks_3Wisdom is Emptinessby Mtype
(68 thanks from 25 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(31 thanks from 17 posts)
looks_5Journal for peanuts1956by peanuts1956
(23 thanks from 13 posts)
 
 
(login for full post details)
  #3 (permalink)
Green Bay WI
 
Experience: Intermediate
Platform: NT
Broker: AMP/CQG
Trading: 6E
 
rpm123's Avatar
 
Posts: 321 since Apr 2010
Thanks: 337 given, 465 received


Here's a picture of a bad patch of trades, that 8 out of 10 could have been profitable with a 5 tick PT and a 10 tick Stop. But building that in increases the number of trades.

Visit my futures io Trade Journal Started this thread Reply With Quote
The following user says Thank You to rpm123 for this post:
 
(login for full post details)
  #4 (permalink)
Green Bay WI
 
Experience: Intermediate
Platform: NT
Broker: AMP/CQG
Trading: 6E
 
rpm123's Avatar
 
Posts: 321 since Apr 2010
Thanks: 337 given, 465 received

So the final two columns in this trade list assumes all trades that did not reach $50 took a $100 loss. And all the winners just took $50.

It turns a -$4162 month into a positive $1800 month. With a much more livable Draw down.

This is a a simple SAR strategy based on the MACD average line turning red/green and entering appropriately. Nothing fancy.

Attached Files
Register to download File Type: xls NinjaTrader Trade List, 9_17_2012 - 10_12_2012.xls (107.0 KB, 5 views)
Visit my futures io Trade Journal Started this thread Reply With Quote
The following user says Thank You to rpm123 for this post:
 
(login for full post details)
  #5 (permalink)
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 839 received

I do it in Sierra Chart, so I'm pretty sure you can do it in Ninja. I just create a separate calculation with a virtual position using natural entries and exits and control the units with a series of if statements then make my entry the same as the virtual entry but exit on fixed stops and targets.

For example something like,

//Virtual Position
If( PositionQuantity[0]<4 && EMA1[0]>EMA2[0] && EMA1[1]<EMA2[1] )
{
PositionQuantity[0] = PositionQuantity[1] + 1;
}

else if( PositionQuantity[0]>-4 && EMA1<EMA2 ) && EMA1[1]>EMA2[1] )
{
PositionQuantity[0] = PositionQuantity[1] - 1;
}

else
{
PositionQuantity[0] = PositionQuantity[1];
}


//Live Position
If(PositionQuantity[0] > PositionQuantity[1])
{
Buy 1 Unit;
Stop = Entry price minus 5 ticks;
Target = Entry price plus 10 ticks;
}

If(PositionQuantity[0] < PositionQuantity[1])
{
Sell 1 Unit;
Stop = Entry price plus 5 ticks;
Target = Entry price minus 10 ticks;
}

Reply With Quote
The following user says Thank You to vegasfoster for this post:
 
(login for full post details)
  #6 (permalink)
Green Bay WI
 
Experience: Intermediate
Platform: NT
Broker: AMP/CQG
Trading: 6E
 
rpm123's Avatar
 
Posts: 321 since Apr 2010
Thanks: 337 given, 465 received

thanks @vegasfoster,

I build with strategy wizard on NT. Slowly trying to learn programming.

Attached is my simple MACD SAR strategy file. It uses MACDBBLinesV4.

If anyone could take a crack and add code to this, and post it back, it would seriously satisfy my curiosity.

Thank you in advance. -Patrick

Attached Files
Register to download File Type: cs rpmMACDEMA.cs (36.4 KB, 9 views)
Visit my futures io Trade Journal Started this thread Reply With Quote
The following user says Thank You to rpm123 for this post:
 
(login for full post details)
  #7 (permalink)
Arizona, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: MB Trading
Trading: Cello
 
serac's Avatar
 
Posts: 116 since Jan 2011
Thanks: 321 given, 138 received

I have sort of done this. My development stuff tests its own performance using "internal trades." I wanted to be able to invoke OnBarUpdate from within the strategy without potentially actually initiating a trade.

Far from elegant, I ended up creating algorithms parallel to the commonly-called structures in NT (such as Performance and Position). In NT you have Position.MarketPosition types. Essentially, I added a new type myInternalPositon.myInternalPosition type that declares Flat, Long, and Shrot positions for the internal/virtual trades. Doing this, writing stop and target catch logic for the internal trades, and writing a wrapper around OnBarUpdate enables the strategy to backtest and optimize itself.

With the same logic, you could by default operate in the internal/virtual mode. Once you hit a certain success criteria, you could automatically switch on for real.

You can do it in NT, it just is not elegant.

Reply With Quote
The following 2 users say Thank You to serac for this post:
 
(login for full post details)
  #8 (permalink)
NC, USA
 
Experience: None
Platform: None Yet
Trading: Guitar
 
MrYou's Avatar
 
Posts: 403 since Jun 2011
Thanks: 618 given, 196 received

I can do this using one strategy as a "master trader" placing sim trades and another as the "slave trader" placing sim or live trades. So for every strategy you would have two running at once, one controlling the other.

If anyone is interested PM me to discuss payment.

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


futures io Trading Community Traders Hideout > In AutoTrading is a phantom (dummy) contract and a live (replay) contract possible?


Last Updated on October 15, 2012


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1500 prizes from Topstep!

February
 

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

March
 

Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only
     



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