Daily maximum target for Multiple trades - futures io
futures io futures trading



Daily maximum target for Multiple trades


Discussion in NinjaTrader

Updated
    1. trending_up 1,816 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 2 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
 

Daily maximum target for Multiple trades

(login for full post details)
  #1 (permalink)
Queensland Australia
 
Experience: Intermediate
Platform: NinjaTrader, Metatrader
Broker: Mirus Futures/Zen-Fire
Trading: 6E, ES, FESX, Forex
 
scartree's Avatar
 
Posts: 63 since Sep 2009
Thanks: 63 given, 79 received

I am learning to code a very simple strategy in Ninjascript for NT7. There are a couple of things with which I am having difficulty. The first is coding a user defined trailing stop. I have been searching for a strategy which has this feature and I am sure I will find it but help here would be appreciated.

The other is a more difficult task and despite my efforts I have been frustrated. I am applying my strategy to several charts, each with a different stock index. (I hope it will also work with bonds, commodities, etc). Having each index trade the strategy is working well. My first objective is to code a daily total TP or SL in each chart which will prevent further trades in that index for that day.

More challenging is to build a daily total TP or SL which will close all charts from further trades for that day. There are very good multi chart managers in Forex Factory but I do not know if such a script or manager exists or can be built for NT7.

Any help or leads would be very welcome. Thanks

Karl

Started this thread Reply With Quote

Journal Challenge February 2021 results (so far):
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(167 thanks from 31 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(116 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)
UK
 
Experience: Intermediate
Platform: Ninja
Broker: Mirus/Zen
Trading: Futures - bonds, currencies, index
 
Posts: 288 since Oct 2010
Thanks: 70 given, 270 received


Try a seperate strategy with

 
Code
AccountValue = GetAccountValue(AccountItem.CashValue)+GetAccountValue(AccountItem.InitialMargin);
AccountRealised = GetAccountValue(AccountItem.RealizedProfitLoss);
If the realised or value gets to your level, call

 
Code
NinjaTrader.Gui.SuperDom.SuperDom.FlattenEverything();
I think that last call might be unsupported. Alternatively, write a flag to a file and have each strat pick it up and close gracefully.

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


futures io Trading Community Platforms and Indicators NinjaTrader > Daily maximum target for Multiple trades


Last Updated on December 21, 2010


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