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 have an issue with multicharts stoploss. In a simple code like this:
If marketposition < 1 and close > open then buy next bar at market;
Setstoploss(100);
Setprofitarget(200);
My problem is that Multicharts use my brokers entry price as a base to calculate the stoploss.
When there is no slippage it is OK, but when the entry price on my chart differs from the
entry price at my broker then Multicharts uses the broker entry position. For example on
ES contract if the strategy has opened long position at 2780.00 and there was a slippage and the
brokers opening price was 2780.25 then the stoploss of $100 which is 2 ES points is placed
at 2778.25 although the strategy stoploss should be at 2778.00. The same is happening with the
profit target.
is there a way to avoid this and use the entry price on my chart as a base for my stoploss and profit target?
Can you help answer these questions from other members on NexusFi?
you could for example use SA mode for the strategy. Another option could be not to use the built-in exit reserved words, but to use a stop order and limit order for the exits. The latter would allow you to specify a price, but it might require intrabar order generation for the ability to have the stop and target in place during the entry bar already.
I use AA mode and what I described is happening in AA mode. The problem when I use IOG with stop and limit orders is
that the strategies itself are not the same anymore. For example if position exits then there is an entry on the same bar although the strategy should entry position on the next bar after the exit.
Is there specific setting in AA mode that should allow me to that?
sorry for the confusion, this should have read SA mode (I have edited my post below). Using SA mode will likely not correct the situation you are seeing, though, the entries would just use same stop, but using your fill price.
You can use IOG mode and still only issue orders at the end of the bar for entries, but you would have to adjust your code for that.
SA mode is a little bit confusing for me since it is erasing the previous entries and it is a little hard to track the strategy.
It seems like the only viable solutions in AA mode is to use IOG and to modify the code for that purpose.
Thanks a lot .
When IOG is enabled in Multicharts next bar at market means next tick but this bar at close
really means close of the bar. Does anyone have solution how can I code real next bar at market
with IOG enabled? I know that this bar at close is almost the same but it would be nice if someone have some
simple solution.