Search found 56 matches

by rrams
28 Oct 2019
Forum: MultiCharts
Topic: Exit Discrepancy: Automated vs. BackTested [SOLVED]
Replies: 9
Views: 213

Re: Exit Discrepancy: Automated vs. BackTested [SOLVED]

Hi Doctor AI, It requires more than the code to determine what happened. The time and sales for that period and the logs as a start. Was the stop order rejected or just not sent? Did the broker connection or market data stop transmitting at any time? nq.png Also, SetStopLoss(c2); should not be insid...
by rrams
07 Oct 2019
Forum: MultiCharts
Topic: Order rejected after close
Replies: 5
Views: 149

Re: Order rejected after close

Hi Powen, You don't want to program any kind of condition for the SetStopLoss command. Just issue the SetStopLoss. MultiCharts does have a bug in the SessionEndTime and SessionStartTime functions where it will give you the incorrect time if your charts are set to Local time and your PC is set NOT to...
by rrams
03 Oct 2019
Forum: MultiCharts
Topic: PL-Code for Traders' Tips October 2019
Replies: 3
Views: 191

Re: PL-Code for Traders' Tips October 2019

After finally being able to read the article by Pawel Kosinski, I can see that his trading method is more complicated than the included TS code someone else wrote and his system is designed to be run on all the stocks in the S&P 500; not futures. Not even his NT script is written how he describes in...
by rrams
01 Oct 2019
Forum: MultiCharts
Topic: how to know next trading day's date? [SOLVED]
Replies: 2
Views: 153

Re: how to know next trading day's date? [SOLVED]

Greetings rokanten, You have to add a variable for every holiday. You can hard code this year's day and month for every holiday or you can do it the difficult way and lookup online the formula to calculate the day of the holiday for any year. For instance, in the U.S., markets are closed for Thanksg...
by rrams
30 Sep 2019
Forum: MultiCharts
Topic: PL-Code for Traders' Tips October 2019
Replies: 3
Views: 191

Re: PL-Code for Traders' Tips October 2019

I didn't have access to read the article, so I don't know what lesson the author is trying to teach.
I assume you wanted the signal to test.
by rrams
06 Feb 2019
Forum: MultiCharts
Topic: Don't Use Multicharts with MBTrading
Replies: 7
Views: 481

Re: Don't Use Multicharts with MBTrading

Hi multichartsUser23, I really don't want to take any sides on this issue. I will try to stick to the facts. I'm not an equity trader, so I can't comment on if MBT's low flat fee commission structure makes enough of a difference. I don't even see how you stock people can trade without using All-Or-N...
by rrams
06 Feb 2019
Forum: MultiCharts
Topic: Don't Use Multicharts with MBTrading
Replies: 7
Views: 481

Re: Don't Use Multicharts with MBTrading

I have used MBTrading with Multicharts in the past for autotrading futures only. When they were acquired by TradeKing then Ally.com I moved my account. I am also familiar with programming the MBTrading api with its single threaded, asynchronous, event-driven order handling mechanism in Delphi Pascal...
by rrams
25 Jan 2019
Forum: MultiCharts
Topic: Array copy and sort question
Replies: 6
Views: 344

Re: Array copy and sort question

Hi Joe, you are very close. Arrays are always indexed starting with zero, not one. array: Indexes[1, 10](0); is a two dimensional array with eleven elements of value zero in each of the dimensions. So instead you want: array: Indexes[9](0), Indexes_C[9](0); When you copy the array you start at index...
by rrams
25 Jan 2019
Forum: MultiCharts
Topic: How do I reference particular markets
Replies: 6
Views: 321

Re: How do I reference particular markets

Adrian make sure to use string comparisons. If you insert this code into your indicator or signal if Category()=0 and InStr(Symbol, "@CL")>0 then print("Found Oil") else print("Found ", Symbol); and compile and run it on a futures symbol chart; What shows up in the output tab of the PowerLanguage Ed...
by rrams
24 Jan 2019
Forum: MultiCharts
Topic: How do I reference particular markets
Replies: 6
Views: 321

