In profolio trader, I want to enter a position on one resolution and exit on another. Do you have an approach for that? A template?
If I enter here:
if(Bars.Request.Resolution.Type == EResolution.Minute && Bars.Request.Resolution.Size == 60)
{
if (CurrentPosition.Side==EMarketPositionSide.Flat) ENTER
}
I can not control my exit this way! It does not see to get to the code.
if(Bars.Request.Resolution.Type == EResolution.Minute && Bars.Request.Resolution.Size == 1)
{
//Exit BY
GenerateProfitTarget(bifocalStop-Math.Abs(CurrentPosition.MaxDrawDown));
GenerateStopLoss(bifocalStop-Math.Abs(CurrentPosition.MaxRunUp));
}
This works all the time:
if(Bars.Request.Resolution.Type == EResolution.Minute && Bars.Request.Resolution.Size == 60)
Output.WriteLine("Symbol:{0} Resolution:{1} CurrentBar:{2} Date:{3}", Bars.Request.Symbol, Bars.Request.Resolution.Size, Bars.CurrentBar, Bars.Time.Value);
if(Bars.Request.Resolution.Type == EResolution.Minute && Bars.Request.Resolution.Size == 1)
Output.WriteLine("Symbol:{0} Resolution:{1} CurrentBar:{2} Date:{3}", Bars.Request.Symbol, Bars.Request.Resolution.Size, Bars.CurrentBar, Bars.Time.Value);
Profolio Trader (.net) multiple resoltions
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Profolio Trader (.net) multiple resoltions
Hello jegardne,
You need to utilize the new PMM functionality introduced with MultiCharts 9.0. Please check the prebuilt Portfolio_SpreadTradingSystem signals and this documentation:
https://www.multicharts.com/trading-sof ... lio_Trader
Portfolio Money Management Keywords:
https://www.multicharts.com/trading-sof ... M_Keywords
Portfolio Trader Strategy Examples:
https://www.multicharts.com/trading-sof ... y_Examples
You need to utilize the new PMM functionality introduced with MultiCharts 9.0. Please check the prebuilt Portfolio_SpreadTradingSystem signals and this documentation:
https://www.multicharts.com/trading-sof ... lio_Trader
Portfolio Money Management Keywords:
https://www.multicharts.com/trading-sof ... M_Keywords
Portfolio Trader Strategy Examples:
https://www.multicharts.com/trading-sof ... y_Examples