NexusFi: Find Your Edge


Home Menu

 





Running two strategies on one chart; Has anyone done it successfully?


Discussion in MultiCharts

Updated
    1. trending_up 4,092 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 4 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
 
Sinatra Fan's Avatar
 Sinatra Fan 
Orlando FL
 
Experience: Intermediate
Platform: MultiCharts, Ninja
Trading: Emini ES
Posts: 101 since May 2019
Thanks Given: 8
Thanks Received: 12

I've run into a huge problem with my FLEX-RENKO strat. That being that for some reason, MC doesn't seem to like my program when running on a tick by tick or IOBG basis. And because of that, I'm running into an end of day problem when the bar doesn't complete before the session ends.

So, I'm thinking of creating a second strat that will run on a tick by tick basis but only close out open positions at the end of the session. Has anyone successfully ran 2 strats on a chart at the same time? If so, is there anything I should be mindful of? Thanks


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Airspace Contract Surges to 33.5% as Project Freedo …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
$4.5M Floods Russia Nuclear Contract in 24 Hours -- Krem …
Prediction Markets & Event Contracts
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
Khamenei Vetoes Uranium Transfer as Peace Odds Surge to …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
1 thanks
  #2 (permalink)
 BrianBacchus 
Las Vegas
 
Experience: Intermediate
Platform: MultiCharts .NET
Trading: CL
Posts: 26 since Oct 2015
Thanks Given: 7
Thanks Received: 37

You could turn on your existing strategy as being Intrabar (tick by tick) but then wrap your coding logic to only trade and record values when the bar state changes to close. You could also specify a time to exit positions if they still exist. However, in order to ensure you strategy doesn't try to trade again during the last few minutes before closing you'll have to create a "time to trade" window.

I don't know if you're using MC or MC.NET. Since I don't know PL and only use .NET here's an example of what I mean:

protected override void CalcBar(){

if(StrategyInfo.MarketPosition > 0){
SellPosition;
}

if (StrategyInfo.MarketPosition < 0){
BuyToCoverPosition
}

if (Bars.Status == EbarState.Close && TimeToTrade() == true){
Your Logic Here
}


}
private bool TimeToTrade()
{
TimeSpan barTime = Bars.TimeValue.TimeOfDay;

// If the range is on the same day, both expressions must be true
if (startTime < endTime)
return (barTime >= startTime) && (barTime <= endTime);

// Otherwise the range crosses midnight, and only one of
// the expressions need to be true
return (barTime > startTime) || (barTime < endTime);
}

I'm getting the TimeToTrade code from the link below which describes exactly how that portion works:
https://www.tradingcode.net/multicharts-net/trading-strategies/trade-certain-times-trading-strategy/

There's a downside to this approach, and it may not matter much depending on how large your trading bars are. Since it calls your strategy on EVERY tick it's working a lot harder than normal.

If you're using time-based bars (5min, 10 mins, etc) you could simply add a clause at the end of your script to close out any position the last bar you know will occur BEFORE the final bar of market close. For example, if you're trading 10min bars, and crude oil it would look something like this:

if (Bars.Time[0] >= 1649)
{
if (StrategyInfo.MarketPosition > 0){
sell;
}
if (StrategyInof.MarketPosition < 0){
buytocover;
}
}


Reply With Quote
  #3 (permalink)
 
Sinatra Fan's Avatar
 Sinatra Fan 
Orlando FL
 
Experience: Intermediate
Platform: MultiCharts, Ninja
Trading: Emini ES
Posts: 101 since May 2019
Thanks Given: 8
Thanks Received: 12


I tried tick by tick and for some reason, it stops closing out my layered positions. I'm in the middle of adding an additional filter to my current strat. When I do, I may try the two strat deal with the second strat working on a tick by tick basis to close out at end of day. I'm also considering running two data series on the chart with the first being a 1-tick chart and the second being my Flex Renko chart. since multi data strats trade on data1, then I should be good to go.


Started this thread Reply With Quote
  #4 (permalink)
 BrianBacchus 
Las Vegas
 
Experience: Intermediate
Platform: MultiCharts .NET
Trading: CL
Posts: 26 since Oct 2015
Thanks Given: 7
Thanks Received: 37

Check your IOG Settings for Exits, that might be why it's not exiting out of all positions.



Doing tick by tick in Data1 with your trading signals based on Data2 would probably work, it just adds lots of bars to the chart that would massively slow down things like optimization. If you're not using that it probably isn't an issue.

With that setup if you're using stops or limit orders they may only be persistent for a tick when the entry criteria is met. If you're using market orders or generate stop loss/profit target it should be fine as they automatically persist.


Reply With Quote
  #5 (permalink)
 
Fi's Avatar
 Fi 
NexusFi
 


BrianBacchus View Post
Check your IOG Settings for Exits, that might be why it's not exiting out of all positions.

@BrianBacchus,

Good catch on the IOG exit settings. That's a common trip wire with multi-strategy setups.

The deeper issue with Renko specifically is that your session-end exit logic probably depends on bar close -- but Renko bars only complete when price moves the required number of ticks. If CL goes sideways into the close, that last bar might never print. Your strategy never sees a bar close, so the EOD exit never fires.

The fix is Bars.TimeValue in MultiCharts .NET. Instead of waiting for bar completion, check the time on every intrabar tick:

if Bars.TimeValue.TimeOfDay >= New TimeSpan(16, 59, 0) then...

Adjust that to your session end. Pair it with CalcBarState() to distinguish intrabar vs. confirmed-bar calculations -- so your signal logic runs on bar close while the time-based exit fires whenever the clock hits.

For exit order type in IOG tick-by-tick mode: stop and limit orders are problematic because they can drop between ticks. For EOD flattening, use a market order. It persists, it executes, done.

On the two-strategy approach -- it works in MC but both strategies share the same position, so execution order matters and things can get messy fast. Cleaner solution is a single strategy that handles signal logic and the time-based EOD exit via Bars.TimeValue. Less overhead, no ordering conflicts.

-- Fi

"A Renko bar that never completes is still a position you're holding."


Learn more about Fi AI trading companion
IMPORTANT: I can make mistakes! Always verify data before relying on it.

Please leave feedback here. You can disable my ability to reply to your posts by placing me on your ignore list.

Fi provides educational information on a best-effort basis only. You are responsible for your own trading decisions and for verification of all data. This message is not trading advice.
Reply With Quote




Last Updated on May 25, 2026


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts