Search found 156 matches

by PD Quig
23 Feb 2018
Forum: MultiCharts
Topic: Plotting global variable data on charts with different bar types [SOLVED]
Replies: 4
Views: 150

Re: Plotting global variable data on charts with different bar types [SOLVED]

I decided that the ADE framework was overkill for an application that doesn't need to calculate and plot data on each bar. I didn't think going up the learning curve was value added for my needs. Instead, I'm using one sending indicator and a receiving indicator on several charts. The receiver simpl...
by PD Quig
18 Feb 2018
Forum: MultiCharts
Topic: Plotting global variable data on charts with different bar types [SOLVED]
Replies: 4
Views: 150

Re: Plotting global variable data on charts with different bar types [SOLVED]

Are there any updated links to the TypeZero Library? This one appears to be a dead end now: http://www.tradersxchange.com/viewtopic.php?f=49&t=4 After some reading I Googled TypeZero Sync and found this: DATA/20050302173356TypeZeroSyn c.zip but am not sure if this is equivalent to the "Type...
by PD Quig
18 Feb 2018
Forum: MultiCharts
Topic: Plotting global variable data on charts with different bar types [SOLVED]
Replies: 4
Views: 150

Re: Plotting global variable data on charts with different bar types [SOLVED]

No. This is the first I've heard of it. I will check it out.

Thanks!
by PD Quig
17 Feb 2018
Forum: MultiCharts
Topic: Plotting global variable data on charts with different bar types [SOLVED]
Replies: 4
Views: 150

Plotting global variable data on charts with different bar types [SOLVED]

I have an indicator that calculates long and short signals that I have used on my main 3 range (point) trading chart for a couple of years. Its calculations are based on several different swing strengths. Lately, I started applying this indicator to different chart types and it still throws signals,...
by PD Quig
14 Feb 2018
Forum: MultiCharts FAQ
Topic: The MC10 Win10 4k Display Implementation Q&A
Replies: 27
Views: 5351

Re: The MC10 Win10 4k Display Implementation Q&A

Hi Charles,

I'm sorry to be tardy in responding. Yes, MultiCharts supports 4K. I'm still on version 10.0.14417 and it works fine.

PDQ
by PD Quig
31 Oct 2017
Forum: MultiCharts
Topic: Regular Trading Hours Session Template Issue [SOLVED]
Replies: 2
Views: 295

Re: Regular Trading Hours Session Template Issue [SOLVED]

D'oh!! Thanks, Anna. All my charts but that one use the 24/7 session. I created a custom CME RTH setting and it's all good now.
by PD Quig
19 Oct 2017
Forum: MultiCharts
Topic: Regular Trading Hours Session Template Issue [SOLVED]
Replies: 2
Views: 295

Regular Trading Hours Session Template Issue [SOLVED]

Only one of my charts (a 30-min) uses a regular trading hour (RTH) session template. When I switched instruments from @TFS# (the ICE Russell emini contract) to the @RTY# (the CME Russell emini contract), I noticed that two bars now plot after the 16:00 session end for RTY--causing a custom indicator...
by PD Quig
21 Sep 2017
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 84
Views: 8518

Re: MULTICHARTS 11.0 RELEASE--is slow to load

I upgraded to 11.0.14941.400 this afternoon. The first time I started MultiCharts it took probably 2-3 minutes to load all my workspaces. So, I shut it down and did four more starts. Average load time: 1 min 40 secs. I uninstalled and reinstalled 10.0.14417 and ran four start-up tests: Average load ...
by PD Quig
16 Sep 2017
Forum: MultiCharts
Topic: Need other sets of eyes [SOLVED]
Replies: 4
Views: 295

Re: Need other sets of eyes [SOLVED]

Pic_6.png
Pic_6.png (48.36 KiB) Viewed 254 times

Pic_7.png
Pic_7.png (60.63 KiB) Viewed 254 times
by PD Quig
16 Sep 2017
Forum: MultiCharts
Topic: Need other sets of eyes [SOLVED]
Replies: 4
Views: 295

Re: Need other sets of eyes [SOLVED]

Mr. Potato Head. It had been long enough since I used this code that I had forgotten that to do multiple entry orders in the same direction, Strategy Properties>Position Limits setting has to be set in the chart. It is not stored in the PowerLanguage File>Properties. When I set that the code worked ...
by PD Quig
16 Sep 2017
Forum: MultiCharts
Topic: Need other sets of eyes [SOLVED]
Replies: 4
Views: 295

Re: Need other sets of eyes [SOLVED]

Thanks for your response. I should have mentioned that these issues are in Sim001 account in backtest mode--not live. Haven't tried live orders since it's no longer working in backtest mode like it did when last used. BTW: The candles that are larger than others are actually virtual renko candles. T...
by PD Quig
14 Sep 2017
Forum: MultiCharts
Topic: Need other sets of eyes [SOLVED]
Replies: 4
Views: 295

Need other sets of eyes [SOLVED]

Going a little crazy here. I'm updating signal code that I used extensively in the past. It is a multiple entry system and it worked fine both in live trading and backtesting modes. In this test the number of entries is set to five. This evening when I applied it to a chart to start working on it, t...
by PD Quig
29 Mar 2017
Forum: MultiCharts
Topic: Keeping text objects fixed on the right edge of the chart [SOLVED]
Replies: 3
Views: 643

Re: Keeping text objects fixed on the right edge of the chart [SOLVED]

Quick note about using DateTime3ELTTime_s(GetAppInfo(aiRightDispDateTime)) and Text_SetLocation_s:

You should also use Text_Anchor_To_Bars(ID, true) when defining the text. Otherwise, the text jumps around.
by PD Quig
26 Mar 2017
Forum: MultiCharts
Topic: Keeping text objects fixed on the right edge of the chart [SOLVED]
Replies: 3
Views: 643

Re: Keeping text objects fixed on the right edge of the chart [SOLVED]

Josh, The combination of assigning the Text_Plot_Time variable using DateTime3ELTTime_s(GetAppInfo(aiRightDispDateTime)) and Text_SetLocation_s did the trick. Background dragging and using the scroll bar to move in either direction keeps the price text pegged close to the right hand edge of the char...
by PD Quig
20 Mar 2017
Forum: MultiCharts
Topic: Keeping text objects fixed on the right edge of the chart [SOLVED]
Replies: 3
Views: 643

Keeping text objects fixed on the right edge of the chart [SOLVED]

I've got a number of studies that plot horizontal trend lines that extend to the right edge of the chart (swing highs, swing lows, gaps, etc.). I like to label the price value of the trend lines flush right against the right edge of the chart. The code I've been using works okay as long as I don't s...
by PD Quig
24 Feb 2017
Forum: MultiCharts FAQ
Topic: The MC10 Win10 4k Display Implementation Q&A
Replies: 27
Views: 5351

Re: The MC10 Win10 4k Display Implementation Q&A

So... is anyone using a 4K monitor and graphics card with Win 10 to report the 4K graphics compared to the old graphics regime of MC? I am not using Win 10--because I was strongly discouraged from doing so by a support tech at Falcon. I'm paraphrasing, but he said, "After the first 100 repetit...
by PD Quig
25 Nov 2016
Forum: MultiCharts
Topic: Plotting actual trades on a chart after the fact [SOLVED]
Replies: 3
Views: 889

Re: Plotting actual trades on a chart after the fact [SOLVED]

Finally got around to doing some more work on this idea this weekend. I'm at the point where I read the broker order transaction data, convert it into unique trade details, and plot the results on a chart. I'll be happy to share the code, but I'm trying to figure out the last piece of the puzzle fir...
by PD Quig
22 Nov 2016
Forum: MultiCharts
Topic: Weekly & daily data [SOLVED]
Replies: 3
Views: 441

Re: Weekly & daily data [SOLVED]

Just got off the phone with IQFeed. They discovered yesterday that one of their servers did not properly capture EOD data for the last year, which impacted both daily and weekly data. They've fixed the problem so reloading data will now work.
by PD Quig
20 Nov 2016
Forum: MultiCharts
Topic: Weekly & daily data [SOLVED]
Replies: 3
Views: 441

Weekly & daily data [SOLVED]

I was gone for last week and did not open any charts. Now, my weekly and daily charts will not display the data from last week unless I click the "Build from minutes" checkbox in the Format Instrument>Settings UI. If I click that setting, however, my weekly chart will only display back to ...
by PD Quig
22 Oct 2016
Forum: MultiCharts
Topic: Chart interplay between Renko and Points type bars [SOLVED]
Replies: 5
Views: 598

Re: Chart interplay between Renko and Points type bars [SOLVED]

"I have a dream..."

Debugging strategies with Renko bars is currently like trying to thread a needle behind your back: with enough iterations you can eventually get there--but is it worth the effort?

Cheers!
by PD Quig
20 Oct 2016
Forum: MultiCharts
Topic: Chart interplay between Renko and Points type bars [SOLVED]
Replies: 5
Views: 598

Re: Chart interplay between Renko and Points type bars [SOLVED]

Never mind. After spending most of today experimenting, I've decided that mixing Renko bars and other bar types on one chart to do analysis is a fool's errand. No matter which data stream the Renko bars are assigned to, there are problems in playback, backtesting, chart plotting, execution--or some ...
by PD Quig
19 Oct 2016
Forum: MultiCharts
Topic: Chart interplay between Renko and Points type bars [SOLVED]
Replies: 5
Views: 598

Chart interplay between Renko and Points type bars [SOLVED]

I've got a signal that trades off 3 Point bars, with multiple entries calculated based on retracements from synthetic "renko bars" that I calculate myself in the signal code. I coded these synthetic, on-the-fly renko bars a long time ago when MC's renko bars were pretty basic. The code han...
by PD Quig
07 Sep 2016
Forum: MultiCharts
Topic: Plotting actual trades on a chart after the fact [SOLVED]
Replies: 3
Views: 889

Re: Plotting actual trades on a chart after the fact [SOLVED]

Thanks, Josh. Looks like I need to study ELCollections first. I've never used it. I've done a fair amount of work with trendlines so I'm not concerned with that part of it.
by PD Quig
06 Sep 2016
Forum: MultiCharts
Topic: Plotting actual trades on a chart after the fact [SOLVED]
Replies: 3
Views: 889

Plotting actual trades on a chart after the fact [SOLVED]

Like most traders, I keep a daily record of all trades whether taken through automation, MC's chart trader, or through the broker's client. At the end of the day, the basic trade data is automatically extracted from the broker into a .csv file. I then grade the trades and make comments and append it...
by PD Quig
22 Jul 2016
Forum: MultiCharts
Topic: Order and Position Tracker data accessible within MC?
Replies: 3
Views: 800

Re: Order and Position Tracker data accessible within MC?

Thanks Josh. Although 80% of my trades are executed via signals, the other 20% still need to be captured. You've got some other good ideas to ponder.

The quest continues...
by PD Quig
21 Jul 2016
Forum: MultiCharts
Topic: Order and Position Tracker data accessible within MC?
Replies: 3
Views: 800

Order and Position Tracker data accessible within MC?

Is the data from Order and Position Tracker accessible within MC? For the purpose of automating my trading performance tracking log, I would like to access OPT's data and automatically produce the basic parts of my log. For five years I've been downloading my daily brokerage records into Excel and r...
by PD Quig
18 Jun 2016
Forum: MultiCharts
Topic: MC_Text_GetActive de-select function
Replies: 2
Views: 1198

MC_Text_GetActive de-select function

Reference this thread: https://www.multicharts.com/discussion/viewtopic.php?f=5&t=7764 Is there a command that you can embed in code that will programatically de-select a selected text object? Several years ago, I used jbowles MC_Text_GetActive technique as the springboard for coding the activat...
by PD Quig
21 May 2016
Forum: MultiCharts FAQ
Topic: The MC10 Win10 4k Display Implementation Q&A
Replies: 27
Views: 5351

Re: The 4k Display Thread

Does for 4K help traders become more profitable or is it more of bragging rights? It is not like watching action movies. It is a chart with 4 data points OHLC. Don't get me wrong, how many different shades or pixels do you need for a 1M or 15M chart? Even with a decent GPU, a large 4K TV as a monit...
by PD Quig
19 May 2016
Forum: MultiCharts FAQ
Topic: The MC10 Win10 4k Display Implementation Q&A
Replies: 27
Views: 5351

Re: The 4k Display Thread

Thanks all. I have been researching GPUs. Not sure how much horsepower is necessary for charts vs. the demands of gaming (about which I know next to nothing except that it is obviously graphic intensive). I guess I try loading MC 10 Beta and see how things look.
by PD Quig
19 May 2016
Forum: MultiCharts FAQ
Topic: The MC10 Win10 4k Display Implementation Q&A
Replies: 27
Views: 5351

Re: The 4k Display Thread

Henry, I'm using 9.1 (Build 12587) with Windows 7 Professional. From long experience with MS, I haven't been willing to go to Windows 10 until it's well shaken out. Until now I saw no need to do so, but if MC's 4K graphics improvements are significant then maybe I'll build a Windows 10 test machine....
by PD Quig
17 May 2016
Forum: MultiCharts FAQ
Topic: The MC10 Win10 4k Display Implementation Q&A
Replies: 27
Views: 5351

Any hardware gurus out there?

I know this is a bit off topic, but I'm kicking around using a large 4K TV as a monitor to replace my current multiple monitor arrangement and thought I'd see if anybody here has any inputs. On a recent vacation I plugged my laptop into a friend's good quality 4K TV and opened up a six chart workspa...
by PD Quig
10 Apr 2016
Forum: MultiCharts
Topic: Is there a way to limit use of code to a single machine ID? [SOLVED]
Replies: 4
Views: 760

Re: Is there a way to limit use of code to a single machine  [SOLVED]

Thanks to all. Some combination of the above would make me feel better about sending code off into the ether.

Have a good week, all.

PDQ
by PD Quig
08 Apr 2016
Forum: MultiCharts
Topic: Is there a way to limit use of code to a single machine ID? [SOLVED]
Replies: 4
Views: 760

Is there a way to limit use of code to a single machine ID? [SOLVED]

I have shared code (.sef) with other traders in the past and have always included a simple "poison pill" that renders the code inoperative after a certain date. This is a admittedly a pretty clunky way to manage IP, but I couldn't find any info that indicated that there might be a more ele...
by PD Quig
07 Jan 2016
Forum: MultiCharts
Topic: Is there a link to v9.0 available?
Replies: 1
Views: 1315

Is there a link to v9.0 available?

I gave a friend who is still using v9.0 an .sef file of an indicator I compiled in v9.1 and he was unable to import it. Does this sound possible that he lost some backward compatibility in a minor release? I have another machine that I could load v9.0 on if I can find a download link. Then I can com...
by PD Quig
23 Aug 2015
Forum: MultiCharts
Topic: Volume profile is missing data in middle section of chart [SOLVED]
Replies: 5
Views: 1123

Re: Volume profile is missing data in middle section of char [SOLVED]

Arnie: That was it. Talk about feeling foolish ;-D
by PD Quig
20 Aug 2015
Forum: MultiCharts
Topic: Volume profile is missing data in middle section of chart [SOLVED]
Replies: 5
Views: 1123

Re: Volume profile is missing data in middle section of char [SOLVED]

Using Quote Manager, I exported @TFS# tick data from IQFeed for 08/19/2015. All the data is present (two files attached).

See also attached pictures of Instrument and Volume Profile settings.

Note from the picture of the 15-min chart that the phenomenon is present on all days--not just 08/19/2015.
by PD Quig
19 Aug 2015
Forum: MultiCharts
Topic: Volume profile is missing data in middle section of chart [SOLVED]
Replies: 5
Views: 1123

Volume profile is missing data in middle section of chart [SOLVED]

I have looked through the settings multiple times and can see no obvious reason why volume profile data appears at the top and bottom of the chart but with a large section missing in the middle. The session is set to 24x7.

Please see attached picture.
by PD Quig
29 May 2015
Forum: MultiCharts .NET
Topic: Is there a .PLA version of Time & Sales code? [SOLVED]
Replies: 2
Views: 2186

Re: Is there a .PLA version of Time & Sales code? [SOLVED]

That's a drag. Thanks for the link, Henry.
by PD Quig
29 May 2015
Forum: MultiCharts .NET
Topic: Is there a .PLA version of Time & Sales code? [SOLVED]
Replies: 2
Views: 2186

Is there a .PLA version of Time & Sales code? [SOLVED]

The following thread contained an entry from Henry on Feb. 4, 2014 that contained a sample code download (Test_T_and_S_ab_traded.pln) to replicate the time & sales window data: https://www.multicharts.com/discussion/viewtopic.php?f=19&t=45940&p=101877#p101877 Is there a .PLA version of t...
by PD Quig
04 May 2015
Forum: MultiCharts
Topic: Indicator default subcharts
Replies: 4
Views: 975

Re: Indicator default subcharts

Thanks, Henry. That's good to know, even though it is not exactly intuitive. I think users expect that the "Use as Default" selection pertains to all properties on the tab.
by PD Quig
02 May 2015
Forum: MultiCharts
Topic: Indicator default subcharts
Replies: 4
Views: 975

Indicator default subcharts

What was the resolution to this topic? https://www.multicharts.com/discussion/viewtopic.php?f=1&t=10508&hilit=indicator+subchart Why do some indicators get "stuck" with the wrong subchart selected for every chart to which they are applied? I have attempted to select the "Use a...
by PD Quig
17 Mar 2015
Forum: MultiCharts .NET
Topic: How exactly is chart data built from merged data sources?
Replies: 4
Views: 1231

How exactly is chart data built from merged data sources?

I am cross-posting this from this thread: http://www.multicharts.com/discussion/viewtopic.php?f=19&t=45735 How exactly is chart data built and merged when two data sources are used? I did not find a detailed description of how real time and historical data sources are merged in the documentation...
by PD Quig
04 Mar 2015
Forum: MultiCharts
Topic: Text_GetActive anomalies [SOLVED]
Replies: 2
Views: 711

Re: Text_GetActive anomalies [SOLVED]

Josh, Somehow I had missed seeing MC_Text_GetActive when looking at the Text Drawing page in Wiki. Using MC_Text_GetActive and making some modifications to code it all works. I had built my routine based on bowlesj3 InteractiveScriptBase code that uses Text_GetActive. http://www.multicharts.com/disc...
by PD Quig
03 Mar 2015
Forum: MultiCharts
Topic: Text_GetActive anomalies [SOLVED]
Replies: 2
Views: 711

Text_GetActive anomalies [SOLVED]

I am experiencing cases where the Text_GetActive function thinks that text has been selected when it has not . Here's what is happening: my code places text strings on the screen and when a text string is manually selected, a Text_GetActive loop gets entered and the signal takes various actions base...
by PD Quig
05 Feb 2015
Forum: MultiCharts
Topic: Code to delete all trend lines at bar close
Replies: 2
Views: 479

Re: Code to delete all trend lines at bar close

Henry,

Your code works as desired when "once" is removed from the statement:

once ID = tl_getfirst(3);

Otherwise, it only works one time ;-)

Thanks!

-PDQ
by PD Quig
04 Feb 2015
Forum: MultiCharts
Topic: Code to delete all trend lines at bar close
Replies: 2
Views: 479

Code to delete all trend lines at bar close

As a small piece of a routine that draws a varying number of trend lines at the close of each bar, I want to delete all existing trend lines on the close of a bar. No matter what I try, I can only get one TL to delete. Here's what I thought would work: variables: ID (0); if LastBarOnChart and barsta...
by PD Quig
28 Oct 2014
Forum: MultiCharts
Topic: Unexpected behavior in plotting arrows on a Renko chart
Replies: 1
Views: 552

Unexpected behavior in plotting arrows on a Renko chart

Version 9.0 Release (Build 10014) The test code below is supposed to initialize two arrows above price on the last bar of a Renko chart. Ultimately the objective is to be able to move either arrow and have the code pick up data from the bars that they point to and perform other calculations. Instead...
by PD Quig
11 Jul 2014
Forum: MultiCharts
Topic: Requesting Playback mode for Renko charts
Replies: 1
Views: 745

Requesting Playback mode for Renko charts

Prior to adding an enhancement request, I wanted to check with the multitudes: Unless I am missing something, not only is it not possible to accurately backtest strategies for Renko charts (using bar magnifier), but it is also not possible to debug Renko chart strategies using "Tick by Tick&quo...
by PD Quig
12 May 2014
Forum: MultiCharts
Topic: Issues with limit entry orders (v8.8 build 8593)
Replies: 2
Views: 533

Re: Issues with limit entry orders (v8.8 build 8593)

Thanks Andrew. I definitely experienced issues in SA mode as well. I will visit the chat room the next time I am free.
by PD Quig
10 May 2014
Forum: MultiCharts
Topic: Issues with limit entry orders (v8.8 build 8593)
Replies: 2
Views: 533

Issues with limit entry orders (v8.8 build 8593)

I have spent the past few days testing the use of limit entry orders for TF futures in my IB simulated account. I have gotten some very unexpected results. Brief notes on how my signal works: all my entries are currently on stops, but my setups do not include trading breakouts. My main code implemen...
by PD Quig
27 Apr 2014
Forum: MultiCharts
Topic: Problem with aiHighestDispValue [SOLVED]
Replies: 5
Views: 877

Re: Problem with aiHighestDispValue [SOLVED]

thanks for that, too.
by PD Quig
27 Apr 2014
Forum: MultiCharts
Topic: Problem with aiHighestDispValue [SOLVED]
Replies: 5
Views: 877

Re: Problem with aiHighestDispValue [SOLVED]

Thanks, TJ. That did it. Not sure why I got away with not using the LastBarOnChart conditional in the past, but I'll use it going forward.

PDQ
by PD Quig
26 Apr 2014
Forum: MultiCharts
Topic: Problem with aiHighestDispValue [SOLVED]
Replies: 5
Views: 877

Problem with aiHighestDispValue [SOLVED]

I wrote a simple indicator to test plotting a value in the upper left hand corner of the chart and opened a can of worms. It keeps driving a floating point error. Here's the code: {***********************************************************************************************************************...
by PD Quig
08 Apr 2014
Forum: MultiCharts
Topic: Weird interaction between signals using two data streams
Replies: 5
Views: 771

Re: Weird interaction between signals using two data streams

When printing variable values to output, barstatus values changed in unexpected ways: sometimes barstatus(2) changed when barstatus(1) changed and occasionally neither changed at the proper time. I don't want to mess with my TL signal so I guess I'll continue to dink around with the trail stop. Good...
by PD Quig
07 Apr 2014
Forum: MultiCharts
Topic: Weird interaction between signals using two data streams
Replies: 5
Views: 771

Weird interaction between signals using two data streams

Generic question: I've got a trend line trading signal that has worked bug-free for a few months now. I have a trailing stop signal that I use in conjunction with the TL signal and they play nicely together. No bugs or issues in at least two months. Today I added the TL signal to a 3-min chart and i...
by PD Quig
31 Mar 2014
Forum: MultiCharts
Topic: Volume of Contracts Traded
Replies: 6
Views: 846

Re: Volume of Contracts Traded

MAtricks, When all is said and done, I decided that the simple upticks vs. downticks approach made the most sense to me. Rather than attributing the entire volume value to either up or down, displaying both of the components of volume on the same bar are more revealing. I do like presenting the up v...
by PD Quig
28 Mar 2014
Forum: MultiCharts
Topic: Volume of Contracts Traded
Replies: 6
Views: 846

Re: Volume of Contracts Traded

Thanks much, MAtricks! I'll play with it over the weekend.
by PD Quig
27 Mar 2014
Forum: MultiCharts
Topic: Volume of Contracts Traded
Replies: 6
Views: 846

Re: Volume of Contracts Traded

Thanks, TJ. I had tried that but couldn't make the scaling agree.
by PD Quig
27 Mar 2014
Forum: MultiCharts
Topic: Volume of Contracts Traded
Replies: 6
Views: 846

Volume of Contracts Traded

I'm trying to develop a volume bar chart indicator that shows the total volume of contracts traded during a bar with the up volume stacked on top of the down volume (see the attached mock-up) so you can easily see the total number of contracts traded for the bar and can get a quick visual on the spl...
by PD Quig
28 Jan 2014
Forum: MultiCharts
Topic: Drawing Object Question
Replies: 2
Views: 492

Re: Drawing Object Question

Dang, Dru. Thanks. Shows what a few sleepless nights will do for your thinking process...(very similar issue last week). Feel like Homer Simpson.
by PD Quig
27 Jan 2014
Forum: MultiCharts
Topic: Drawing Object Question
Replies: 2
Views: 492

Drawing Object Question

I have a simple test routine that draws a TL and text object and moves them at the close of each bar. It works fine in playback mode, but the TL and text disappear one tick after being drawn in real-time mode. I want to avoid using TL_Delete and Text_Delete commands because of the havoc they play on...
by PD Quig
22 Jan 2014
Forum: MultiCharts
Topic: Trend line trading
Replies: 22
Views: 3728

Re: Trend line trading

On to the next TL trading issue: I am getting an array out of bounds error when there are trendlines on the chart other than the ones drawn by my signal. When there are no drawing objects on the chart other than those created by the signal the code works as expected. The function I use (see below) g...
by PD Quig
21 Jan 2014
Forum: MultiCharts
Topic: Trend line trading
Replies: 22
Views: 3728

Re: Trend line trading

I think you missed my update to Post 14: [RecoverDrawings = false] worked for my simple application.

Thanks for all the work on this!

PDQ
by PD Quig
20 Jan 2014
Forum: MultiCharts
Topic: Trend line trading
Replies: 22
Views: 3728

Re: Trend line trading

Digging through the threads, I saw that TL_Persist, Text_Persist, etc. were released in MC 8.5 (see attached screen shot). The commands are not available in 8.7.

What's up?

Update: I added the [RecoverDrawings = false] parameter and that fixed it.
by PD Quig
20 Jan 2014
Forum: MultiCharts
Topic: Trend line trading
Replies: 22
Views: 3728

Re: Trend line trading

Pushing some pieces around and need another set of eyes here. The simple code below calculates initial values for a stop, target_1, and target_2 upon entry into a position. These values are used to initialize three corresponding horizontal trend lines and associated text. Once these trend lines have...
by PD Quig
15 Jan 2014
Forum: MultiCharts
Topic: Trend line trading
Replies: 22
Views: 3728

Re: Trend line trading

bowlesj3, I did a lot of that sort of programming (meaning 3 to 6 weeks of constant programming). I am at the point now where I do everything I can to avoid that and try to avoid any more than a few hours of trading time lost. Exactly. I'm not interested in a science project, but have concluded afte...
by PD Quig
14 Jan 2014
Forum: MultiCharts
Topic: Trend line trading
Replies: 22
Views: 3728

Re: Trend line trading

Thanks, TJ. I spent more time Googling after the close and found this as well: http://systemtradersuccess.com/a-semi-automated-trend-line-trading-strategy/ There is a downloadable .ELD that looks very well done. UPDATE: won't compile. Uses method, #region / #endregion, switch, case constructs. The c...
by PD Quig
14 Jan 2014
Forum: MultiCharts
Topic: Trend line trading
Replies: 22
Views: 3728

Re: Trend line trading

Hi Roman, I am looking for sample code for trend line trading--rather than starting from ground zero. I looked through the user contributed studies and didn't find anything that appeared to directly address trend line trading. There was a note from TJ back in Jan 2009 (https://www.multicharts.com/di...
by PD Quig
12 Jan 2014
Forum: MultiCharts
Topic: Trend line trading
Replies: 22
Views: 3728

Trend line trading

I read through a number of threads and saw some posts by bowlesj3 and others that discuss the MC TL and text functionality that could be used to develop TL-based trading. I don't want to re-create Chart Trading, but there are some limitations to it that finally discouraged me from using it: 1) it on...
by PD Quig
08 Nov 2013
Forum: MultiCharts
Topic: MultiCharts ATR vs. NT ATR [SOLVED]
Replies: 4
Views: 1448

Re: MultiCharts ATR vs. NT ATR [SOLVED]

Results. Thanks again, SP.
by PD Quig
08 Nov 2013
Forum: MultiCharts
Topic: MultiCharts ATR vs. NT ATR [SOLVED]
Replies: 4
Views: 1448

Re: MultiCharts ATR vs. NT ATR [SOLVED]

Thanks Fury and SP. I don't read C# so I missed that the summation is different. Awesome catch, SP. I'll try that after session close today.
by PD Quig
07 Nov 2013
Forum: MultiCharts
Topic: MultiCharts ATR vs. NT ATR [SOLVED]
Replies: 4
Views: 1448

MultiCharts ATR vs. NT ATR [SOLVED]

I'm trying to emulate an ATR-based trailing stop in a NinjaTrade black box indicator (I can't see the code). The basic issue appears to be that NT's and MultiChart's ATR calculation produce quite different results. Any ideas why this might be? ATR should be a really straight-forward calculation and ...
by PD Quig
16 Oct 2013
Forum: MultiCharts
Topic: Plotting gaps / multiple passes through bar data [SOLVED]
Replies: 12
Views: 1207

Re: Plotting gaps / multiple passes through bar data [SOLVED]

I must have read your brainwaves because I finally stumbled across it and was just typing this to wave you off. :-)

Thanks for your help on this.
by PD Quig
16 Oct 2013
Forum: MultiCharts
Topic: Plotting gaps / multiple passes through bar data [SOLVED]
Replies: 12
Views: 1207

Re: Plotting gaps / multiple passes through bar data [SOLVED]

Half way there. I get the time portion of the last bar as follows: Text_Plot_Time = DateTime2ELTime(GetAppInfo(aiRightDispDateTime)); ...and I know that aiRightDispDateTime also contains the date portion from the Wiki example: FormatDate("MM/dd/yyyy", GetAppInfo(aiRightDispDateTime)) which...
by PD Quig
16 Oct 2013
Forum: MultiCharts
Topic: Plotting gaps / multiple passes through bar data [SOLVED]
Replies: 12
Views: 1207

Re: Plotting gaps / multiple passes through bar data [SOLVED]

I got some time to work this again last night and am mostly finished. It all works except for the gap text label horizontal positioning. I'd like to have the gap label text flushed all the way to the right like you can with the horizontal line drawing tool (see attached image). There must be a way t...
by PD Quig
13 Oct 2013
Forum: MultiCharts
Topic: Plotting gaps / multiple passes through bar data [SOLVED]
Replies: 12
Views: 1207