Re: How do I reference particular markets

Hi AdrianP, I can't tell from your limited code why you need to differentiate between futures and forex. The SymbolRoot() function provides the shortened name of any type of chart symbol to match with. If you need to know which type of financial instrument then Category() returns an integer equal to...
by rrams
16 Oct 2018
Forum: MultiCharts
Topic: MULTICHARTS 12.0 RELEASE 3
Replies: 47
Views: 4572

Re: MULTICHARTS 12.0 RELEASE 3

Thank you for fixing the Portfolio Trader Forward Performance Graph so that it shows a line now in Real-time Auto Trading.

Is there a way to set the default scale of the graph to hourly or minutes instead of what looks like three days?
by rrams
14 Jul 2018
Forum: MultiCharts
Topic: Run a slideshow of charts?
Replies: 5
Views: 626

Re: Run a slideshow of charts?

I also wish there was an easy way to run a slideshow of charts (as a livestream), but it's not a built-in feature. Scanning thousands of stocks quickly for a particular chart pattern is something better suited to other programs like Wealth-Lab because of the way that exchange lists are pre-loaded an...
by rrams
03 Jul 2018
Forum: MultiCharts
Topic: Rollover gap on backadjusted contract [SOLVED]
Replies: 9
Views: 967

Re: Rollover gap on backadjusted contract [SOLVED]

Ironman, I feel your pain; but I don't know what MC could do to know when to reload the continuous contract data. DTN.IQ software is programmed to use it's own data, so it is aware of the rollover methodology that it uses. You are going to have to keep reloading all data around rollover day as well ...
by rrams
21 Jun 2018
Forum: MultiCharts
Topic: countdown for contrats resolution [SOLVED]
Replies: 7
Views: 648

Re: countdown for contrats resolution [SOLVED]

chipeur le renard is there any reason why you can't just use the original code from crazynasdaq and set Build Volume On: Trade Volume ?
counter.png
(3.79 KiB) Downloaded 611 times
by rrams
15 Jun 2018
Forum: User Contributed Studies and Indicator Library
Topic: Percent Volume Oscillator (PVO)
Replies: 8
Views: 1506

Re: Percent Volume Oscillator (PVO)

Hello synonym. The function name itself acts as a variable that can be referenced without declaring in the code. You have to make sure the function name is spelled exactly the same as the variable you reference. TJ is a wiser man and a better teacher than I. He would send you to the proper links to ...
by rrams
14 Jun 2018
Forum: User Contributed Studies and Indicator Library
Topic: Percent Volume Oscillator (PVO)
Replies: 8
Views: 1506

Re: Percent Volume Oscillator (PVO)

PVO.png It works fine. // PVO - Percent Volume Oscillator - Function Inputs: Series(NumericSeries), // Volume or Ticks FastLen(NumericSimple), SlowLen(NumericSimple); Vars: AvFast(0), AvSlow(0); AvFast=XAverage(Series, FastLen); AvSlow=XAverage(Series, SlowLen); if(AvSlow>0) then PVO=(AvFast-AvSlow...
by rrams
05 Jun 2018
Forum: MultiCharts
Topic: Auto Trading Questions
Replies: 10
Views: 1020

Re: Auto Trading Questions

I would like to see more people succeed at semi-unattended auto trading and hear about their experiences. I won't ridicule any attempt no matter how modest the objective. I think the risk versus reward is there and has to be less dangerous than say being a passenger in a self driving car. I wish I c...
by rrams
31 May 2018
Forum: MultiCharts
Topic: save autotrading status [SOLVED]
Replies: 3
Views: 636

Re: save autotrading status [SOLVED]

I meant to say that the AT dialog box does display, but doesn't start in AT mode. I'm sorry for that confusion. This is actually easy for you to duplicate now that I figured out the cause. I am using a secondary data symbol with 300 daily bars, but trading off the primary symbol with only 10 bars of...
by rrams
30 May 2018
Forum: MultiCharts
Topic: Portfolio trader with Exchange time
Replies: 2
Views: 406

