Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I've recently been using a simpler way to communicate between the indicator and strategy using a public class declared outside of the strategy namespace, as follows:
In the Strategy, I have:
//###
//### Global Command
//###
public class TradeManager_Global {
public static string command = "";
}
//###
//### Main Strategy
//###
namespace NinjaTrader.Strategy
{
... Main strategy code ...
}
In my Indicator code, I have:
TradeManager_Global.command = "Put your command here";
I read through the thread but I don't understand what your indicator does. (The mind is the first thing to go when you get old... )
I call a strategy from an indicator. It passes the info to the strategy which generates the orders and invokes the ATM strategy to handle the stops and targets.
I'm just a simple man trading a simple plan.
My daddy always said, "Every day above ground is a good day!"
It is really not my indicator, it is @ terratec's. The thread is @ terratec's too.
The indicator does Order placement without any recourse to calling a Strategy and/or ATM Strategy. It places Market or Stop Orders with pre-defined Target(s) and SL(s); it does some Money Management too.
I created a strategy named TMFTGuidedStrategy the way you normally do and had the indicator pass the variables to it.
Cool idea, thanks. Does that strategy live only during the time the trade is open, and then dies once the trade closes? And also, can you still communicate with that strategy while the trade is open? For instance, one of the things I need to do is while a trade is open, and I am getting close to my target, or it's getting close to the end of the day, I want to press a button and tell the strategy to change it's current trailing stop scheme to a tighter trailing stop algorithm, and other similar on the fly trade management changes.
Cool idea, thanks. Does that strategy live only during the time the trade is open, and then dies once the trade closes? And also, can you still communicate with that strategy while the trade is open? For instance, one of the things I need to do is while a trade is open, and I am getting close to my target, or it's getting close to the end of the day, I want to press a button and tell the strategy to change it's current trailing stop scheme to a tighter trailing stop algorithm, and other similar on the fly trade management changes.
This was designed to allow me to use the push buttons for Range Bars. When I press a button the strategy is initiated and places the orders, the ATM strategy is invoked to manage the stops and targets , which allows me to manually drag the stops and targets to new locations and the ATM strategy will continue to monitor them at their new positions. When I press the close button, it closes all positions and all pending orders.
I don't use a trailing stop so I have never tried to change a trailing stop through the strategy. Sorry.
I'm just a simple man trading a simple plan.
My daddy always said, "Every day above ground is a good day!"
This was designed to allow me to use the push buttons for Range Bars. When I press a button the strategy is initiated and places the orders, the ATM strategy is invoked to manage the stops and targets , which allows me to manually drag the stops and targets to new locations and the ATM strategy will continue to monitor them at their new positions. When I press the close button, it closes all positions and all pending orders.
I don't use a trailing stop so I have never tried to change a trailing stop through the strategy. Sorry.
Thanks. By the way, I just recently found out that using unmanaged orders in a strategy, also allows you to move the stop and target orders like when you call ATM's from the strategy.
I call a strategy from an indicator. It passes the info to the strategy which generates the orders and invokes the ATM strategy to handle the stops and targets.
[COLOR="DarkRed"]
Does the strategy get the ATM strategy to use directly from the ChartTrader setting?
Thanks. By the way, I just recently found out that using unmanaged orders in a strategy, also allows you to move the stop and target orders like when you call ATM's from the strategy.
Bukkan wrote an entire order entry/management strategy that uses unmanaged orders and it worked well. I used the ATM so I wouldn't have to write so much code and it allows me to drag the stops and targets.
futuretrader
Does the strategy get the ATM strategy to use directly from the ChartTrader setting?
If I understand your question correctly, yes the strategy calls an ATM strategy that I setup "TMFT11". It takes the quantities and the Account number from the ChartTrader settings.
I'm just a simple man trading a simple plan.
My daddy always said, "Every day above ground is a good day!"