Re: Plotting gaps / multiple passes through bar data [SOLVED]

Good to know that the trend line and text ID's remain static. That will make things easier. At this point I'm thinking to apply the indicator to a chart that goes back one or two years only -- so the arrays would be fairly small (TF has only 14 unfilled gaps since 1/1/2013). Ultimately I could see w...
by PD Quig
13 Oct 2013
Forum: MultiCharts
Topic: Plotting gaps / multiple passes through bar data [SOLVED]
Replies: 12
Views: 1207

Re: Plotting gaps / multiple passes through bar data [SOLVED]

I'm thinking that this kind of approach would work: 1. if EOD a. draw a trend line from the bar close extended to the right b. label it with price and date text. c. write the value of the trend line ID and closing price to an array. d. write the value of the price and date text ID's and--associated ...
by PD Quig
11 Oct 2013
Forum: MultiCharts
Topic: Plotting gaps / multiple passes through bar data [SOLVED]
Replies: 12
Views: 1207

Re: Plotting gaps / multiple passes through bar data [SOLVED]

Here is what I am looking to do (attached). When a gap is filled the plot would be dropped.
by PD Quig
10 Oct 2013
Forum: MultiCharts
Topic: Plotting gaps / multiple passes through bar data [SOLVED]
Replies: 12
Views: 1207

Plotting gaps / multiple passes through bar data [SOLVED]

I'm trying to devise an indicator that will plot a line for each open gap from the date of the gap's close to the right hand margin of the chart--where the gap date and price will plot. When the gap gets filled the line should no longer plot. It seems that processing multiple passes through chart ba...
by PD Quig
14 Sep 2013
Forum: MultiCharts
Topic: Questions on Global Variables
Replies: 9
Views: 2361

Re: Questions on Global Variables

Thanks, TJ and JB both for the latency info! For real-time execution I run only one very simple indicator and the master signal on one chart, with only the slave signal on the other chart. I'm sure C#, C++, or VB code could be much faster, but from what I've seen I can live with the execution throug...
by PD Quig
14 Sep 2013
Forum: MultiCharts
Topic: Questions on Global Variables
Replies: 9
Views: 2361

Re: Questions on Global Variables

Follow-up to this thread: Having failed to find any good documentation or even much in the way of code samples that could illuminate some global variable (GV) best practices, I have spent the past several weeks coding, testing, and executing strategies that perform pair trades in a live account. I h...
by PD Quig
28 Aug 2013
Forum: MultiCharts
Topic: Questions on Global Variables
Replies: 9
Views: 2361

Re: Questions on Global Variables

Tried your search suggestions along with several other Google searches. Also, looked through the indices of all the books that came up in the Amazon "Easy Language TS" search... no luck.

This functionality appears to be a well-kept secret.
by PD Quig
27 Aug 2013
Forum: MultiCharts
Topic: Questions on Global Variables
Replies: 9
Views: 2361

Re: Questions on Global Variables

Good catch. I was assuming that the memory storage location had to be > 0 and read too quickly. Thanks.

BTW: If you--or anyone else--know of any sources that discuss global variable use beyond the bare bones 2.2 Word doc please advise. There really seems to be little out there.
by PD Quig
26 Aug 2013
Forum: MultiCharts
Topic: Questions on Global Variables
Replies: 9
Views: 2361

Questions on Global Variables

I'm attempting to use global variables to pass exit order conditions from one chart to another. Chart #1 calculates the spread (close Data1 - close Data2) between two instruments and launches an order for the Data1 instrument when the criteria are met. Chart #2 is basically a slave chart that contai...
by PD Quig
22 Aug 2013
Forum: MultiCharts
Topic: MC 8.7 question about T&S data
Replies: 26
Views: 2993

Re: MC 8.7 question about T&S data

Thanks, TJ. I'm aware of that function from a prior thread where you pointed me in that direction. What I'm having trouble wrapping my head around is whether using the RecalcLastBarAfter timer to poll the data1_bid / data2_ask data stream every second is responsive enough. The spread criterion to ex...
by PD Quig
22 Aug 2013
Forum: MultiCharts
Topic: MC 8.7 question about T&S data
Replies: 26
Views: 2993

Re: MC 8.7 question about T&S data

Piranha, Hey, thank you very much. It had not occurred to me to chart both data1 and data2 as three separate streams (bid, ask, trade). Lots to think about and test there. The open question is whether or not an MC strategy can execute unless a new tick event occurs? With your approach the bid+ask+tr...
by PD Quig
21 Aug 2013
Forum: MultiCharts
Topic: MC 8.7 question about T&S data
Replies: 26
Views: 2993

Re: MC 8.7 question about T&S data

I'm trading the spread between two instruments, shorting one and going long the other simultaneously (or vice versa), when the spread between the two hits a certain value. My strategy currently uses a spread calculation that is based on the last trade price of each. Normal entry and exit slippage is...
by PD Quig
02 Aug 2013
Forum: MultiCharts
Topic: Creating an instrument from calculated data [SOLVED]
Replies: 12
Views: 4604

Re: Creating an instrument from calculated data [SOLVED]

I just wrote a quick indicator to plot the price difference between two different instruments. It works fine when the plot is built from tick data on the fly, but all bars plotted before the live tick stream started plot as one big blob (from zero to the high). I understand why that happens given my...
by PD Quig
31 Jul 2013
Forum: MultiCharts
Topic: Creating an instrument from calculated data [SOLVED]
Replies: 12
Views: 4604

Re: Creating an instrument from calculated data [SOLVED]

You're probably right. I haven't done any research yet...
by PD Quig
31 Jul 2013
Forum: MultiCharts
Topic: Creating an instrument from calculated data [SOLVED]
Replies: 12
Views: 4604

Re: Creating an instrument from calculated data [SOLVED]

I know I could construct a custom instrument from the data, but that comes with the burden of having to update the data regularly and being without real-time data between updates. Not sure what I'm going to do at this point. I can use indicators that only require one price data point per bar but hav...
by PD Quig
30 Jul 2013
Forum: MultiCharts
Topic: Creating an instrument from calculated data [SOLVED]
Replies: 12
Views: 4604

Re: Creating an instrument from calculated data [SOLVED]

Great idea...that didn't occur to me. Although it still wouldn't allow applying indicators directly to the chart.
by PD Quig
26 Jul 2013
Forum: MultiCharts
Topic: Creating an instrument from calculated data [SOLVED]
Replies: 12
Views: 4604

Re: Creating an instrument from calculated data [SOLVED]

TJ, I know I can plot four points for each hour, day, etc., but I was hoping not to have to re-create candlestick or bar charting functionality, i.e., drawing small horizontal opening and closing tick trend lines, and vertical bars or bodies of the proper length and color, in order to view the data ...
by PD Quig
26 Jul 2013
Forum: MultiCharts
Topic: Creating an instrument from calculated data [SOLVED]
Replies: 12
Views: 4604

Re: Creating an instrument from calculated data [SOLVED]

Agreed, but if I want to chart those four points as a candle on a chart?
by PD Quig
26 Jul 2013
Forum: MultiCharts
Topic: Creating an instrument from calculated data [SOLVED]
Replies: 12
Views: 4604

Creating an instrument from calculated data [SOLVED]

I've got a strategy that trades the price delta between two instruments. Right now the delta is an indicator that plots as a line but I want to apply some studies to it that require OLHC data points to calculate. Is there any way to create to this on the fly or do I have to construct a custom instru...
by PD Quig
24 Jul 2013
Forum: MultiCharts
Topic: Capturing the last entry price using IOG on a daily chart [SOLVED]
Replies: 2
Views: 1112

Re: Capturing the last entry price using IOG on a daily char [SOLVED]