Re: Portfolio trader with Exchange time

I don't think they will ever allow you to mix symbols from different time zones on Exchange time.

You can run multiple instances of Portfolio Trader on Exchange time.
by rrams
29 May 2018
Forum: MultiCharts
Topic: save autotrading status [SOLVED]
Replies: 3
Views: 636

save autotrading status [SOLVED]

I am trying to get my charts to remember the Automate Order Execution enabled status so when I restart Multicharts it opens in Synchronous Automatic Trading mode. On some intraday charts it correctly remembers the setting and asks on startup "Do you want to enable Auto-Trading for next strategies:"....
by rrams
22 Nov 2017
Forum: MultiCharts
Topic: Non Equidistant Candle Bars [SOLVED]
Replies: 5
Views: 590

Re: Non Equidistant Candle Bars [SOLVED]

Well it's not as easy to make it look right with volume based bars. So try a range bar chart first: Data#1 - YM DEC 17, Interval - 10 Points, SubChart#1 Data#2 - YM DEC 17, Interval - 2 Min, SubChart Hidden 10pointYM.png The Volume based charts (Contracts) work in reverse order: Data#1 - YM DEC 17, ...
by rrams
21 Nov 2017
Forum: MultiCharts
Topic: Non Equidistant Candle Bars [SOLVED]
Replies: 5
Views: 590

Re: Non Equidistant Candle Bars [SOLVED]

Just insert another copy of the same instrument to the next data number in time based format. They are magically synchronized. If the first is say range bars (points) and the second is minutes; then during slow periods the candle bars of the first will be spaced farther apart.
by rrams
30 Sep 2017
Forum: MultiCharts
Topic: Begin session and EndSession
Replies: 3
Views: 401

Re: Begin session and EndSession

Because that would be trivial code. Once you know SessionLastBar, the begining of the next session would be the next bar. Other people have gone through the learning process and contributed to this discussion before. https://www.multicharts.com/discussion/viewtopic.php?t=10647 You are doing fine.
by rrams
30 Sep 2017
Forum: MultiCharts
Topic: Begin session and EndSession
Replies: 3
Views: 401

Re: Begin session and EndSession

Hello turbofib. Session times can be tricky to program so that the outcome is exactly the way you expect; but the code syntax is straight forward. Session Numbers are pre-assigned in the Symbol Dictionary for each time-block a security trades during the week. Some instruments have just one number pe...
by rrams
20 Sep 2017
Forum: MultiCharts
Topic: MC 64 to execute a shell command [SOLVED]
Replies: 5
Views: 615

Re: MC 64 to execute a shell command [SOLVED]

I see you have been asking about this several times in the past. I don't understand the problem. You do NOT need to first invoke a shellexecute "open" command in order to use the MultiCharts FileAppend function to write to a file. inputs: FileName("testfile"); vars: Path_and_FileName("G:\Users\Utili...
by rrams
16 Sep 2017
Forum: MultiCharts
Topic: Prevent "undefined" symbols from being added to QuoteManager? [SOLVED]
Replies: 3
Views: 520

Re: Prevent "undefined" symbols from being added to QuoteManager? [SOLVED]

I agree this is a strange behavior to add undefined symbols to Quote Manager. I think it first checks the symbol Root in the Default Data Source of the Symbol Dictionary for a match and then assigns "undefined" to the exchange if it can't find one. (Which would be every time for stocks.) What I woul...
by rrams
16 Sep 2017
Forum: MultiCharts
Topic: Need other sets of eyes [SOLVED]
Replies: 4
Views: 572

Re: Need other sets of eyes [SOLVED]

Either your Order and Position Tracker -> Positions History is showing rejected orders or the Strategy Properties are denying more entries. The code loop with a market order gets executed as the print shows. Sorry, I can't help more. I don't get why your 3 point Russell 2000 range bar chart has some...
by rrams
29 Aug 2017
Forum: MultiCharts
Topic: Old TS Script [SOLVED]
Replies: 2
Views: 409

