Need help decreasing number of 'placeholder' trades in strategy - NinjaTrader Programming | futures io social day trading
futures io futures trading


Need help decreasing number of 'placeholder' trades in strategy
Updated: Views / Replies:438 / 2
Created: by Jeddy197 Attachments:1

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Need help decreasing number of 'placeholder' trades in strategy

  #1 (permalink)
Elite Member
Spartanburg, SC, US
 
Futures Experience: Intermediate
Platform: Ninjatrader, MT4
Favorite Futures: Forex
 
Posts: 7 since Jul 2013
Thanks: 4 given, 1 received

Need help decreasing number of 'placeholder' trades in strategy

I've been running a strategy for a few weeks, which seems to be doing well, but I'd like to further that by decreasing the commissions I'm paying. My code uses order management similar to an example video made by BigMike, so I will reference his example/template for simplicity's sake.

Here is his video illustrating the strategy: https://futures.io/ninjatrader/2512-video-tutorial-how-create-advanced-ninjatrader-strategy.html

And here is the actual code: MyMoneyMaker_BigMike.zip

Upon entry, my strategy opens 3 separate long orders. These 3 orders are managed separately, with their own SL, TP, and breakeven point. The first two orders ("target1" & "target2") are opened with extremely small lot sizes, and are essentially there just to serve as a breakeven point for "target3", which carries the majority of the trade size.

The reason I have done it this way is it's the most effective way I could incorporate dynamic trailing stops and profit triggers. It works great, but since "target1" and "target2" are effectively just placeholders, it would be nice if I could alter this method so I didn't actually have to trade target1 and target2 (this avoiding commissions). So does anyone have experience trading a similar method, but avoiding having to enter "placeholder" trades?

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)
Membership Temporarily Revoked
Joaquin Texas
 
Futures Experience: Intermediate
Platform: Thinkorswim
Broker/Data: Etrade
Favorite Futures: Options
 
Posts: 8 since May 2015
Thanks: 0 given, 1 received



Jeddy197 View Post
I've been running a strategy for a few weeks, which seems to be doing well, but I'd like to further that by decreasing the commissions I'm paying. My code uses order management similar to an example video made by BigMike, so I will reference his example/template for simplicity's sake.

Here is his video illustrating the strategy: https://futures.io/ninjatrader/2512-video-tutorial-how-create-advanced-ninjatrader-strategy.html

And here is the actual code: Attachment 183426

Upon entry, my strategy opens 3 separate long orders. These 3 orders are managed separately, with their own SL, TP, and breakeven point. The first two orders ("target1" & "target2") are opened with extremely small lot sizes, and are essentially there just to serve as a breakeven point for "target3", which carries the majority of the trade size.

The reason I have done it this way is it's the most effective way I could incorporate dynamic trailing stops and profit triggers. It works great, but since "target1" and "target2" are effectively just placeholders, it would be nice if I could alter this method so I didn't actually have to trade target1 and target2 (this avoiding commissions). So does anyone have experience trading a similar method, but avoiding having to enter "placeholder" trades?


If I'm understanding correctly you use target 1 & 2 to trigger or have a value for use with your trailing stop. Thinkorswim works in the same way. What I did was this:

def crossAbove = price[1] crosses above Avg[1] and price[1] crosses above ValueHi + entry_price ;
This is the criteria that fires my buy order it is simply true of false

I then use this to create a separate order for my trailing stop i.e-
def trigger = if crossabove then 1 else 0;
def orderprice = close;
rec ts = if trigger then orderprice - trailstop else if low - trailstop > ts[1] then low - trailstop else ts[1];
def stopout = if trigger then 0 else if low <= ts then 1 else 0;
AddOrder(OrderType.SELL_TO_CLOSE, stopout, ts, name = "Trailing_Stop");


It's mostly about where you point your variables. If you need to discuss this further let me know.

Regards,
David

Reply With Quote

Reply



futures io > > > > > Need help decreasing number of 'placeholder' trades in strategy

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strategy not taking trades in live bur trades in Back test forexcasted NinjaTrader Programming 8 November 17th, 2014 02:17 PM
Disabling strategy trades AstralTrader NinjaTrader 0 January 27th, 2014 06:46 PM
number of trades different with stop change mcteague NinjaTrader 3 January 18th, 2013 09:00 PM
average number of trades per day aquarian1 Psychology and Money Management 13 December 21st, 2010 04:12 PM
Same Strategy, Same Market, Same Time = Different trades! MXASJ NinjaTrader Programming 22 January 29th, 2010 05:25 AM


All times are GMT -4. The time now is 07:47 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-12-17 in 0.08 seconds with 20 queries on phoenix via your IP 54.163.209.109