Thanks, TJ.

PosTradeEntryPrice was just what the doctor ordered--one new line of code solved it.
by PD Quig
23 Jul 2013
Forum: MultiCharts
Topic: Capturing the last entry price using IOG on a daily chart [SOLVED]
Replies: 2
Views: 1112

Capturing the last entry price using IOG on a daily chart [SOLVED]

I have a proprietary swing indicator that I am applying to a daily chart that will cause entries at multiple levels within the same day or across several days (see attached pic). I am attempting to add a test to ensure that each long entry is lower than the prior entry (and higher for shorts). This ...
by PD Quig
03 Jul 2013
Forum: MultiCharts
Topic: Two signals on one chart--unexpected results [SOLVED]
Replies: 4
Views: 2568

Re: Two signals on one chart--unexpected results [SOLVED]

I knew that! Just had a glass of wine too many last night! :-)
by PD Quig
03 Jul 2013
Forum: MultiCharts
Topic: Two signals on one chart--unexpected results [SOLVED]
Replies: 4
Views: 2568

Re: Two signals on one chart--unexpected results [SOLVED]

Thanks, Henry, but I decided to combine the two signals rather than try to understand the interplay between the two signals running independently. It now works as expected.
by PD Quig
02 Jul 2013
Forum: MultiCharts
Topic: Two signals on one chart--unexpected results [SOLVED]
Replies: 4
Views: 2568

Two signals on one chart--unexpected results [SOLVED]

I'm using both a long- and short strategy on the same chart. This morning, the short strategy was short three contracts when the criteria were met for a long entry of two contracts. The expected result was that 1) the three contract short position would be covered and 2) a two contract long position...
by PD Quig
16 May 2013
Forum: MultiCharts
Topic: Session template not applied to instrument [SOLVED]
Replies: 3
Views: 2345

Re: Session template not applied to instrument [SOLVED]

Thanks Henry. After I thought about it a while longer--but after I'd logged the post--I realized that the daily bars probably contained just four data points. No tweaking of the session would make any difference. Thanks for the detailed answer about the nature and implications of changing data granu...
by PD Quig
14 May 2013
Forum: MultiCharts
Topic: Session template not applied to instrument [SOLVED]
Replies: 3
Views: 2345

Session template not applied to instrument [SOLVED]

I have a strategy that I've applied to a daily chart that executes EOD. Unfortunately, in the case of this chart EOD = 23:59 and I'm an early to bed / early to rise kind of guy. I have tried several things to get the bars to close at 18:00 so I can backtest results with a more realistic execution ti...
by PD Quig
24 Apr 2013
Forum: MultiCharts
Topic: .sef file import problem [SOLVED]
Replies: 6
Views: 1647

Re: .sef file import problem [SOLVED]

The MC 8.0 machine on which the code was compiled was Build 5603...not 5622. I was able to rename and import it successfully. I did a clean re-install of 8.0 (5622) and recompiled / exported and everything worked...but that may not have been the problem. It turns out that my friend had tried to do a...
by PD Quig
23 Apr 2013
Forum: MultiCharts
Topic: .sef file import problem [SOLVED]
Replies: 6
Views: 1647

Re: .sef file import problem [SOLVED]

Thanks: I should have mentioned that his version is also 64-bit.
by PD Quig
23 Apr 2013
Forum: MultiCharts
Topic: .sef file import problem [SOLVED]
Replies: 6
Views: 1647

Re: .sef file import problem [SOLVED]

It's 64-bit, Henry.
by PD Quig
21 Apr 2013
Forum: MultiCharts
Topic: .sef file import problem [SOLVED]
Replies: 6
Views: 1647

.sef file import problem [SOLVED]

I have a simple indicator that was created and compiled on MC 8.5 (6744) that I'm trying to share with somebody who is still on MC 8.0 (5622). Here is how I attempted to share the code: 1. I copied the compiled code from the MC 8.5 PL editor and pasted it into a Word document. 2. I copied the code f...
by PD Quig
13 Apr 2013
Forum: MultiCharts
Topic: Trendlines and text misbehave on tick charts
Replies: 17
Views: 1396

Re: Trendlines and text misbehave on tick charts

It appears that running in replay mode causes GetAppinfo(aiRealTimeCalc) to return a value of 1.00 even though there is no connection to a live data stream. Is this as designed? Seems odd, if so. Also reduces the utility of replay mode because the following code causes the position to exit as soon a...
by PD Quig
12 Apr 2013
Forum: MultiCharts
Topic: Trendlines and text misbehave on tick charts
Replies: 17
Views: 1396

Re: Trendlines and text misbehave on tick charts

Thanks Henry and TJ.

I was flailing around with RecalcLastBarAfter but your code snip is clean and simple. I've tested it number of times and it works yet it does seem to lag by 5-8 secs so I'll have to build in a buffer.

Thanks again, guys!
by PD Quig
11 Apr 2013
Forum: MultiCharts
Topic: Trendlines and text misbehave on tick charts
Replies: 17
Views: 1396

Re: Trendlines and text misbehave on tick charts

Sorry to be a drone on this one subject, but I now realize that there is another facet to the EOD exit issues I was experiencing on tick charts. Call me slow, but I finally realized that when using statements like: if currenttime_s >= 160000 then sell currentshares this bar; or, if time_s >= 160000 ...
by PD Quig
10 Apr 2013
Forum: MultiCharts
Topic: Trendlines and text misbehave on tick charts
Replies: 17
Views: 1396

Re: Trendlines and text misbehave on tick charts

Dropping the "once" that I added yesterday while fiddling around did, indeed, fix the problem. What I don't understand, however, is why it didn't work: all the execution code for the real strategy is embedded within a begin/end loop that only operates on the current day forward . That loop...
by PD Quig
10 Apr 2013
Forum: MultiCharts
Topic: Trendlines and text misbehave on tick charts
Replies: 17
Views: 1396

Re: Trendlines and text misbehave on tick charts

I just added that yesterday while throwing ideas at the wall. It is redundant I guess.
by PD Quig
10 Apr 2013
Forum: MultiCharts
Topic: Trendlines and text misbehave on tick charts
Replies: 17
Views: 1396

Re: Trendlines and text misbehave on tick charts

All my trendlines work perfectly now, but my open position still failed to close EOD after switching to time_s and currenttime_s. To debug, I reduced the code down to just a simple market order entry and the EOD exit code I'm using: [IntrabarOrderGeneration = true]; [LegacyColorValue = true]; //****...
by PD Quig
09 Apr 2013
Forum: MultiCharts
Topic: Trendlines and text misbehave on tick charts
Replies: 17
Views: 1396

Re: Trendlines and text misbehave on tick charts

Ahhhhhh.

Makes sense. Thank you, swami.
by PD Quig
09 Apr 2013
Forum: MultiCharts
Topic: Trendlines and text misbehave on tick charts
Replies: 17
Views: 1396

Re: Trendlines and text misbehave on tick charts

Thanks, TJ, I'll check it out. I'll post back if I figure out the EOD exit problem.
by PD Quig
09 Apr 2013
Forum: MultiCharts
Topic: Trendlines and text misbehave on tick charts
Replies: 17
Views: 1396

Trendlines and text misbehave on tick charts

I've got a strategy that also plots fib levels, entry, stop, target, etc. trendlines on the chart so I can see what it's thinking. It was originally developed for use on minute charts, but I recently discovered that its results are better when I use it on a tick chart. As designed, on the minute cha...
by PD Quig
07 Mar 2013
Forum: MultiCharts
Topic: Are 8.5 .sef files backward compatible?
Replies: 1
Views: 588

Are 8.5 .sef files backward compatible?