Re: Old TS Script [SOLVED]

Because you are using a negative offset in the plot function, it is trying to move the plot forward to future bars. Which is okay, but you have to make sure the chart has free space to the right. No code change is needed just choose Format Window, X - Time Scale on the chart and set Chart Shift to a...
by rrams
14 Aug 2017
Forum: MultiCharts
Topic: Can not get CBOE Index data from IB
Replies: 1
Views: 341

Re: Can not get CBOE Index data from IB

It should connect right away during market hours unless there is a problem with your permissions. VIX.png Are you subscribed to CBOE Market Data Express Indices? Does it chart in TWS? Did you add VIX as an index to the Quote Manager? Is Quote Manager using the custom settings of 1/100 price scale or...
by rrams
23 May 2017
Forum: MultiCharts
Topic: Coding a new hour ? [SOLVED]
Replies: 2
Views: 292

Re: Coding a new hour ? [SOLVED]

It's probably a late hour which is causing you not to realize that HoursFromDateTime requires a DateTime not a Time.
by rrams
08 May 2017
Forum: MultiCharts
Topic: Ichimoku Cloud - Plot with Forward offset [SOLVED]
Replies: 6
Views: 1322

Re: Ichioku Cloud - Plot with Forward offset [SOLVED]

You have to format the window Chart Shift 26 bars.
Ichimoku.pla
(13.17 KiB) Downloaded 379 times
by rrams
08 May 2017
Forum: MultiCharts
Topic: How to calculate margin? [SOLVED]
Replies: 12
Views: 2887

Re: How to calculate margin? [SOLVED]

Margin is not a calculable, static number, it can change during the day if a high volitility event occurs like Brexit. It is also a different number for holding overnight. You have to manually type in every contract's margin field in order to keep track. Here is a sample of my historical initial ove...
by rrams
26 Feb 2017
Forum: MultiCharts
Topic: Replace string [SOLVED]
Replies: 2
Views: 438

Re: Replace string [SOLVED]

Code: Select all

plot9(Text(LeftStr(description, InStr(description, "Continuous Contract")-1), RightStr(description, 7)), "Description");
by rrams
29 Nov 2016
Forum: MultiCharts
Topic: Seasonal Day Trade
Replies: 1
Views: 417

Re: Seasonal Day Trade

H, That seasonal indicator for TS makes (unnecessary) use of an object oriented language extension which MC does not support. You could easily replace the vector creation function call with an ordinary array; however, the indicator is meant for monthly or weekly bars and MC only supports daily or le...
by rrams
04 Oct 2016
Forum: MultiCharts
Topic: powerlanguage -Unknown Function error -Easy Language [SOLVED]
Replies: 6
Views: 779

Re: powerlanguage -Unknown Function error -Easy Language [SOLVED]

compiled with MC 10b2 64bit. Let me know if there is a problem.
by rrams
04 Oct 2016
Forum: MultiCharts
Topic: powerlanguage -Unknown Function error -Easy Language [SOLVED]
Replies: 6
Views: 779

Re: powerlanguage -Unknown Function error -Easy Language [SOLVED]

It compiles fine on MC. You do need the functions _CE_DateToString and _CE_TimeToString.
by rrams
26 Sep 2016
Forum: MultiCharts
Topic: SuperTrend [SOLVED]
Replies: 2
Views: 637

Re: SuperTrend [SOLVED]

