Search found 46 matches
- 18 Mar 2016
- Forum: MultiCharts .NET
- Topic: Find out if last position was stopped out
- Replies: 1
- Views: 1722
Find out if last position was stopped out
How can I tell if the last position was exited due to a stop-loss exit rule? Basically I don't want my long entry rule to enter on the day after a position was stopped out, so I would like to do a check in the entry rule to see if the last signal that was generated was a stop loss rule which was hit...
- 19 Mar 2015
- Forum: MultiCharts .NET
- Topic: Open next bar type strategies calculation is not permitted [SOLVED]
- Replies: 6
- Views: 3672
Re: Open next bar type strategies calculation is not permitt [SOLVED]
So I guess I spoke too soon on this. The IOG solution works if I am just using 1 chart in Multicharts, but if I want to run my backtest with multiple instruments in the portfolio tester, IOG is not supported. Is there another way of accomplishing this that is supported by the portfolio backtester?
- 28 Feb 2015
- Forum: MultiCharts
- Topic: ASCII mapped data has disappeared from Chart
- Replies: 4
- Views: 2472
Re: ASCII mapped data has disappeared from Chart
Correction, I can't see the data in the Quote Manager unless I create a new symbol for it. So the order of events that lead up to this were. -Deleted old .csv files with EOD data, and downloaded new files with the same name as previous. -Opened Quote Manager and selected one of the symbols, and sele...
- 27 Feb 2015
- Forum: MultiCharts
- Topic: ASCII mapped data has disappeared from Chart
- Replies: 4
- Views: 2472
ASCII mapped data has disappeared from Chart
I am using CSI EOD data for my charts, and have mapped all the ASCII files from CSI's portfolio directory to ASCII symbols I created. I was then able to create charts from these, and when I updated the CSI ASCII data each day, I was able to refresh the charts without any problems. It has been a few ...
- 21 Feb 2015
- Forum: MultiCharts .NET
- Topic: Open next bar type strategies calculation is not permitted [SOLVED]
- Replies: 6
- Views: 3672
Re: Open next bar type strategies calculation is not permitt [SOLVED]
Thanks guys,
this seems to have taken care of the problem.
-Rob
this seems to have taken care of the problem.
-Rob
- 10 Feb 2015
- Forum: MultiCharts .NET
- Topic: Open next bar type strategies calculation is not permitted [SOLVED]
- Replies: 6
- Views: 3672
Open Next Bar type strategies not permitted on multiple data [SOLVED]
I am getting the following error with my trading strategy. "Open Next Bar type strategies calculation is not permitted on multiple DataStreams" A little background info. I am attempting to use 2 instrument streams. The first is intraday data to place the trades, and the second data stream is EOD dat...
- 26 Dec 2014
- Forum: MultiCharts .NET
- Topic: Open next bar type strategies calculation is not permitted [SOLVED]
- Replies: 6
- Views: 3672
Open next bar type strategies calculation is not permitted [SOLVED]
I am attempting to test a strategy that uses the indicators based on the daily bars, and then place trades on a 15 minute chart at 9:30am. I have set up the primary chart as the 15 minute chart and the secondary chart as the daily chart. I am able to generate the signals from the daily data without ...
- 04 Dec 2014
- Forum: MultiCharts .NET
- Topic: How to backtest market-on-close order with daily bars [SOLVED]
- Replies: 2
- Views: 1325
Re: How to backtest market-on-close order with daily bars [SOLVED]
Hi Henry,
I moved the call to the GenerateExitOnClose() method from StartCalc() method to the CalcBar() method, and seems to be working as expected now.
Thanks,
-Rob
I moved the call to the GenerateExitOnClose() method from StartCalc() method to the CalcBar() method, and seems to be working as expected now.
Thanks,
-Rob
- 01 Dec 2014
- Forum: MultiCharts .NET
- Topic: How to backtest market-on-close order with daily bars [SOLVED]
- Replies: 2
- Views: 1325
How to backtest market-on-close order with daily bars [SOLVED]
I have a strategy which I would like to open a position at the market open and then close the position at the market close. Entering with MarketNextBar using the OrderCreator is not a problem, but how do I create a market order to then exit the position at the close? I tried calling the GenerateExit...
- 08 May 2014
- Forum: MultiCharts .NET
- Topic: Programatically set slippage or commissions
- Replies: 4
- Views: 2301
Re: Programatically set slippage or commissions
Hi Alex,
this *may* work. I also have a portfolio level stop loss, so if the account equity drops by say 5% in a day then there is a signal that exits all positions in the portfolio.
Will this still work if I put each symbol in its own strategy?
Thanks,
-Rob
this *may* work. I also have a portfolio level stop loss, so if the account equity drops by say 5% in a day then there is a signal that exits all positions in the portfolio.
Will this still work if I put each symbol in its own strategy?
Thanks,
-Rob
- 07 May 2014
- Forum: MultiCharts .NET
- Topic: Programatically set slippage or commissions
- Replies: 4
- Views: 2301
Programatically set slippage or commissions
I am attempting to backtest a strategy on a portfolio of futures contracts, however each contract needs to have different slippage amounts, ie I typically see more slippage on Heating Oil than S&P e-minis in live trading and I'd like to reflect this in the backtest. I know of the slippage/commission...
- 03 Feb 2014
- Forum: MultiCharts .NET
- Topic: Strange Issue with Ascii mapped data [SOLVED]
- Replies: 3
- Views: 1906
Re: Strange Issue with Ascii mapped data [SOLVED]
Hi Henry,
I've created a brand new symbol and that seems to have taken care of the issue.
Thanks,
-Rob
I've created a brand new symbol and that seems to have taken care of the issue.
Thanks,
-Rob
- 03 Feb 2014
- Forum: MultiCharts .NET
- Topic: Strange Issue with Ascii mapped data [SOLVED]
- Replies: 3
- Views: 1906
Re: Strange Issue with Ascii mapped data [SOLVED]
Hi Henry, I've tried to map the fields to Open/High/Low/Close/Volume/Open Interest in the ASCII data import window for the problem file, but the problem still persists. I've tried clearing the cache and refreshing in the Quote Manager, and also tried refreshing the chart as well as creating a new ch...
- 03 Feb 2014
- Forum: MultiCharts .NET
- Topic: Strange Issue with Ascii mapped data [SOLVED]
- Replies: 3
- Views: 1906
Strange Issue with Ascii mapped data [SOLVED]
Hi, I'm using the "Map ASCII" option in Quote Manager to map a directory of ASCII files to 19 futures symbols. All the symbols appear to map correctly, except for heating oil. When creating a chart for heating oil, the OHLC values appear to be mapped incorrectly, with the close price as the high pri...
- 24 Jan 2014
- Forum: MultiCharts .NET
- Topic: Best option for distributed development
- Replies: 2
- Views: 1406
Re: Best option for distributed development
Great! Thanks for the suggestions Dru.
-Rob
-Rob
- 23 Jan 2014
- Forum: MultiCharts .NET
- Topic: Best option for distributed development
- Replies: 2
- Views: 1406
Best option for distributed development
Hi, I'm trying to determine what would be the best way to go about doing strategy development with 2 developers that are not at the same location, in addition to a 3rd production environment. My original plan was to check the "CS" directory (in StudyServer/Techniques) into our source code repository...
- 28 Jun 2013
- Forum: MultiCharts .NET
- Topic: Automated Refresh of Charts
- Replies: 1
- Views: 2020
Automated Refresh of Charts
Hi, I'm trying to figure out how I can have MC automatically generate a signal for my end of day futures trading strategy. I have about 20 commodities that I track and I am finding I have to refresh each chart at the end of the day to determine if there will be any signals for the next day. Is there...
- 26 Jun 2013
- Forum: MultiCharts .NET
- Topic: Mutliple timeframes in portfolio backtester with IQFeed [SOLVED]
- Replies: 3
- Views: 2974
Re: Mutliple timeframes in portfolio backtester with IQFeed [SOLVED]
Henry,
looks like this was an issue with IQFeed after all. Thanks for your help.
-Rob
looks like this was an issue with IQFeed after all. Thanks for your help.
-Rob
- 25 Jun 2013
- Forum: MultiCharts .NET
- Topic: Mutliple timeframes in portfolio backtester with IQFeed [SOLVED]
- Replies: 3
- Views: 2974
Re: Mutliple timeframes in portfolio backtester with IQFeed [SOLVED]
Thanks Henry, going offline did not work, so I'll put the additional info you requested together later tonite.
-Rob
-Rob
- 25 Jun 2013
- Forum: MultiCharts .NET
- Topic: Mutliple timeframes in portfolio backtester with IQFeed [SOLVED]
- Replies: 3
- Views: 2974
Mutliple timeframes in portfolio backtester with IQFeed [SOLVED]
Recently the portfolio backtester was working well with a strategy that was using multiple time frames. I am using 15 minute bars as the primary and 1 day bars as the informational instrument. Now however I am getting an error message saying "Data could not be obtained for the following symbols @C#C...
- 22 May 2013
- Forum: MultiCharts .NET
- Topic: Change with ATR from 8.0 to 8.5 [SOLVED]
- Replies: 2
- Views: 2160
Re: Change with ATR from 8.0 to 8.5 [SOLVED]
Thanks Henry, the script worked.
-Rob
-Rob
- 21 May 2013
- Forum: MultiCharts .NET
- Topic: Continuous backadjusted contracts with IQFeed in QuoteManage [SOLVED]
- Replies: 4
- Views: 3160
Re: Continuous backadjusted contracts with IQFeed in QuoteMa [SOLVED]
Thanks Henry, that fixed it.
-Rob
-Rob
- 20 May 2013
- Forum: MultiCharts .NET
- Topic: Continuous backadjusted contracts with IQFeed in QuoteManage [SOLVED]
- Replies: 4
- Views: 3160
Re: Continuous backadjusted contracts with IQFeed in QuoteMa [SOLVED]
I renamed @S# to @S#C in the quote manager, and then attempted to create a new chart with the renamed symbol. The continuous contract still says Soybeans May 2013 (whereas other continuous backadjusted contracts don't list the expiration month), and there is still a noticeable break on 5/15/13 when ...
- 17 May 2013
- Forum: MultiCharts .NET
- Topic: Continuous backadjusted contracts with IQFeed in QuoteManage [SOLVED]
- Replies: 4
- Views: 3160
Continuous backadjusted contracts with IQFeed in QuoteManage [SOLVED]
I'm trying to determine how to get continuous backadjusted contracts from IQFeed into MC via the QuoteManager. For example, when I do a contract search for natural gas by symobl, the quote manager finds QNG#. I click "Add", and then when I create a new chart both QNG# and QNG#C (backadjusted) are av...
- 17 May 2013
- Forum: MultiCharts .NET
- Topic: Change with ATR from 8.0 to 8.5 [SOLVED]
- Replies: 2
- Views: 2160
Change with ATR from 8.0 to 8.5 [SOLVED]
Hi, I'm having more issues with my compiling my scripts after moving to 8.5. It looks like the API for the ATR indicator has changed. Previously I was calculating ATR for a higher time frame by doing the following. in Create() m_avgtruerange = new AvgTrueRange(this,2); in StartCalc() m_avgtruerange....
- 15 May 2013
- Forum: MultiCharts
- Topic: Big Point value incorrect for some futures contracts [SOLVED]
- Replies: 4
- Views: 3912
Re: Big Point value incorrect for some futures contracts [SOLVED]
Thanks for your help Henry, this took care of the problem.
- 15 May 2013
- Forum: MultiCharts .NET
- Topic: Portfolio Backtester: Closing positions based on Acc Equity [SOLVED]
- Replies: 2
- Views: 2482
Re: Portfolio Backtester: Closing positions based on Acc Equ [SOLVED]
That took care of the problem.
Thanks!
Thanks!
- 13 May 2013
- Forum: MultiCharts .NET
- Topic: How to calculate regression slope [SOLVED]
- Replies: 3
- Views: 2529
Re: How to calculate regression slope [SOLVED]
That did the trick.
Thanks!
-Rob
Thanks!
-Rob
- 11 May 2013
- Forum: MultiCharts .NET
- Topic: How to calculate regression slope [SOLVED]
- Replies: 3
- Views: 2529
How to calculate regression slope [SOLVED]
It appears that a number of things have changed between 8.0 and 8.5 that have broken a number of my scripts. I'm in the process of trying to fix them and I am having issues calculating the slope of a regression line. Previously there was a LinearRegSlope object, but this no longer exists. I'm attemp...
- 06 May 2013
- Forum: MultiCharts
- Topic: Big Point value incorrect for some futures contracts [SOLVED]
- Replies: 4
- Views: 3912
Re: Big Point value incorrect for some futures contracts [SOLVED]
I may not have done that for this symbol. I just tried deleting the contract from the quote manager and then adding it as I did for the other contracts, but searching for the symbol and then adding it to the list. It still is showing a big point value of 1 however for QHO. Any other ideas? thanks, -...
- 04 May 2013
- Forum: MultiCharts
- Topic: Big Point value incorrect for some futures contracts [SOLVED]
- Replies: 4
- Views: 3912
Big Point value incorrect for some futures contracts [SOLVED]
It looks as though for some futures contracts the big point value is defaulting to 1. I realize I can go into the quote manager and manually change it. The current settings for the symbols is to use the "Exchange & ECN settings". QCL# for example is properly showing a big point value of 1000, but QN...
- 04 May 2013
- Forum: MultiCharts .NET
- Topic: Portfolio Backtester: Closing positions based on Acc Equity [SOLVED]
- Replies: 2
- Views: 2482
Portfolio Backtester: Closing positions based on Acc Equity [SOLVED]
Hi, I'm attempting to implement an exit rule that will close a position if the current account equity has dropped by 3 percent from the previous day. Basically, if the threshold is hit, I would like the strategy to exit all positions. I am using the portfolio backtester on intraday futures data. Wha...
- 20 Mar 2013
- Forum: MultiCharts .NET
- Topic: Accessing higher level timeframes for indicators such as ADX [SOLVED]
- Replies: 1
- Views: 2085
Accessing higher level timeframes for indicators such as ADX [SOLVED]
Hi, I've been able to blend 2 timeframes together in my strategy by added a lower timescale chart first ie, 30 minute, and then a higher level timescale such as daily. In my strategy I generate signals off the higher l]evel timeframe by doing something similar to: m_bollingerband.price = BarsOfData(...
- 17 Mar 2013
- Forum: MultiCharts .NET
- Topic: Accessing Account balance from strategy. [SOLVED]
- Replies: 3
- Views: 8574
Re: Accessing Account balance from strategy. [SOLVED]
I'm getting an IndexOutOfRangeException when attempt to call:
TradeManager.TradingData.Accounts.Items[0].Balance;
TradeManager.TradingData.Accounts.Items[0].Balance;
- 17 Mar 2013
- Forum: MultiCharts .NET
- Topic: Higher/lower timescales not lining up in charts or backtests [SOLVED]
- Replies: 8
- Views: 3679
Re: Higher/lower timescales not lining up in charts or backt [SOLVED]
Good point Dave, it makes sense that they are using the settlement price provided by the exchange. Since the close price for the daily bar isn't really accurate then, the daily bar's Open price should still match the open price of the first 15-minute bar of the session, which I hadn't checked up to ...
- 16 Mar 2013
- Forum: MultiCharts .NET
- Topic: Higher/lower timescales not lining up in charts or backtests [SOLVED]
- Replies: 8
- Views: 3679
Re: Higher/lower timescales not lining up in charts or backt [SOLVED]
Agreed that building by tick isn't a viable alternative due to the 120 day limitation. As far as I can tell, the close on the daily bars are accurate as I have compared the IQFeed data to CSI data and also Interactive Brokers, so I'm not sure why such a huge difference in the 15-minute bars (and eve...
- 15 Mar 2013
- Forum: MultiCharts .NET
- Topic: Higher/lower timescales not lining up in charts or backtests [SOLVED]
- Replies: 8
- Views: 3679
Re: Higher/lower timescales not lining up in charts or backt [SOLVED]
Hi Henry, so I refreshed the chart, and the time on the bars is now correct, however the price is not lining up between the 15-minute and 1 day bars. I would expect to see the close price of the last 15-minute bar of the day to match the close price of the daily bar, but this is not the case. I usin...
- 12 Mar 2013
- Forum: MultiCharts .NET
- Topic: Accessing Account balance from strategy. [SOLVED]
- Replies: 3
- Views: 8574
Accessing Account balance from strategy. [SOLVED]
How would I access the current account balance from a strategy? I see there is an Account property that is accessible from the strategy, but it is a String and not an object. Any hints?
Thanks,
-Rob
Thanks,
-Rob
- 12 Mar 2013
- Forum: MultiCharts .NET
- Topic: Higher/lower timescales not lining up in charts or backtests [SOLVED]
- Replies: 8
- Views: 3679
Higher/lower timescales not lining up in charts or backtests [SOLVED]
I'm attempt to both 15-minute and 1 day bars for CL in a strategy I'm testing. It appears that the daily bars have a timestamp of 22:59, and so are lining up with the 15-minute bars at 22:59. However the CL electronic market closes at 17:15, and the daily bars should line up with this time instead. ...
- 10 Mar 2013
- Forum: MultiCharts .NET
- Topic: How to get account equity & set position size in strategy [SOLVED]
- Replies: 7
- Views: 7202
Re: How to get account equity & set position size in strateg [SOLVED]
I think I'm still missing something here. The "Account" property that is accessible from my strategy that extends SignalObject is a String, not an object or struct. How do I get a reference to the Account object that you mention in your reply which has a "Balance" property.
Thanks,
-Rob
Thanks,
-Rob
- 27 Feb 2013
- Forum: MultiCharts .NET
- Topic: How to get account equity & set position size in strategy [SOLVED]
- Replies: 7
- Views: 7202
Re: How to get account equity & set position size in strateg [SOLVED]
Thanks Henry, I am attempting to accomplish something similar to what Mark is doing, so I would need to be able to access the account balance, and the point value of the instrument in order to calculate the position size. The example you posted however uses a hard coded value to set the position siz...
- 27 Feb 2013
- Forum: MultiCharts .NET
- Topic: How to get account equity & set position size in strategy [SOLVED]
- Replies: 7
- Views: 7202
How to get account equity & set position size in strategy [SOLVED]
Hi, I would like to dynamically set the position size of my buy orders so that they are generated based on the current account equity, ATR value of the instrument being traded, as well as the tick size (in dollars) of the instrument being traded. I've found a few easy language examples, but haven't ...
- 21 Feb 2013
- Forum: MultiCharts .NET
- Topic: Source for StandardDev function
- Replies: 3
- Views: 2785
Re: Source for StandardDev function
So there are actually 2 different ways to calculate variance and subsequently standard deviation, for a sample and for a population. It looks like MC is using the population based calculation even though the indicators are only calculating their values based on a small subset of the price history, i...
- 17 Feb 2013
- Forum: MultiCharts .NET
- Topic: Source for StandardDev function
- Replies: 3
- Views: 2785
Source for StandardDev function
Hi, I'm attempting to determine why a script I had coded in Wealth-lab is producing different results in Multicharts. I've been able to track the difference to the value of the BollingerBands between the two platforms, and specifically to the StandardDev function in MC that the BollingerBand indicat...
- 28 Jan 2013
- Forum: MultiCharts .NET
- Topic: Where are C# strategies stored? [SOLVED]
- Replies: 3
- Views: 2973
Re: Where are C# strategies stored? [SOLVED]
Thanks Josh,
There weren't any signals listed, so I reinstalled and they are now showing up.
-Rob
There weren't any signals listed, so I reinstalled and they are now showing up.
-Rob
- 26 Jan 2013
- Forum: MultiCharts .NET
- Topic: Where are C# strategies stored? [SOLVED]
- Replies: 3
- Views: 2973
Where are C# strategies stored? [SOLVED]
I'm new to Multicharts, and I'm guessing that it likely comes with a number of pre-built C# strategies, however, I can't find any. When I open the power language editor, and attempt to open a file, there are 100+ indicators listed, but no signals/strategies. In the MC's programData directory on the ...