I just shared an .sef created in 8.5 with a colleague and he reported that he was unable to import it. He is using 8.0 (5622). Is this correct or might there be an operator error? I'd do a chat with MC, but it's after hours and I thought the assembled multitude might have a quick answer. Thanks in a...
by PD Quig
03 Mar 2013
Forum: MultiCharts
Topic: Plot Paint Bar Issue [SOLVED]
Replies: 3
Views: 1125

Re: Plot Paint Bar Issue [SOLVED]

Thanks TJ! (I tried to use the "thumbs up" on your reply but got a fatal error, so I'm thanking you the old-fashioned way). Here's where my code ended up after viewing your suggested link. Clean and works. //******************************************************************************** /...
by PD Quig
03 Mar 2013
Forum: MultiCharts
Topic: Plot Paint Bar Issue [SOLVED]
Replies: 3
Views: 1125

Plot Paint Bar Issue [SOLVED]

I am trying to create a simple paint bar study for a moving average filter. When the three EMAs (13, 34, 255) are stacked in the proper order for a long entry (shorter EMAs above longer EMAs), I want the bar to be painted BLUE. For some reason not obvious to me all the bars get painted blue whether ...
by PD Quig
02 Feb 2013
Forum: MultiCharts
Topic: sell shares at current bar vs next bar
Replies: 11
Views: 1478

Re: sell shares at current bar vs next bar

What causes this radio button ("Allow unlimited entries and exits per bar") to reset to the default ("Limit this signal to one entry and one exit per bar")? I have been testing some IOG strategies the last few days that require unlimited exits. Every now and then I will find that...
by PD Quig
30 Jan 2013
Forum: MultiCharts
Topic: Using an indicator change strategy profit targets
Replies: 8
Views: 1033

Re: Using an indicator change strategy profit targets

Thanks NW, but I don't want to expose my exit orders to the market. I want them held locally until the price is hit and then released--knowing that there may be a slippage penalty to be paid for the stealth. It would be great if MC would implement that option (stealth orders) in Chart Trading. BTW: ...
by PD Quig
29 Jan 2013
Forum: MultiCharts
Topic: Using an indicator change strategy profit targets
Replies: 8
Views: 1033

Re: Using an indicator change strategy profit targets

Thanks for the links, TJ. I'll check them out.
by PD Quig
29 Jan 2013
Forum: MultiCharts
Topic: Using an indicator change strategy profit targets
Replies: 8
Views: 1033

Re: Using an indicator change strategy profit targets

Andrew,

I don't need to change a strategy input: I need to update the value of a strategy variable that when present overrides the strategy target input. Sounds like it might be able to do that.

PDQ
by PD Quig
28 Jan 2013
Forum: MultiCharts
Topic: Using an indicator change strategy profit targets
Replies: 8
Views: 1033

Using an indicator change strategy profit targets

Has anybody experimented with using an indicator to feed override changes to profit target(s) to a strategy that is running live? Rather than turning off the automation, making changes to the strategy inputs, and then turning the automation back on, I have been thinking about using an indicator to d...
by PD Quig
22 Dec 2012
Forum: MultiCharts
Topic: Sample code for moving trendlines
Replies: 7
Views: 1262

Re: Sample code for moving trendlines

Just checking in during a break from some brandy eggnog and Christmas present wrapping, and saw your post. I'll dig into your links tomorrow, but for now just wanted to say that I appreciate your input. Thanks again!
by PD Quig
21 Dec 2012
Forum: MultiCharts
Topic: Sample code for moving trendlines
Replies: 7
Views: 1262

Re: Sample code for moving trendlines

I spent a couple of hours poring over the Easy Language reference guide and determined that there was reason to believe management of TL's after creation might have some tricks to it (checking for the existence of a TL before trying to reference it in subsequent code, error trapping, etc.) that migh...
by PD Quig
21 Dec 2012
Forum: MultiCharts
Topic: Sample code for moving trendlines
Replies: 7
Views: 1262

Re: Sample code for moving trendlines

As the moderator of a software user forum—a forum that has as its sole purpose the sharing of good ideas, expertise, tips, tricks, and best practices—your response to an honest request for help is “read the f*cking manual”? Really? How about this: some people derive satisfaction from spending hours ...
by PD Quig
21 Dec 2012
Forum: MultiCharts
Topic: Sample code for moving trendlines
Replies: 7
Views: 1262

Re: Sample code for moving trendlines

And a happy holidays to you, too.
by PD Quig
21 Dec 2012
Forum: MultiCharts
Topic: Sample code for moving trendlines
Replies: 7
Views: 1262

Sample code for moving trendlines

I would appreciate it if any of the assembled multitude here on the forum could offer up a code sample that demonstrates how to move (i.e., delete existing and re-draw new) trendlines. My goal is to auto-create Fibonacci retracements that adjust themselves as the endpoint price moves. I know how to ...
by PD Quig
17 Sep 2012
Forum: MultiCharts
Topic: Setting the color of all text labels on a chart to one color [SOLVED]
Replies: 9
Views: 878

Re: Setting the color of all text labels on a chart to one c [SOLVED]

Never mind...D'oh!

I finally de-fogged and saw what you meant: use High_text and Low_text as the IDs

Thanks, TJ!
by PD Quig
17 Sep 2012
Forum: MultiCharts
Topic: Setting the color of all text labels on a chart to one color [SOLVED]
Replies: 9
Views: 878

Re: Setting the color of all text labels on a chart to one c [SOLVED]

I borrowed this code. I have done very little coding for drawing and text objects and all based on the same borrowed code. When I do a Format Objects>Drawings I see text objects numbered up to 68. I thought the "Number" property of that grid referred to the ID of the text object. Apparentl...
by PD Quig
17 Sep 2012
Forum: MultiCharts
Topic: Setting the color of all text labels on a chart to one color [SOLVED]
Replies: 9
Views: 878

Re: Setting the color of all text labels on a chart to one c [SOLVED]

It was arbitrary: the Text_SetColor function requires two input parameters, ID and color. I didn't find any other function or sample code showing how to set the color for all text objects. Seems like it ought to be easy.
by PD Quig
17 Sep 2012
Forum: MultiCharts
Topic: Setting the color of all text labels on a chart to one color [SOLVED]
Replies: 9
Views: 878

Re: Setting the color of all text labels on a chart to one c [SOLVED]

I guess I wasn't clear: there are two text label objects IDs per day (High_text and Low_text). If the chart has ten days of data, there will be twenty text objects. If the chart has 30 days of data there will be sixty text objects. The objective is to set all the text objects to color=blue when the ...
by PD Quig
17 Sep 2012
Forum: MultiCharts
Topic: Setting the color of all text labels on a chart to one color [SOLVED]
Replies: 9
Views: 878

Setting the color of all text labels on a chart to one color [SOLVED]

The Text_SetColor function requires a text ID to set the color of an object, but my code draws two lines every day with price labels for each line. I'm looking for the easiest way to make all these labels blue instead of the default cyan. This code below changes only the first day's labels after whi...
by PD Quig
13 Sep 2012
Forum: MultiCharts
Topic: Stop Trading After Daily Gain = {input value}
Replies: 3
Views: 601

Re: Stop Trading After Daily Gain = {input value}

Thanks very much for the response. I would have thought that there would be a more direct method of accessing brokerage account data directly from within the strategy without the added overhead--and opportunity for breakage/errors--of creating an intermediary indicator to get the data and then pass ...
by PD Quig
12 Sep 2012
Forum: MultiCharts
Topic: Stop Trading After Daily Gain = {input value}
Replies: 3
Views: 601

Stop Trading After Daily Gain = {input value}

I've done some searching but am not clear which functions can be used in a strategy in real time and which cannot. Objective: I want a strategy to stop trading for the day when total equity (closed P&L + open position P&L) > {input value} Evidently MC does yet not support "GetTodaysRTTr...
by PD Quig
30 May 2012
Forum: MultiCharts
Topic: Trend lines not appearing on chart
Replies: 15
Views: 861

Re: Trend lines not appearing on chart

Thanks TJ. Just got off a chat with Customer Service. The problem was that unless the instrument is selected on the scale, the indicator reverts to "User Defined" and breaks the scale relationship. Tricky little bugger. I appreciate your help.
by PD Quig
30 May 2012
Forum: MultiCharts
Topic: Trend lines not appearing on chart
Replies: 15
Views: 861

Re: Trend lines not appearing on chart

SP, TJ, Thanks. Tried that, but still no go. All objects are assigned to SubChart #1. The problem is that for some reason the trendlines and indicator are plotted using two different scales--so they don't line up--making the trendlines worthless. I can't figure out what combination of settings will ...
by PD Quig
29 May 2012
Forum: MultiCharts
Topic: Trend lines not appearing on chart
Replies: 15
Views: 861

Re: Trend lines not appearing on chart

They were all on SubChart #1 at first and I have returned them back to SubChart #1. Here is a picture. The yellow indicator's scale is on the right and the instruments' scale is on the left, with the trendlines way down at the bottom. If they are all on SubChart #1 why doesn't the indicator show dow...
by PD Quig
29 May 2012
Forum: MultiCharts
Topic: Trend lines not appearing on chart
Replies: 15
Views: 861

Re: Trend lines not appearing on chart

Well, fer Chrissakes TJ, I found the "missing" trendlines: they are plotting....just not where I could see them. The default scaling was set to "Screen" and the TF plot would fill the screen. When I set the scaling to "User Defined" and changed the minimum to a value lo...
by PD Quig
29 May 2012
Forum: MultiCharts
Topic: Trend lines not appearing on chart
Replies: 15
Views: 861

Re: Trend lines not appearing on chart

No luck...
by PD Quig
29 May 2012
Forum: MultiCharts
Topic: Trend lines not appearing on chart
Replies: 15
Views: 861

Re: Trend lines not appearing on chart

instruments: TF (data1) and EMD (data2)
chart resolution: 1 minute
by PD Quig
29 May 2012
Forum: MultiCharts
Topic: Trend lines not appearing on chart
Replies: 15
Views: 861

Re: Trend lines not appearing on chart

Here's the code to plot the trendlines. Haven't even begun working on the guts of the strategy...was just trying to get the basics in place first: //***************************************************************************** // inputs and variable initialization section //*************************...
by PD Quig
29 May 2012
Forum: MultiCharts
Topic: Trend lines not appearing on chart
Replies: 15
Views: 861

Trend lines not appearing on chart

I'm using two data streams to calculate an indicator and then plotting the indicator on the chart. Even though I'm displaying data1, data2, and the indicator all on SubChart #1, a simple horizontal trendline that I'm also calculating does not plot. When I go to Format Objects>Drawings the trendline ...
by PD Quig
23 May 2012
Forum: MultiCharts
Topic: Adding a linear regression (best fit) line to an indicator [SOLVED]
Replies: 1
Views: 485

Adding a linear regression (best fit) line to an indicator [SOLVED]

Does MC (or anybody else?) have any code samples for feeding indicator data into the LinearReg function? I've got a custom indicator to which I'd like to apply a best fit line and have been chasing my tail. Any help or references would be hugely appreciated.
by PD Quig
22 May 2012
Forum: MultiCharts
Topic: Multicharts 6.01 official release feedback
Replies: 79
Views: 8388

Re: Multicharts 6.01 official release feedback

What if the primary data is a live feed and the second data set is NOT live (overnight data from a 3rd party) ..?? Dear evanscje, The script will not be calculated correctly in real-time if the second data series has no real-time data. You can use one data stream and use the values from the second ...
by PD Quig
08 Feb 2011
Forum: MultiCharts
Topic: Misunderstanding Intrabar Order Generation code?
Replies: 3
Views: 379

Re: Misunderstanding Intrabar Order Generation code?

TJ,

It finally occurred to me to use intrabarpersist on BBFlag. Worked. Thanks for your help just the same...

PD
by PD Quig
08 Feb 2011
Forum: MultiCharts
Topic: Misunderstanding Intrabar Order Generation code?
Replies: 3
Views: 379

Re: Misunderstanding Intrabar Order Generation code?

I want the default behavior to use BB tag entries at the start of every day. I just now changed it so it is initialized it to 'false' (since I'm setting it to 'true' the first bar of every day). Same results. I tried commenting out the statement that sets the flag to 'true.' That didn't work either....
by PD Quig
07 Feb 2011
Forum: MultiCharts
Topic: Misunderstanding Intrabar Order Generation code?
Replies: 3
Views: 379

Misunderstanding Intrabar Order Generation code?

I've written an IOG strategy that enters positions based on Bollinger Band tags (short at the upper band / long at the lower band) that works fine. Today I attempted to add a stop & reverse feature for when price begins to walk the bands--going against the open position. The attached, distilled ...
by PD Quig
17 Jan 2011
Forum: MultiCharts
Topic: Relative bars using Intrabar Order Generation
Replies: 2
Views: 316

Re: Relative bars using Intrabar Order Generation

Thanks TJ. Got it. I appreciate the help and the syntax correction.
by PD Quig
17 Jan 2011
Forum: MultiCharts
Topic: Relative bars using Intrabar Order Generation
Replies: 2
Views: 316

Relative bars using Intrabar Order Generation

I’ve written a system that oscillates long and short between support and resistance values that are recalculated dynamically. I am getting the intrabar entries and exits I expected, but being the first time I’ve used Intrabar Order Generation, I am not clear on how to track events happening on speci...
by PD Quig
12 Jul 2010
Forum: MultiCharts
Topic: TS 9 will be very tough for MC to be compatible
Replies: 13
Views: 2805

TS's main problem isn't their platform

TS's main problem is that they want to make money off of their ridiculously weak brokerage arm. By failing to support easy integration to IB and other real brokers, TS has chosen to improve their platform while leaving their users unable to successfully execute their strategies. What is the value of...
by PD Quig
30 Apr 2010
Forum: MultiCharts
Topic: Multicharts 6.0 Beta 3 feedback
Replies: 185
Views: 39136

Had MC 6.0 b3 running with data from TS in testing today. When I went to shut down I got a message that MC was updating historical data. This message hung and was still displaying several hours later when I returned. I had to kill the process with Task Manager (see attached screenshot) Windows XP Pr...
by PD Quig
29 Apr 2010
Forum: MultiCharts
Topic: Multiple instances of Multicharts?
Replies: 16
Views: 2656

TS, Multicharts and IB TWS configurations

I’m trying to determine the configuration possibilities that exist between TS, Multicharts and IB TWS. Currently I have one TS login, a single lifetime Multicharts license, and a Friends and Family account with IB with four subaccounts beneath it. I’m doing all my autotrading on a single desktop mac...
by PD Quig
29 Apr 2010
Forum: MultiCharts
Topic: Multiple instances of Multicharts?
Replies: 16
Views: 2656

Discussion Forum entry form is user hostile

I just wrote up a lengthy post and when I submitted it, I was informed that because it included the word "L i n k" (actually I used "TWSL i n k") my post was forbidden to combat spam. I even did a Preview and this feedback was NOT provided on Preview. Fine if you want to fight spam, but you complete...
by PD Quig
27 Apr 2010
Forum: MultiCharts
Topic: IB Gateway
Replies: 28
Views: 7083

Thanks Bruce- Wow those dual wan router prices are great, looks like $100 would do it. After further checking them out, most do not offer wireless with dual Lan, that's unfortunate. The one that did, had many complaints of disconnects. I guess my search will continue. I need reliability. I've been ...

Go to advanced search