The fourth parameter is just a reference to a variable that will hold a number indicating whether the trend is up or down. The function itself returns the trend value. vars: strend(0), st(0); st=SuperTrend(10, 3, 10, strend); Plot1(st, "Up"); { plot this hidden } Plot2(st, "Down"); { plot this hidde...
by rrams
03 Sep 2016
Forum: User Contributed Studies and Indicator Library
Topic: The Economic Events Collection for MultiCharts
Replies: 131
Views: 39233

Re: The Economic Events Collection for MultiCharts

I haven't been able to get any of the Economic Event Indicators to work with MC64 version 10 Beta 1, Build 12709. (Like A_Economic_1Min) I have correctly modified the EE.ReadFile. No error message; it just won't print any events. It still works okay with MC64 version 9. Has anyone else successfully ...
by rrams
26 Mar 2016
Forum: MultiCharts
Topic: Problem with EntriesToday(Date)
Replies: 10
Views: 1982

Re: Problem with EntriesToday(Date)

The code is simple but the different modes of operation need to be understood. You absolutely cannot use SetExitOnClose for real-time trading. You must use something like: if MarketPosition>0 and time>=1545 then sell next bar at Market; onclose orders may or may not work with your broker but they wo...
by rrams
20 Mar 2016
Forum: MultiCharts
Topic: Problem with EntriesToday(Date)
Replies: 10
Views: 1982

Re: Problem with EntriesToday(Date)

Hi svopex! The EntriesToday function is correct as written, however; I think your code logic using SessionEndTime as an entry signal is problematic. A backtest will ignore Sunday, since it is not within the session times, but real time trading might produce some quotes and your logic is looking back...
by rrams
06 Mar 2016
Forum: MultiCharts
Topic: chart IB symbol help [SOLVED]
Replies: 3
Views: 906

Re: chart IB symbol help [SOLVED]

Thank you Henry. Yes, I added the symbol to the QM in exactly the manner you suggested and reloaded. I also turned off "filter bars with zero volume" in the IB Data Feed settings to see if that helped. Although I can plot the Bids and Asks perfectly - I cannot plot Trades correctly. It appears to be...
by rrams
06 Mar 2016
Forum: User Contributed Studies and Indicator Library
Topic: The Economic Events Collection for MultiCharts
Replies: 131
Views: 39233

Re: The Economic Events Collection for MultiCharts

Just replace all occurances of DateTimeToStr with the built in function DateTimeToString. Make sure you also have the StrToChopUp function: { This function "chops up" a string in separate pieces, where each space (" ") is replaced by a new line. Changelog 3-5-2012 First version. } inputs: StrToChopU...
by rrams
03 Mar 2016
Forum: MultiCharts
Topic: chart IB symbol help [SOLVED]
Replies: 3
Views: 906

chart IB symbol help [SOLVED]

First, I want to say that I have used MultiCharts every day for several years and am happy with it. Occasionally I have an issue and I need to make sure I am following the correct procedure. I could not get a good MC chart in any timeframe for an ecbot futures symbol called AIGCI. The description is...
by rrams
17 Nov 2015
Forum: MultiCharts
Topic: Daylight Savings Time (DST) not working correctly [SOLVED]
Replies: 8
Views: 2072

Re: Daylight Savings Time (DST) not working correctly [SOLVED]

Here in Arizona we do not observe Daylight Saving Time either. I gave up trying to explain the issue a couple years ago and ended up writing work around routines to keep track of session times. It's difficult to reproduce and test fixes because you have to wait eight months for the exchange to switc...
by rrams
19 Aug 2015
Forum: MultiCharts
Topic: MC chart latency issues
Replies: 2
Views: 755

Re: MC chart latency issues

I'm just trying to be helpful; but don't some negative values above (indicating that the tick timestamp arrived after the current computer datestamp) imply that your measurements are meaningless error and not a good way of calculating either latency of quotes or the time spent processing signals. If...
by rrams
23 Jul 2015
Forum: MultiCharts
Topic: Symbol Dictionary - Daily Limit
Replies: 2
Views: 2201

Symbol Dictionary - Daily Limit

I was able to add the root of E7U5 Euro FX to the symbol dictionary of QuoteManager (for Interactive Brokers). However, I cannot check Use Symbol Dictionary Settings on the settings tab of that symbol. I get a "You must enter 'Daily Limit' value between 1 and 1000000" dialog box preventing me from a...
by rrams
16 Feb 2015
Forum: MultiCharts
Topic: How do we stop "Connectivity error"
Replies: 3
Views: 952

Re: How do we stop "Connectivity error"

I have also suffered from this for three years. No, neither of these settings have any effect in stopping the rash of TWS connectivity messages. I can sometimes get the error popups to stop by killing the MessageCenter.exe process. I do not like to criticize someone else's hard work. But these popup...
by rrams
04 Nov 2014
Forum: MultiCharts
Topic: CurrentSession Function
Replies: 5
Views: 775

Re: CurrentSession Function

Thanks for the reply Arnie. I use the standard futures templates. I forgot about the daylight savings time change. Arizona does not observe DST, so maybe there was an hour where the exchange fell back and this created a negative time difference in the CurrentSession function? If that is the case: it...
by rrams
03 Nov 2014
Forum: MultiCharts
Topic: CurrentSession Function
Replies: 5
Views: 775

CurrentSession Function

Since updating to latest MC 9, build 10013, 32bit and starting this Sunday I could not get the CurrentSession function to return a value for QMZ4 or ZB Dec 14. Still works for NQZ4. The return value for CurrentSession does not print -1 using NumToStr, so I don't know if it is even initialized proper...
by rrams
26 Feb 2014
Forum: MultiCharts
Topic: IB TICK-NYSE minute chart truncated
Replies: 6
Views: 1750

Re: IB TICK-NYSE minute chart truncated

I am using the 32 bit version of MC. The issue doesn't happen every time. Every now and then the chart displays correctly on MC. I also can't figure out how to "lock" the vertical scale to a user defined min and max. When this sub chart is combined with a chart that has a different vertical scale (s...
by rrams
25 Feb 2014
Forum: MultiCharts
Topic: IB TICK-NYSE minute chart truncated
Replies: 6
Views: 1750

Re: IB TICK-NYSE minute chart truncated

I value your opinion and sypathize with your feelings about IB data and order handling. I understand their limitations; however I don't want to jump to any conclusions or blame and complain. This is an non-tradable symbol that doesn't need to show every quote to be useful. I just wanted help to iden...
by rrams
25 Feb 2014
Forum: MultiCharts
Topic: IB TICK-NYSE minute chart truncated
Replies: 6
Views: 1750

IB TICK-NYSE minute chart truncated

Can someone verify if they can get a 2 minute chart of the NYSE-TICK index from Interactive Brokers to display properly? Or what I might be doing wrong? I can't get any negative numbers to print even though it works on TWS and in MC using MB Trading as a data source. Also a tick chart of the TICK-NY...
by rrams
15 Mar 2012
Forum: MultiCharts
Topic: Multicharts 7.4 + Latest IB problem
Replies: 5
Views: 666

Re: Multicharts 7.4 + Latest IB problem

Hi felixtjung, Are both the profit target limit and stop orders getting rejected? Is it when they are far away in price? Do you mind posting or email your trading code with the way you are implementing bracket orders? I would like to observe it reject an order and try to write a safer template to us...
by rrams
03 Feb 2012
Forum: MultiCharts
Topic: MBTrading, historical breadth data available?
Replies: 1
Views: 786

Re: MBTrading, historical breadth data available?

The NYSE TICK represents the net number of stocks in the broad market that are trading at their offer prices minus those trading at their bids. Both Interactive Brokers and MB Trading will historical backfill this index onto a Multicharts window. I don't know what the index calculation update freque...
by rrams
02 Sep 2011
Forum: MultiCharts
Topic: RAMDisk - might be useful to speed up MC
Replies: 10
Views: 1601

Re: RAMDisk - might be useful to speed up MC

I agree. Four raid 0 SSD's eliminate the I/O bottleneck and are better than 64 bit or a ramdrive. To increase the life span of exspensive SSD's (about 1 year average for me); a small ramdrive would be good for holding the ever increasing amount of logfiles that these realtime programs constantly gen...
by rrams
26 Aug 2011
Forum: MultiCharts
Topic: charts stopped updating
Replies: 16
Views: 1996

Re: charts stopped updating

Don't be offended by a simple suggestion: check that the chart instrument datasource is set to real time and not history. For some reason Multicharts will default this setting back to history when you go to format instrument instead of leaving it on the current value (real time).

Go to advanced search