Search found 2195 matches

by JoshM
29 Aug 2015
Forum: MultiCharts .NET
Topic: any chance of having this coded for .NET? [SOLVED]
Replies: 24
Views: 11387

Re: any chance of having this coded for .NET? [SOLVED]

I think you've sent the wrong file. Shouldn't it be version 3? I'm saying this because it has the same label bug. Yes, it's the correct .pln file. Sorry, but I'm not seeing the label issue on MultiCharts .NET64 Version 9.0 Release (Build 10362). I did see something else that I couldn't explain with...
by JoshM
28 Aug 2015
Forum: MultiCharts .NET
Topic: any chance of having this coded for .NET? [SOLVED]
Replies: 24
Views: 11387

Re: any chance of having this coded for .NET? [SOLVED]

New version:
sessions-ohlc-v2.pln
(4.42 KiB) Downloaded 643 times
I couldn't find an error with it on my side, hopefully it's the same for you.

Have a nice weekend, :)
by JoshM
27 Aug 2015
Forum: MultiCharts .NET
Topic: any chance of having this coded for .NET? [SOLVED]
Replies: 24
Views: 11387

Re: any chance of having this coded for .NET? [SOLVED]

Sorry for making this way too more complicate than originally sounded :( That's not a problem, I made the coding error not you. ;) Anyway, I've fixed/changed: - Inputs to combine overnight and 24hour data (as mentioned in an earlier post), - Fixed the label that was missing (thanks for the video, t...
by JoshM
27 Aug 2015
Forum: MultiCharts .NET
Topic: any chance of having this coded for .NET? [SOLVED]
Replies: 24
Views: 11387

Re: any chance of having this coded for .NET? [SOLVED]

Thanks for the additional information and ES data; I think I fixed this error now. It now looks like this: http://www.multicharts.com/discussion/download/file.php?id=9126 sessions-ohlc-v2.pln I hope it works for you now like you intended. I also added an additional input for specifying the close tim...
by JoshM
26 Aug 2015
Forum: MultiCharts .NET
Topic: any chance of having this coded for .NET? [SOLVED]
Replies: 24
Views: 11387

Re: any chance of having this coded for .NET? [SOLVED]

The first chart is a 5min one and the second is a 15min. The time template I'm using is this http://www.multicharts.com/discussion/download/file.php?id=9118 With that template, on a 5 minute chart set to exchange time, and the indicator set to 8:30 till 16:15 I don't have that error: http://www.mul...
by JoshM
25 Aug 2015
Forum: MultiCharts .NET
Topic: any chance of having this coded for .NET? [SOLVED]
Replies: 24
Views: 11387

Re: any chance of having this coded for .NET? [SOLVED]

What resolution are you using with those screenshots? Then I can replicate it here. By the way, if you have a non-time based resolution it's unfortunately not possible to retrieve the exact closing time of 16:15 since an indicator can only access the bar's closing time (not the ticks inside the bar)...
by JoshM
25 Aug 2015
Forum: MultiCharts .NET
Topic: Comparing Volume of bar today relative to yesterday
Replies: 1
Views: 1576

Re: Comparing Volume of bar today relative to yesterday

I think that, if you have a time based chart (so every day the same amount of bars), you can count the number of bars between today's bar and yesterday's bar with the same time. Then use `Bars.FullSymbolData.Ticks[x]` to get the volume from yesterday and compare it to the current bar.
by JoshM
25 Aug 2015
Forum: MultiCharts .NET
Topic: any chance of having this coded for .NET? [SOLVED]
Replies: 24
Views: 11387

Re: any chance of having this coded for .NET? [SOLVED]

I see that you are also making the lines start plotting only when today's trading day starts, not plotting them for the prior days (I love that), although you should give the option to show the lines on previous days since there are traders that need to see them. Yes, that's possible but traders wi...
by JoshM
25 Aug 2015
Forum: MultiCharts
Topic: Multiple Entries possible with automated order Strategies?
Replies: 2
Views: 1689

Re: Multiple Entries possible with automated order Strategie

- on a single click, enter several limit buy orders below the market. For example, at a single click or hot-key, enter limit buy orders at 1909, 1908, 1907, 1906 and 1905 Yes, you could use mouse clicks for that. For example (untested): // Submit the orders with a mouse click and shift on the chart...
by JoshM
24 Aug 2015
Forum: MultiCharts .NET
Topic: any chance of having this coded for .NET? [SOLVED]
Replies: 24
Views: 11387

Re: any chance of having this coded for .NET? [SOLVED]

Here is another basic study that everyone should have in their chart platform. A study that plots the OHLC, namely yesterday's RTH high, low, close, yesterday's full day high and low, today's overnight high and low and also today's RTH high, low and open. I'm pretty far in terms of progress, but I'...
by JoshM
22 Aug 2015
Forum: MultiCharts .NET
Topic: MULTICHARTS .NET 9.1 BETA 2
Replies: 6
Views: 3670

Re: MULTICHARTS .NET 9.1 BETA 2

On MultiCharts .NET64 Version 9.1 Beta 2 (Build 11616) I get the following chart when I use `IPlotObject.Reset()` on all bars between the two blue arrows: http://www.multicharts.com/discussion/download/file.php?id=9103 Is this expected behaviour? I thought that the behaviour would be different now (...
by JoshM
22 Aug 2015
Forum: MultiCharts
Topic: MC chart latency issues
Replies: 2
Views: 1342

Re: MC chart latency issues

I'm just trying to be helpful; but don't some negative values above (...) 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 not; my apology. I think you're right. `DateTime_bar_update` returns the t...
by JoshM
22 Aug 2015
Forum: MultiCharts
Topic: Risk reward indicator on chart
Replies: 6
Views: 2935

Re: Risk reward indicator on chart

I think this will be possible to code when we can access the Order and Position Tracker data in PowerLanguage. Without that, I don't see a way to retrieve open orders in PowerLanguage.
by JoshM
19 Aug 2015
Forum: MultiCharts .NET
Topic: any chance of having this coded for .NET? [SOLVED]
Replies: 24
Views: 11387

Re: any chance of having this coded for .NET? [SOLVED]

I'll try to code this for you if it's not urgent (I'm working on another script that I want to finish first, so I won't start working on it right away). I'll let you know the progress on this 'session OHLC' indicator.
by JoshM
18 Aug 2015
Forum: MultiCharts
Topic: Orders/Conditions with values [SOLVED]
Replies: 12
Views: 3216

Re: Orders/Conditions with values [SOLVED]

I have made the changes but no buy arrows/ticks show up on the chart indicating a buy would have been made on the backtest, even though the values would have been hit on several occasions. Thank you so much for your continued help. This is the latest version of the buy value11 = (var11+0.06) ; valu...
by JoshM
18 Aug 2015
Forum: MultiCharts .NET
Topic: System.IO.FileNotFoundException [SOLVED]
Replies: 4
Views: 3626

Re: System.IO.FileNotFoundException [SOLVED]

perfectly works as intended on subcharts. Not if I put it on the main chart.Thanks For me the code also works on subchart. If you move the indicator from the main chart to the subchart, did you also turned if off and back on again? If I move the indicator from the main chart to the subchart, nothin...
by JoshM
16 Aug 2015
Forum: MultiCharts
Topic: Connect Multicharts to IB without TWS [SOLVED]
Replies: 6
Views: 3089

Re: Connect Multicharts to IB without TWS [SOLVED]

Problem solved , thanks
How did you solve the problem? That might help other people that are looking for the same thing.
by JoshM
16 Aug 2015
Forum: MultiCharts
Topic: connection with IB Gateway
Replies: 1
Views: 880

Re: connection with IB Gateway

But the column of Historical Data Farm was high-lighted in red with disconnected status.

is it normal?
It might be normal. See IB system status for their status and scheduled offline times.
by JoshM
16 Aug 2015
Forum: MultiCharts
Topic: Bars Since Entry issues in portfolio backtester
Replies: 8
Views: 3086

Re: Bars Since Entry issues in portfolio backtester

This works perfectly in a single chart however 'BarsSinceEntry' creates massive problems in portfolio backtester. It requires me to ensure the maxbarsback setting is as long as BarsSinceEntry, and therefore I cannot properly test the strategy over, for example 5 years, in portfolio backtester (beca...
by JoshM
15 Aug 2015
Forum: MultiCharts
Topic: Applying standard functions to arrays
Replies: 3
Views: 1652

Re: Applying standard functions to arrays

I would like to add values to an array based on whether a condition is true. So only when the condition is true, do I want to add any values into an array. Then, once the values are stored in the array, I would like to apply some of the standard analysis techniques to that conditional data array. T...
by JoshM
12 Aug 2015
Forum: MultiCharts
Topic: Floating Text Box on Chart [SOLVED]
Replies: 6
Views: 2197

Re: Floating Text Box on Chart [SOLVED]

The text box plot is always "0" ... regardless of conditions. You're using NumToStr() to convert the value of Plot1 to a string in the script. However, Plot1 is not set to a number but is a string. I'd suggest using a string variable and using that variable to set Plot1 and the text box (so no NumT...
by JoshM
10 Aug 2015
Forum: MultiCharts
Topic: Floating Text Box on Chart [SOLVED]
Replies: 6
Views: 2197

Re: Floating Text Box on Chart [SOLVED]

Here is my unsuccesful attempt to plot text:
At first glance, the required code is there. What makes this an "unsuccessful attempt"? Please be specific, that makes helping easier. :)
by JoshM
05 Aug 2015
Forum: MultiCharts .NET
Topic: set chart to show only the last 3600 seconds
Replies: 2
Views: 1702

Re: set chart to show only the last 3600 seconds

so my question is how set a chart based on 1 second resolution to hold only one hour of data? Hm. Setting the instrument to bid or ask to ensure that there is an update every second is not an option? Otherwise, I would create an indicator that would plot price bars and add that indicator to a one-s...
by JoshM
04 Aug 2015
Forum: MultiCharts
Topic: portfolio trader code help [SOLVED]
Replies: 11
Views: 3328

Re: portfolio trader code help [SOLVED]

JoshM thank you very much, your code works and i didn't knew anything about the possibility to separate different calc reasons. Without your help i would be stuck with that problem for a long time.
I'm glad I could help. If you need more help, just open a new topic.
by JoshM
03 Aug 2015
Forum: MultiCharts
Topic: portfolio trader code help [SOLVED]
Replies: 11
Views: 3328

Re: portfolio trader code help [SOLVED]

So the logical consequence of that is to follow the example of the help https://www.multicharts.com/trading-software/index.php/RecalcLastBarAfter page and start the recalc in the last bar and of course it works, infact it re-calculate the entire script every 5 seconds, and it has no problem to perf...
by JoshM
02 Aug 2015
Forum: MultiCharts
Topic: portfolio trader code help [SOLVED]
Replies: 11
Views: 3328

Re: portfolio trader code help [SOLVED]

If recalclastbarafter is always active on the instrument it is very difficolut to use it for a popouse like close near the end of day, because every indicator and every calculation is re-timeframed on the parameter of the recalclastbarafter and basically it's no more a daily-based instrument. I don...
by JoshM
02 Aug 2015
Forum: MultiCharts
Topic: only calc on first pass of optimization
Replies: 5
Views: 1555

Re: only calc on first pass of optimization

it would be ideal if MC could add a new "code block" similar to "once" but had the effect that it would run the code inside of that block on every bar in the chart but only on the first pass of an optimization - then those values would remain static (on a per bar basis) and available to the rest of...
by JoshM
01 Aug 2015
Forum: MultiCharts .NET
Topic: MULTICHARTS .NET 9.1 BETA 1
Replies: 16
Views: 7025

Re: MULTICHARTS .NET 9.1 BETA 1

The beta upgraded previous release installed into D: drive. All the Power Language Editor shortcuts look for the program in the C: drive. Even just clicking on a study to import brings up the error that shows that it is looking for the Power Language Editor in the C; drive. Hm, can you launch the m...
by JoshM
31 Jul 2015
Forum: MultiCharts
Topic: Volume dn [SOLVED]
Replies: 1
Views: 1814

Re: Volume dn [SOLVED]

This is because of the difference between historical and real-time data: Historical Volume Provided by Data Vendor (...) In most cases supported data sources in MultiCharts provide only historical total tick volume, no up and down volume. For minute-based and daily-based resolutions all historical t...
by JoshM
31 Jul 2015
Forum: MultiCharts
Topic: Currency on chart trader [SOLVED]
Replies: 4
Views: 2169

Re: Currency on chart trader [SOLVED]

However when I enter a trade with chart trader, the profits are displayed in us$, and there seems to be some kind of currency conversion. I'm trading on the EUREX DAX DTB September futures. I allready have checked the currency for the exchange. That is Euro. What can I set more ? Go to 'File' and t...
by JoshM
31 Jul 2015
Forum: MultiCharts
Topic: Order rejected in Paper Trader [SOLVED]
Replies: 8
Views: 6682

Re: Order rejected in Paper Trader [SOLVED]

Does it only say 'order rejected' or are there more details in the Order and Position Tracker window (the 'Log' tab)? More details and information can help us troubleshoot this issue.
by JoshM
27 Jul 2015
Forum: MultiCharts
Topic: Multicharts portfolio trader [SOLVED]
Replies: 4
Views: 2325

Re: Multicharts portfolio trader [SOLVED]

Just right-click the Data2 field and select 'Format Instrument':

Image

That will bring up the window where you can select the instrument to be added.
by JoshM
25 Jul 2015
Forum: MultiCharts .NET
Topic: plot price and line at specific time
Replies: 3
Views: 2566

Re: plot price and line at specific time

how can i plot a line at price at a specific time for lets say the next 5 hours. for instance i want a line plotted at the open price from 9.00 on 14:00 i want a line plotted at the price level of that time etc the line should have an end time as well. So a trend line from 9:00 till 14:00 at that d...
by JoshM
23 Jul 2015
Forum: MultiCharts
Topic: Powerlanguage Indirect() Equivalent?
Replies: 3
Views: 2446

Re: Powerlanguage Indirect() Equivalent?

I've been trying to work out a way to reference variables in a strategy via merging a string and a number (rather than a variable directly) such that the variable is dynamic. For example, using "var"&numtostr(OpenEntries) to refer to var1/ var2/ var3 etc which would all be declared for the strategy...
by JoshM
22 Jul 2015
Forum: MultiCharts .NET
Topic: Keyboard shortcuts
Replies: 4
Views: 2389

Re: Keyboard shortcuts

thx saw this already - but's that's all standard keynotes .My aim is a little more specific. I just want to move a stop when in a trade - as fast as possible.You can not do this with a mouse . I think a solution must be on the programmer's side. Can you specify what your specific aim is? You can us...
by JoshM
22 Jul 2015
Forum: MultiCharts .NET
Topic: Keyboard shortcuts
Replies: 4
Views: 2389

Re: Keyboard shortcuts

one question please: Is it possible to program a keystroke , which allows you to control a stop? With up / down arrows for example ? There's a category of keyboard shortcuts called 'Trading.Custom' for orders. I'm not sure if they can control a stop like you what, but it's worth checking if they ca...
by JoshM
20 Jul 2015
Forum: MultiCharts
Topic: Open Trade Properties Re-Load on Strategy Re-Start
Replies: 2
Views: 1708

Re: Open Trade Properties Re-Load on Strategy Re-Start

I think the new Auto Trading and Backtesting engine might do this, by providing access to the historical (backtest) trades of the strategy upon restart: There is a feature scheduled for MC 9.1: https://www.multicharts.com/pm/viewissue.php?issue_no=MC-1497 With the help of this feature that will be p...
by JoshM
20 Jul 2015
Forum: MultiCharts
Topic: Is possible run individual signal for each instrument. [SOLVED]
Replies: 6
Views: 2177

Re: Is possible run individual signal for each instrument. [SOLVED]

Is possible run a signal inside a signal file ?
Unfortunately, no. But I hope I'm mistaken here.
by JoshM
20 Jul 2015
Forum: MultiCharts
Topic: natural voices
Replies: 3
Views: 1855

Re: natural voices

Can you guys share how you use 'voices' with trading? Is it only "buy now" or "sell now", or also more complex messages ("Buy 10 contracts at 134.20 with a stop-loss at 130 and a profit target at 145")? In that latter case, perhaps we can look into ways to do this programmatically. That might be a l...
by JoshM
19 Jul 2015
Forum: MultiCharts
Topic: Is possible run individual signal for each instrument. [SOLVED]
Replies: 6
Views: 2177

Re: Is possible run individual signal for each instrument. [SOLVED]

I m trying to run optimization signals for each instrument during portfolio simulation. Is possible make a association between name of instrument and signal? today I only know use one signal for all instrument or make this analsy individual. I'm not sure if I fully understand you, but perhaps like ...
by JoshM
16 Jul 2015
Forum: MultiCharts
Topic: Help with Code [SOLVED]
Replies: 3
Views: 2535

Re: Help with Code [SOLVED]

Can someone help me with this code? I am not really good in programming. Hello, See the attached indicator (source code below). I've replaced the TS methods (just copy/paste). The indicator looks like this: http://www.multicharts.com/discussion/download/file.php?id=9022 123WaveCount.pla ===========...
by JoshM
16 Jul 2015
Forum: MultiCharts .NET
Topic: MultiCharts .NET tutorials
Replies: 17
Views: 21057

Re: MultiCharts .NET tutorials

Thanks MaRCHeW for your kind words. I'm glad you find it useful!
by JoshM
16 Jul 2015
Forum: MultiCharts
Topic: Send GV to DOM
Replies: 2
Views: 1535

Re: Send GV to DOM

When i click on a stock of the list i would like to send directly the number of shares to the linked DOM. Is it possible to do it or to create a custom button to launch a macro (like Excel) ? I don't think this is possible because PowerLanguage, as far as I know, cannot notice whether or not a stoc...
by JoshM
15 Jul 2015
Forum: MultiCharts .NET
Topic: MultiCharts .NET tutorials
Replies: 17
Views: 21057

MultiCharts .NET tutorials

Hello, As you know, MultiCharts .NET is a great platform packed with terrific features. The advanced features from .NET further expand MultiCharts .NET's features, but they come at a price: PowerLanguage .NET can have a steep learning curve for non-programmers. For a while now I'm writing programmin...
by JoshM
07 Jul 2015
Forum: MultiCharts
Topic: Stock charts have stopped updating using TWS standalone
Replies: 2
Views: 1151

Re: Stock charts have stopped updating using TWS standalone

I recently took some time off and find that none of my daily charts were updating anymore, even though I can get all the symbols on IB TWS. Before 4 June, I had no problems with the charts updating. In response I have updated the stand alone TWS to the latest one (Build 950.2g) that offers an API c...
by JoshM
04 Jul 2015
Forum: MultiCharts
Topic: Order rejected
Replies: 8
Views: 3099

Re: Order rejected

it concern the symbol MINI 15I18 SEPT 2015 FUTURE CONTRACT. The italian index future. This contract didn't expired and the route is the same. Did you check the MultiCharts settings for this symbol with the data from IB (see here )? Just to rule out that IB or Borsa Italiana made some change to this...
by JoshM
03 Jul 2015
Forum: MultiCharts
Topic: backtesting problem
Replies: 1
Views: 776

Re: backtesting problem

I try to run backtest for a new strategy but it is not successful. The message as shown in the attached file was popped out. How could I solve the problem? I think your code has a problem. The error message says it expects a data series with a number of 111 to be added to the chart. I doubt we can ...
by JoshM
03 Jul 2015
Forum: MultiCharts
Topic: To execute a trade on same bar if possible [SOLVED]
Replies: 2
Views: 1450

Re: To execute a trade on same bar if possible [SOLVED]

Hi, I am trying to learn how to if possible execute all trades on the same bar instead of waiting for next one. See image. where last position should have hit target and execute on prior bar. Also in this case it stops out directly. Do not know why. Seem to be the wrong sequence trade. Do you have ...
by JoshM
03 Jul 2015
Forum: MultiCharts .NET
Topic: newbie question How to Limit number of entries per day?
Replies: 1
Views: 1820

Re: newbie question How to Limit number of entries per day?

CalcEntriesToday(DateTime.Today) but in my backtest it didn't work.. my guess is because the Datetime Object is returning todays date and backtest is on historical dates. You can use Bars.Time[0].Date to return the date of the bar that the script is currently calculated on (as opposed to today's da...
by JoshM
30 Jun 2015
Forum: MultiCharts
Topic: StopLoss and PercentTrailing Strategy
Replies: 11
Views: 2096

Re: StopLoss and PercentTrailing Strategy

What is not clear from the logic? In MC9 StopLoss market orders executed. I want to StopLoss and PercentTrailing limit order is executed.
If you already have the logic clear in mind (that is, which programming steps to take), what issue do you run into?
by JoshM
30 Jun 2015
Forum: MultiCharts
Topic: Why different results ??
Replies: 4
Views: 1425

Re: Why different results ??

Mode: TWS bektest in demo mode. There is no real trade. Do both computers have the exact same data? Since historical data may not be the same as real-time data, if one of your pc's collected real-time data while the other only has this backfilled, there might be a difference between both. Strategy:...
by JoshM
29 Jun 2015
Forum: MultiCharts
Topic: StopLoss and PercentTrailing Strategy
Replies: 11
Views: 2096

Re: StopLoss and PercentTrailing Strategy

Maybe someone found a solution ...... can somehow StopLoss and PercentTrailing indicate fulfill orders limit orders? There's an example here of stop-limit orders. StopLoss sends a Market Order. I want to send that Limit orders. If long position: SetStopLoss; Sell next bar at (Price StopLoss) limit;...
by JoshM
29 Jun 2015
Forum: MultiCharts
Topic: Entering/Exiting before session end
Replies: 7
Views: 2344

Re: Entering/Exiting before session end

wouldn't the else statement immediately executed when the C > MA(C , 200) and IOG enabled? No, because it's an if/else statement: if (someCondition = true) then begin // code to execute end else begin // code that's executed when // 'someCondition' is false end; What you're referring to is possible...
by JoshM
29 Jun 2015
Forum: MultiCharts
Topic: Entering/Exiting before session end
Replies: 7
Views: 2344

Re: Entering/Exiting before session end

What would happen with IOG enabled with following code: if Close > Averge(Close, 200) then begin Buy("LE") this bar at close; end; wouldn't it be also executed as soon as the condition = true without waiting that the daily bar is closed? That's correct, that code will be executed as soon as the con...
by JoshM
29 Jun 2015
Forum: MultiCharts
Topic: Entering/Exiting before session end
Replies: 7
Views: 2344

Re: Entering/Exiting before session end

is the condition only checked when the daily bar is closed, or is it checked in realtime? That condition is checked in real-time due to the Intra-bar order generation attribute being set to true. A few comments: * You're using `RecalcLastBarAfter()` only when the current time is greater than or equ...
by JoshM
28 Jun 2015
Forum: MultiCharts
Topic: how to switch ON/OFF text using MouseClickEvents?
Replies: 5
Views: 1773

Re: how to switch ON/OFF text using MouseClickEvents?

Strange, I'm playing back data and when I call the box, it opens but as soon a new tick comes in the box disappears. If I set RecoverDrawings = false then the box stays on the screen but I can't switch it OFF. Actually, everytime I click left or right button it creates a new box, even using John co...
by JoshM
27 Jun 2015
Forum: MultiCharts
Topic: how to switch ON/OFF text using MouseClickEvents?
Replies: 5
Views: 1773

Re: how to switch ON/OFF text using MouseClickEvents?

I'd like to be able to switch ON/OFF a text box from a chart. This was my poor attempt to get it which was... nothing :( Any help? Means "switch ON/OFF" drawing/removing (and not relocating) a text box? If so, you may try this (untested, it's already late :] ): // Create text box with Control click...
by JoshM
26 Jun 2015
Forum: MultiCharts .NET
Topic: last price line, anyone?
Replies: 17
Views: 7865

Re: last price line, anyone?

You lost me with that one, delete how? If I hit delete, I remove the study form the chart. Sorry for not being more clear. I was talking about how it's implemented programmatically; the script deletes the trend line, you don't need to do that yourself. Yes, the lag is there, it seems it not so pron...
by JoshM
25 Jun 2015
Forum: MultiCharts .NET
Topic: last price line, anyone?
Replies: 17
Views: 7865

Re: last price line, anyone?

You said that the trendline in the .NET does not have that annoying delay regarding the last price like the PL version has, correct? Like, the last price moves and the trendline only moves 1 second later or when the next tick gets in. For some people that is not a big issue, I get it, I understand,...
by JoshM
25 Jun 2015
Forum: MultiCharts .NET
Topic: last price line, anyone?
Replies: 17
Views: 7865

Re: last price line, anyone?

(I'll check later if we can workaround that, but don't have time for that now). By the way, if two trend lines are plotted on the same price, the second indicator (that's added last to the chart; green line in the image below) is placed on top of the other: http://www.multicharts.com/discussion/dow...
by JoshM
25 Jun 2015
Forum: MultiCharts .NET
Topic: last price line, anyone?
Replies: 17
Views: 7865

Re: last price line, anyone?

Thanks Henry. Although the use of a trendline on bar charts might not be a big problem, if one want to use this study with footprint charts, trendlines become a big problem because they fall on top of the text. How do you want to proceed; use an indicator with a plot send to the back (but that requi...
by JoshM
25 Jun 2015
Forum: MultiCharts .NET
Topic: Tick Data Processing [SOLVED]
Replies: 6
Views: 4799

Re: Tick Data Processing [SOLVED]

After several weeks of trying get through to someone at esignal that actually would give a damn, I managed to get direct contact with management. Just today they acknowledged data discrepancies in both their real-time feed and their historical tick data. That's an achievement in itself. :) Thanks f...
by JoshM
24 Jun 2015
Forum: MultiCharts
Topic: TWS bar timestamp
Replies: 7
Views: 2682

Re: Nice bugs in MC 9.0 r7

Ok this not bugs, this is option - TWS bar timestamp. Why need this option, if MC use other time system on close bar time ? There's a long topic about that option here . More to the point, in an earlier thread , Henry said: MultiCharts uses your PC clock time. TWS uses its own server time. You can ...
by JoshM
23 Jun 2015
Forum: MultiCharts .NET
Topic: Changing plot colour on the fly problem [SOLVED]
Replies: 5
Views: 3500

Re: Changing plot colour on the fly problem [SOLVED]

I suspect that this is expected behaviour; if I recall correctly there were also topics about this with the regular MultiCharts edition, although I cannot find them now. Anyway, try displacing the plot. I think that would give the behaviour you're after (if I understand you correctly). So change the...
by JoshM
23 Jun 2015
Forum: MultiCharts .NET
Topic: last price line, anyone?
Replies: 17
Views: 7865

Re: last price line, anyone?

Most likely because the code tries to access Bars.FullSymbolData.Current - 1 when this data is not yet available in the series. I execute `CalcBar()` for the first time on the last bar of the chart with: if (!Bars.LastBarOnChart) return; So I think that `Bars.FullSymbolData` is fully loaded by then...
by JoshM
23 Jun 2015
Forum: MultiCharts
Topic: Tick Size issue
Replies: 1
Views: 1049

Re: Tick Size issue

Odd that the rounding is not consistent (rounding to 0 or 0.01). Have you checked the price scale settings in the QuoteManager? Here's more information about the values that option can have.
by JoshM
22 Jun 2015
Forum: MultiCharts .NET
Topic: last price line, anyone?
Replies: 17
Views: 7865

Re: last price line, anyone?

I don't know how trendlines work over the .NET platform but the idea of plotting a line and not a trendline is because we can send it to the back of the bar and it updates in "realtime" when the last price changes whereas a trendline, in the standard platform,has that annoying delay... We can also ...
by JoshM
22 Jun 2015
Forum: MultiCharts .NET
Topic: last price line, anyone?
Replies: 17
Views: 7865

Re: last price line, anyone?

Plotting this study with the TPO study brings up some issues. I usually have 2 series plotted, one for RTH and the other only plotting 1 bar (today's) for the overnight alone. If I plot the last line on the overnight series the line does not extends to the left. Since there's no bars back, since I'...
by JoshM
22 Jun 2015
Forum: MultiCharts .NET
Topic: last price line, anyone?
Replies: 17
Views: 7865

Re: last price line, anyone?

I've extended the indicator a little bit by having it indicate support and resistance too (with green and red by default). I've defined 'support' as a bar that had a low lower than the recent price, but nonetheless succeeded to close above it (i.e., displayed strength). 'Resistance' is a bar that wa...
by JoshM
21 Jun 2015
Forum: MultiCharts .NET
Topic: last price line, anyone?
Replies: 17
Views: 7865

Re: last price line, anyone?

Can someone code something similar to this? (...) I don't know how trendlines work over the .NET platform but the idea of plotting a line and not a trendline is because we can send it to the back of the bar and it updates in "realtime" when the last price changes whereas a trendline, in the standar...
by JoshM
19 Jun 2015
Forum: MultiCharts
Topic: bitcoin on multicharts
Replies: 3
Views: 2975

Re: bitcoin on multicharts

You can open door to the full bitcoin community as beeing the first professional backtestting platform.. and shall maybe get a bunch of new customers.
If you want, in the meantime you can trade bitcoin CFDs through the MultiCharts supported broker AvaTrade. See here.
by JoshM
18 Jun 2015
Forum: MultiCharts
Topic: Is there hotkey available related to workspace? [SOLVED]
Replies: 3
Views: 3900

Re: Is there hotkey available related to workspace? [SOLVED]

I don't see any hotkey related to workspace, Is there any? A workspace is composed of 3 charts windows. Is it possible to scroll through these windows using hotkey combination ? Ctrl + Tab cycles through each of the charts in the workspace, while Ctrl + PgDn and Ctrl + PgUp go to the next and previ...
by JoshM
18 Jun 2015
Forum: MultiCharts
Topic: Trying to access future data [SOLVED]
Replies: 11
Views: 5395

Re: Trying to access future data [SOLVED]

I've been browsing around, and according to previous posts it should be possible to reference future bars by using for example "close[-1]". However I'm having problems and get error: "Trying to access future data. Bar reference value : -500" The code is in a function which belong to an indicator pl...
by JoshM
16 Jun 2015
Forum: MultiCharts .NET
Topic: Print error
Replies: 4
Views: 2724

Re: Print error

This means that the keywords documented in Multicharts wiki page are not available for .NET? Or at least not all of theme? That's true, the MultiCharts (PowerLanguage) keywords are different than the MultiCharts .NET keywords. Sometimes there is a resemblance between the names of keywords, but most...
by JoshM
16 Jun 2015
Forum: MultiCharts .NET
Topic: Order Notification along the lines of TS [SOLVED]
Replies: 2
Views: 2704

Re: Order Notification along the lines of TS [SOLVED]

Hi, in the TradeManager of TS, we can have it send out an email each time an order is created, canceled, filled etc. Does MC have the ability to send out emails with order notifications? Yes, if you make it yourself. The `OnBrokerPositionChange()` method, for example, is executed when the market po...
by JoshM
16 Jun 2015
Forum: MultiCharts
Topic: Last Position Direction
Replies: 1
Views: 1655

Re: Last Position Direction

What's the best way to get the last position direction? (buy/sell).
The PosTradeIsLong keyword returns whether a position was long or not. Retrieving this for the last position would be `PosTradeIsLong(1, 0)`.
by JoshM
15 Jun 2015
Forum: MultiCharts
Topic: PLOT_GetActive ???
Replies: 6
Views: 2056

Re: PLOT_GetActive ???

how to find the first left bar number of the current chart ? That's a little tricky since there is no keyword for that as far as I know. But if you want to use this for aligning the text boxes you mentioned, you can draw a text box with Text_New_DT (or any other text keyword that accepts DateTime)....
by JoshM
15 Jun 2015
Forum: MultiCharts
Topic: PLOT_GetActive ???
Replies: 6
Views: 2056

Re: PLOT_GetActive ???

I'd like to create a signal for semi-automatic trading where are plotted on a chart several different averages, and the trader can choose which media to use with a mouse click on the plot. Much more intuitive and viewable and fast that every time not having to format the signal for changing the len...
by JoshM
15 Jun 2015
Forum: User Contributed Studies and Indicator Library
Topic: Collections of EasyLanguage Scripts
Replies: 44
Views: 110229

Re: John Ehler indicators

Sorry to necro this, but is anyone else getting the error "JohnEhler STOCHASTIC RSI STRATEGY (instrument)": Study is missing Data 2. Please setup your chart data. What am I missing here? Judging from the error message you got, it seems you either don't have 2 data series (or more) on the chart. Or ...
by JoshM
15 Jun 2015
Forum: MultiCharts
Topic: PLOT_GetActive ???
Replies: 6
Views: 2056

Re: PLOT_GetActive ???

does exist something like Text_GetActive or TL_GetActive for the plots ??? I need to know the number of the active plot when clicked with the mouse on a chart. Such keywords don't exist, as far as I know. Why do you need to use the active plot number in your code? Perhaps we can think of a workarou...
by JoshM
15 Jun 2015
Forum: MultiCharts .NET
Topic: Print error
Replies: 4
Views: 2724

Re: Print error

I'm getting an error trying to output in a file. I really can't understand what's going on, the code is just so simple that I don't understand where the problem could be. I'm new to C#, and probably that is the real problem. Hello, it looks like you're trying to use PowerLanguage keywords in MultiC...
by JoshM
14 Jun 2015
Forum: MultiCharts
Topic: Workspaces DISAPPEARED during update to 9.0.11210.400.
Replies: 12
Views: 3853

Re: Workspaces DISAPPEARED during update to 9.0.11210.400.

So I put them into C:/users/scottyj/appdata/local/ts support/multicharts64, which is where I found the demo workspaces which MC opens automatically when you first buy it. Since the only two .wsp files that came with MC were in that folder, it seemed a good move at the time. I created a separate fol...
by JoshM
13 Jun 2015
Forum: MultiCharts
Topic: Seeking feedback - CQG vs Rithmic [SOLVED]
Replies: 9
Views: 5762

Re: Seeking feedback - CQG vs Rithmic [SOLVED]

I have to disagree with you on IQ feed. Other sources (they will remain unnamed here) are MUCH easier to work with and either free or cheaper. Which sources? If you mean MultiCharts-compatible data feeds, I cannot think of others. eSignal perhaps, but that's not much easier to work with (in my view).
by JoshM
12 Jun 2015
Forum: MultiCharts .NET
Topic: Portfolio Tester with large MaxBarsBack on futures [SOLVED]
Replies: 3
Views: 3271

Re: Portfolio Tester with large MaxBarsBack on futures [SOLVED]

On a chart, it is possible to use the Merge Data feature, and use a continuous future as the historical and the front month future as the realtime symbol. Brilliant! However, I am in the Portfolio Trader and the Merge Data feature is not available there. This means trading a future with day bars in...
by JoshM
10 Jun 2015
Forum: MultiCharts
Topic: Visual Alert every Entry/Exit of whatsoever signal
Replies: 2
Views: 1749

Re: Visual Alert every Entry/Exit of whatsoever signal

I am trying to set a strategy in a way that every operation (Buy/Sell) it does on chart is accompained not just with the audio alert, but also with the yellow visual alert (That I need to remain "always open" until I check on the operation). Coding with PowerLanguage I am able to generate the prope...
by JoshM
07 Jun 2015
Forum: MultiCharts
Topic: Dynamic array bounds error on market scanner [SOLVED]
Replies: 4
Views: 2657

Re: Dynamic array bounds error on market scanner [SOLVED]

I want to know how many trading days are there on a chart and how many bars are there in any of these trading days. Perhaps I misunderstand what you're trying to achieve, but at first glance I get the impression you might be complicating things by using arrays. If you want to use arrays in your pro...
by JoshM
06 Jun 2015
Forum: MultiCharts
Topic: Next Bar on Open Instead of This Bar on Close [SOLVED]
Replies: 3
Views: 2058

Re: Next Bar on Open Instead of This Bar on Close [SOLVED]

Instead, I only use "next bar". For example: - Entry - buy next bar on open; (instead of buy this bar on close) - Exit - sell next bar on open; (instead of sell this bar on close) Since it is Forex a "24/5" market, the values for "this bar on close" and "next bar on open" should be virtually indent...
by JoshM
06 Jun 2015
Forum: MultiCharts
Topic: Instrument Resolution Build From Minutes
Replies: 8
Views: 2641

Re: Instrument Resolution Build From Minutes

Next step is to manually test data activity to see if the calculations work correctly. Any advice here would be helpful. Maybe the playback? Signing off...Good night and thank you again. Data playback indeed is an option, but keep in mind that the playback speed is set by the user (e.g., 3 updates ...
by JoshM
04 Jun 2015
Forum: MultiCharts
Topic: Market if Touched order
Replies: 5
Views: 2613

Re: Market if Touched order

Alternatively, would someone point me in the right direction as how to encode MIT orders in my strategy instead of waiting for features to be voted? You could do so with market orders coupled with Intra-bar order generation, like this untested snippet: [IntraBarOrderGeneration = true]; Variables: m...
by JoshM
04 Jun 2015
Forum: MultiCharts
Topic: To recall the existing variables at any moment [SOLVED]
Replies: 3
Views: 2638

Re: To recall the existing variables at any moment [SOLVED]

Hello there, those values on the y-axis keep changing when the market is opened. I was wondering how I can recall those variables at any moment before its bars closed. For example, those values are circled in orange on the y-axis as per the screenshot, is it possible to get those values before each...
by JoshM
03 Jun 2015
Forum: MultiCharts
Topic: Setpercenttrailing / update on every tick
Replies: 1
Views: 1400

Re: Setpercenttrailing / update on every tick

Any way to make 'setpercenttrailing' update on every tick ? SetPercentTrailing already updates on every tick intra-bar, according to its wiki page : The SetPercentTrailing function is evaluated intra-bar and not only on close of a bar, and can exit within the same bar as the entry. Is there perhaps...
by JoshM
02 Jun 2015
Forum: MultiCharts .NET
Topic: StrategyInfo is not returning anything from Function Object
Replies: 12
Views: 4730

Re: StrategyInfo is not returning anything from Function Obj

4. After that I added Comment line in my indicator like //StrategyInfo and it started working. New working Indicator is below: I wouldn't be surprised if this is caused by saving and the subsequent recompiling of the script, after which the script object is re-created again on the chart. So it prob...
by JoshM
01 Jun 2015
Forum: MultiCharts
Topic: Selecting Custom Criteria for Optimization
Replies: 22
Views: 7839

Re: Selecting Custom Criteria for Optimization

Is "Custom Fitness Value" for Portfolio Backtester implemented now?
Yes, since MC 9.0 Beta 1:
Portfolio Trader now also has walk-forward optimization and custom fitness function.
(source).
by JoshM
30 May 2015
Forum: MultiCharts .NET
Topic: Set values to VariableSeries
Replies: 1
Views: 2140

Re: Set values to VariableSeries

See this code example (and the comments in it) I posted in another thread. To summarise, you can use the VariableSeries Value property set its value for the current bar.
by JoshM
26 May 2015
Forum: MultiCharts
Topic: IncludeSystem - Replaced in PowerLanguage with?
Replies: 1
Views: 1456

Re: IncludeSystem - Replaced in PowerLanguage with?

I have recently been updating the code of some old easyLanguage systems so that I can run and test and modify them using MultiCharts. Usually the fixes are simple; however, I can't seem to figure out how to replace the old easyLanguage 'IncludeSystem' syntax in PowerLanguage. I have tried substitut...
by JoshM
26 May 2015
Forum: MultiCharts .NET
Topic: Lmax histrical data quality [SOLVED]
Replies: 5
Views: 3713

Re: Lmax histrical data quality [SOLVED]

I haven't experienced problems with LMAX data like the ones you mention, but I don't track the CFDs.

Are you talking about the 'real' LMAX data feed (funded accounts) or the demo data feed? The demo has its prices generated by a bot the last time I enquired.
by JoshM
25 May 2015
Forum: MultiCharts
Topic: Can I run Auto Trading with japanese stocks? [SOLVED]
Replies: 2
Views: 1276

Re: Can I run Auto Trading with japanese stocks? [SOLVED]

But Multhchart is not running with YL trade program at japanese stocks. What is the YL trade program? Is that a 3rd party plugin? This Auto trade program is able to be running with US stocks and futures. And The running condition is very good. The buy or sell order and exit order,stop order is runn...
by JoshM
24 May 2015
Forum: MultiCharts
Topic: MC for tws
Replies: 2
Views: 1364

Re: MC for tws

in the "compare edition" page of your site, i can't see the TWS version. is there something missing or is this a full version? MultiCharts for TWS is the regular MultiCharts version except for the following differences: Only uses IB data and trading capabilities, No QuoteManager, No Portfolio Backt...
by JoshM
24 May 2015
Forum: MultiCharts
Topic: Fundamental data on Multicharts scanner
Replies: 5
Views: 3083

Re: Fundamental data on Multicharts scanner

This doesn't seem to be available, unfortunately. This feature request, which asks for COT, earnings estimates, and fundamental data to be included, has been around for a while now but not confirmed or scheduled for a particular version.
by JoshM
22 May 2015
Forum: MultiCharts
Topic: CPU Usage During Optimization
Replies: 9
Views: 22668

Re: CPU Usage During Optimization

* are there any improvements planned for future MultiCharts versions? I can only guess from the outside looking in, but the feature request to have higher optimisation and backtesting speed by implementing new technology such as GPU calculation has been declined earlier this week: MC-1735 - Hope MC...
by JoshM
22 May 2015
Forum: MultiCharts .NET
Topic: How to increase the array size of a VariableSeries Object? [SOLVED]
Replies: 1
Views: 2611

Re: How to increase the array size of a VariableSeries Objec [SOLVED]

Is there a way to increase the array size of a VariableSeries Object using Multicharts.Net?
That's unfortunately not possible; `VariableSeries<T>` has a length equal to the data series. Source: VariableObject & VariableSeries explained.

You can create your own C# array of course I'd you like.
by JoshM
22 May 2015
Forum: MultiCharts .NET
Topic: How to determine if a previous bar is LastBarInSession?
Replies: 4
Views: 2925

Re: How to determine if a previous bar is LastBarInSession?

Hi Josh, but putting your logic in CalcBar() and using Bars.LastBarInSession doesn't work in this case, because CalcBar() is never called for the first "MaxBarsBack" bars. So I need to walk the past 50 bars in MaxBarsBack, and determine if there are any session breaks there. I didn't realise you wa...
by JoshM
22 May 2015
Forum: MultiCharts
Topic: The default contracts when you open the DOM Chart
Replies: 2
Views: 1888

Re: The default contracts when you open the DOM Chart

what can i do to make the new Dom chart 's default number is 1 everytime . As far as I know, the DOM's default order quantity is saved in the workspace ( PM #333 ), so there might not be a workaround for this (unless you don't want to save your workspace anymore). Perhaps there's another way to ach...
by JoshM
22 May 2015
Forum: MultiCharts
Topic: Alert Multicharts [SOLVED]
Replies: 19
Views: 4725

Re: Chart Alert Function [SOLVED]

May I know if there is Alert function for Multicharts Chart. For example, I open YM chart and setup alert. While YM is above 18300, then Multicharts will popup a message or send me email to notify me YM is above 18300. Yes, there is such a function. See the Alert() keyword. To check in your script ...
by JoshM
22 May 2015
Forum: MultiCharts .NET
Topic: How to determine if a previous bar is LastBarInSession?
Replies: 4
Views: 2925

Re: How to determine if a previous bar is LastBarInSession?

You can use a `VariableSeries<T>` for this (...) To expand on my previous post for a more complete answer, here's how to use a `VariableSeries<bool>` to determine if the previous bar was the last in the session: public class Snippet_Indicator : IndicatorObject { public Snippet_Indicator(object _ctx...
by JoshM
22 May 2015
Forum: MultiCharts .NET
Topic: How to determine if a previous bar is LastBarInSession?
Replies: 4
Views: 2925

Re: How to determine if a previous bar is LastBarInSession?

how can you determine if a previous bar in your history is the last bar of a session? You can use a `VariableSeries<T>` for this, but it's probably quicker/more convenient to use a Boolean variable that's assigned its value in the last part of the `CalcBar()` method. That way, it will hold the valu...
by JoshM
21 May 2015
Forum: MultiCharts
Topic: running a loop to examine the pivots tested [SOLVED]
Replies: 3
Views: 1953

Re: running a loop to examine the pivots tested [SOLVED]

I checked the occasion when the program will not run from the beginning and i noticed that MaxBarsBack has been reset to a rather large number, in this case it's been reset to 1307 while there are totally 1600 bars. why is the maxbarsback reset and how can i prevent it from being reset? thanks a lo...
by JoshM
20 May 2015
Forum: MultiCharts
Topic: extend line to the left
Replies: 3
Views: 1265

Re: extend line to the left

Of course, we can always use a trend line to draw a line to the beginning of the chart, although that still requires a little gap for the `MaxBarsBack` value. I, at least, couldn't draw/update a trend line to the very first bar on the chart. Inputs: Color(red), RightShift(50), ExtendLeft(true), Exte...
by JoshM
20 May 2015
Forum: MultiCharts
Topic: extend line to the left
Replies: 3
Views: 1265

Re: extend line to the left

I'm having an issue here regarding extending a line to the left. What am I missing? I'd like the line to extend to the first bar of the chart or at least 3 or 4 days ago, not only half of yesterday's. It's due to MaxBarsBack of the indicator. When I change the following of your code: if (LastBarOnC...
by JoshM
19 May 2015
Forum: MultiCharts
Topic: Oanda P/L in Position Tracker [SOLVED]
Replies: 1
Views: 1178

Re: Oanda P/L in Position Tracker [SOLVED]

Should we still expect totally inaccurate values in the Oanda MC Order and Position Tracker Open P/L column? There's a difference in how Open P/L is calculated in MultiCharts versus the Oanda platform: P/L values on Accounts tab are the values Oanda sends to MC through API. The P/L values on Open P...
by JoshM
19 May 2015
Forum: MultiCharts
Topic: When Can you Not Use Bar Magnifier and Intra-Bar-Order Gen.
Replies: 1
Views: 1074

Re: When Can you Not Use Bar Magnifier and Intra-Bar-Order G

What if the strategy code is set to buy/sell next bar open, or buy/sell this bar close? I don't think IOG and the Bar Magnifier are needed for such a strategy, but I rarely don't use IOG. Or, what about i.e. Sell next bar at (variable name) limit? You'd still have intra-bar price movement assumptio...
by JoshM
19 May 2015
Forum: MultiCharts .NET
Topic: portfolio backtesting ascii map files starts on line 52
Replies: 15
Views: 6037

Re: portfolio backtesting ascii map files starts on line 52

In portfolio you can configure the MaxBarsBack per JoshM's instructions: (Right-click the strategy in the Portfolio Trader, select 'show properties', and look for the 'maximum number of bars study will reference' setting in the 'Properties' tab). Hi Henry, In the Portfolio Trader, Signals do not ha...
by JoshM
19 May 2015
Forum: MultiCharts
Topic: Multi-data in scanner window [SOLVED]
Replies: 1
Views: 1256

Re: Multi-data in scanner window [SOLVED]

I'm not using MultiCharts.NET and trying to reference data2 etc in scanner window with my indicators, is this possible?
This is unfortunately not possible. There's a PM request asking for this here: MC-1491 - 'SCANNER' allow an indicator to access Multi-data (ie: data2, data3, etc).
by JoshM
17 May 2015
Forum: MultiCharts .NET
Topic: EOD Exit Signal
Replies: 2
Views: 2428

Re: EOD Exit Signal

I don't have a signal in my MultiCharts .NET installation that's named 'EOD Exit', so I can't comment on how/when this signal submits its order. However, if you'd like a signal to submit an order prior to the close (let's say a few minutes prior to be save), you can do so by taking the time into con...
by JoshM
17 May 2015
Forum: MultiCharts .NET
Topic: portfolio backtesting ascii map files starts on line 52
Replies: 15
Views: 6037

Re: BUG: portfolio backtesting ascii map files starts on lin

I didn't import the attached files and tried to replicate it so I might be wrong here, but can the value of 50 (51 if the header is included) also be caused by the MaxBarsBack setting? (Right-click the strategy in the Portfolio Trader, select 'show properties', and look for the 'maximum number of ba...
by JoshM
16 May 2015
Forum: MultiCharts
Topic: Why won't my functions compile under Windows 7?
Replies: 3
Views: 1533

Re: Why won't my functions compile under Windows 7?

Have you tried the steps in the following Wiki article?

Compilation Error (errLine 0, errColumn 0, errLineEnd 0, errColumnEnd 0)

That article should help. If it doesn't, let us know.
by JoshM
15 May 2015
Forum: MultiCharts .NET
Topic: ascii mapping doesn't import volume data [SOLVED]
Replies: 2
Views: 2825

Re: ascii mapping doesn't import volume data [SOLVED]

I have a text file with data such as the following, but volume information, though mapped properly, is not available in charts or this.Bar.Volume Have you tried `Bars.Ticks`? When your chart is set to 'Trade Volume' with the 'Build Volume On' setting (Format Instrument -> Settings tab), the `Bars.T...
by JoshM
14 May 2015
Forum: MultiCharts
Topic: Email Alert format editing
Replies: 2
Views: 1432

Re: Email Alert format editing

This is unfortunately not possible. There's a feature request for it here: MC-1840 - How to edit the Default Email Alert message.
by JoshM
08 May 2015
Forum: MultiCharts .NET
Topic: StochRSI
Replies: 4
Views: 3016

Re: StochRSI

I don't see an error in it compared with the mentioned Knowledgebase article.
by JoshM
02 May 2015
Forum: MultiCharts
Topic: Instrument properties changes by code - command line other ? [SOLVED]
Replies: 2
Views: 1280

Re: Instrument properties changes by code - command line oth [SOLVED]

Was thinking it might be possible by the command line to change the chart parameters eg 5 min 30 min, 60 minute, changing the instrument by the command line by running a batch job of command line instructions which changes this. If you mean MultiCharts' Command Line, then yes: The PowerLanguage key...
by JoshM
02 May 2015
Forum: MultiCharts
Topic: 'Breakeven Stop' works randomly
Replies: 7
Views: 3077

Re: 'Breakeven Stop' works randomly

I've added the Breakeven Stop as a separate signal (see attached image). Should it work better if coded into the entry order? Or does it not matter? The 'Breakeven stop' signal uses the SetBreakeven keyword to exit a position. The wiki page does not mention, however, if this keyword uses MultiChart...
by JoshM
02 May 2015
Forum: MultiCharts
Topic: Problems with Candlesticks with Output Variable Returns [SOLVED]
Replies: 3
Views: 2148

Re: Problems with Candlesticks with Output Variable Returns [SOLVED]

I've got an autotrade program I'm trying to improve by adding candlesticks. Doji candlestick patterns work fine - no issues. But when I use any pattern that has an Output Variable return, I get an error message. Even if it's exactly copy and pasted from the TS Functions and Reserve Words pdf. (...)...
by JoshM
30 Apr 2015
Forum: MultiCharts .NET
Topic: Programatically disabling/enabling trading for all Signals
Replies: 2
Views: 2461

Re: Programatically disabling/enabling trading for all Signa

Besides using the Portfolio Trader (see Henry's reply above), you can also use the Command Line (`ChartCommands.CommandLine()`) to disable trading on a specific chart. For that, the signal needs to call the Command Line method with the ".at_toggle" parameter. There's an example of that here: toggle ...
by JoshM
30 Apr 2015
Forum: MultiCharts
Topic: EL syntax question [SOLVED]
Replies: 8
Views: 2420

Re: EL syntax question [SOLVED]

Do you happen to know if it's possible using MC.net? There's some documentation about it here and a code example here . Also, is the straight per bar delta value accessable via EL or C#? That way I could just sum up the delta for some number of bars. Volume delta is only available in MC .NET, I'm a...
by JoshM
30 Apr 2015
Forum: MultiCharts
Topic: EL syntax question [SOLVED]
Replies: 8
Views: 2420

Re: EL syntax question [SOLVED]

In Multicharts with EasyLanguage, what is the correct syntax to access the cumulative volume delta? In particular, I want to find the cumulative delta for the prior 'n' bars. This isn't possible with PowerLanguage. There's an unreviewed feature request for it here: Access to Cumulative Delta Volume...
by JoshM
21 Apr 2015
Forum: MultiCharts
Topic: Is there a Timer Class? [SOLVED]
Replies: 6
Views: 2666

Re: Is there a Timer Class? [SOLVED]

Hi, I have been looking but can't find it. Does MC have a timer Class, like TS? This timer would allow an order to be placed based on a time event and not limited to a bar/price event. Thanks. Gordon input: Order.Time(1100); if Time = Order.Time and Buy.Condition = True then Begin That code is stil...
by JoshM
20 Apr 2015
Forum: MultiCharts .NET
Topic: How to draw vertical lines (time lines) [SOLVED]
Replies: 2
Views: 2695

Re: How to draw vertical lines (time lines) [SOLVED]

Hi, when drawing on a chart there is the ability to draw a vertical line (listed in the drawing pallet as a 'Time line'). Is there an API that programmatically allows us to draw these vertical lines as part of indicator code? You can approach the behaviour of 'Time line', but I don't know how to ad...
by JoshM
13 Apr 2015
Forum: MultiCharts
Topic: auto-detect current position, possible? [SOLVED]
Replies: 1
Views: 1136

Re: auto-detect current position, possible? [SOLVED]

However, to achieve that, you'd have to tell MC your position info after entry, just like every time you launch your auto-trading strategy in MC. This is cumbersome for partial automation, is it possible to make the MC monitor my account info and activities, and detect current position live? Thanks...
by JoshM
13 Apr 2015
Forum: MultiCharts
Topic: Oanda Order Reports Not In Sync..Maybe? [SOLVED]
Replies: 6
Views: 2045

Re: Oanda Order Reports Not In Sync..Maybe? [SOLVED]

DO NOT turn off your MultiCharts. If you have closed your MultiCharts, DO NOT restart it again. Please contact tech support so that they can retrieve the logs from your computer for analysis. Or just create a zip file with the folders yourself (the logs folder location is in the Windows start menu)...
by JoshM
13 Apr 2015
Forum: MultiCharts
Topic: oanda and mc
Replies: 59
Views: 15427

Re: oanda and mc

Also, this does not remove all variables. It could mean that MC's link with Oanda's REST API has problems, while MC's link with IB's API does not. Right now Oanda is blaming MC and now it seems that the blame is going the other way. I wouldn't bother with testing an InteractiveBrokers connection wh...
by JoshM
13 Apr 2015
Forum: MultiCharts
Topic: adding new data line from excel
Replies: 5
Views: 2019

Re: adding new data line from excel

I am trying to add a new data line of O,H,L,C daily. How i am doing it now, is like this.. 1. download data of O,H,L,C from yahoo to excel 2. go to symbol -> edit data -> add -> manually inputting data I tried 'copy-paste', but this also is not convenient. Is there any more convinient way to do thi...
by JoshM
01 Apr 2015
Forum: MultiCharts .NET
Topic: How to detect in the code when the user zooms a chart? [SOLVED]
Replies: 1
Views: 1551

Re: How to detect in the code when the user zooms a chart? [SOLVED]

How to detect in the code when the user has zoomed the chart? If you mean with zooming having the bar spacing changed, then the `Environment.BarSpacing` property will return a different value after zooming compared to before it. Other `Environment` properties, like `Environment.HighestScaleValue` o...
by JoshM
01 Apr 2015
Forum: MultiCharts .NET
Topic: How change from the code the Y price scale? [SOLVED]
Replies: 1
Views: 1671

Re: How change from the code the Y price scale? [SOLVED]

I have to increase the Y axis to put custom drawings below the minimum price low I see in the screen and upper the bottom of the screen.
How to do this programmatically?
Sorry, but I think this cannot be done programmatically given that the `Environment.HighestScaleValue` property is read-only.
by JoshM
29 Mar 2015
Forum: MultiCharts
Topic: How to use the SETPLOTTYPE?
Replies: 4
Views: 2728

Re: How to use the SETPLOTTYPE?

I suppose it is manually with the Style settings from indicator settings, but the `setplottype` PowerLanguage keyword is still not implemented it seems.
by JoshM
27 Mar 2015
Forum: MultiCharts
Topic: End tl after entry .. is possible ?
Replies: 5
Views: 1377

Re: End TrendLine after entry .. is possible ?

That is, end the trendline after making an entrance Long or Short. The code I wrote is: if(MarketPosition= -1) then begin if BarsSinceEntry=1 then tl_setend(tlUP,date[0],time[0],entryprice); end; If the trend line should also be extended after making a new enter long trade, checking for just `Marke...
by JoshM
27 Mar 2015
Forum: MultiCharts
Topic: barssinceexit() for multiple contracts scaling out [SOLVED]
Replies: 1
Views: 1064

Re: barssinceexit() for multiple contracts scaling out [SOLVED]

If you have 2 contracts and scale them out, is there any function like barssinceexit() that returns the number of bars ago at which the "1st contract" being scaled out? barssinceexit(1) doesn't work under this circumstance, your position has to be flat first before it may return anything. Thanks. P...
by JoshM
27 Mar 2015
Forum: MultiCharts
Topic: Any Idea when... A faster Project Management web page
Replies: 21
Views: 7893

Re: Any Idea when... A faster Project Management web page

Yesterday and today I repeatedly experience an error when accessing the Wiki:

Image

If I refresh the page after a few minutes it often works or I might need to wait another few minutes. Can this perhaps be looked into?
by JoshM
21 Mar 2015
Forum: MultiCharts
Topic: Project: Print Trade List to csv
Replies: 7
Views: 3510

Re: Project: Print Trade List to csv

Here's what I have so far: Inputs: FileLocation("C:\Temp\"); Variables: fileName( Text(FileLocation, "\", GetSymbolName, "_", FormatDate("d-M-yy", ComputerDateTime), "_", FormatTime("HH;mm;ss", ComputerDateTime))), posType(""), outputStr(""), tmpOutputStr(""), sep(";"), // The separator for the text...
by JoshM
20 Mar 2015
Forum: MultiCharts .NET
Topic: Code to buy or sell with mouse click [SOLVED]
Replies: 2
Views: 1808

Re: Code to buy or sell with mouse click [SOLVED]

can somebody wright code to buy with mouse click 1 contract 1 tick above high of the bar, put stoploss 1 tick below the low of the bar, and put target 200% from stoploss. Same for short trade. You can probably do something yourself also. There are already examples that do something like you want: H...
by JoshM
20 Mar 2015
Forum: MultiCharts .NET
Topic: DOM price for ES
Replies: 2
Views: 2637

Re: DOM price for ES

price appears with 4 digits after point
how to change the display for tick difference as 0.25 per point for ES?
You probably need to change the 'Price Scale' setting in the QuoteManager for the ES symbol. See here.
by JoshM
20 Mar 2015
Forum: MultiCharts .NET
Topic: Backtesting (slippage, historical data) [SOLVED]
Replies: 4
Views: 2750

Re: Backtesting (slippage, historical data) [SOLVED]

(...) slippage differs depending on whether it was PT or SL. In case of PT only one slippage is applied in case of SL, slippage is reduced twice from the trade . If you enter with a market order and exit with a limit order (PT) --> one market order, so slippage applied once. If you enter with a mar...
by JoshM
20 Mar 2015
Forum: MultiCharts .NET
Topic: Error displacing mov average in MC TWS [SOLVED]
Replies: 8
Views: 3745

Re: Error displacing mov average in MC TWS [SOLVED]

Not sure what or if you mean works. (...) Going to X-Axe settings I can insert 1000% (ou 10000% ou 1 million % but it allways turn to a maximum of 100%, obviously) - image 3 If you displace with a negative value, the line will be plotted towards the future (where there aren't any bars yet). That's ...
by JoshM
15 Mar 2015
Forum: MultiCharts
Topic: Porting from TS 9.1 to MC. EL and PL differences
Replies: 48
Views: 9405

Re: Porting from TS 9.1 to MC. EL and PL differences

AFter all that work I cant find a broker to connect mc to other than ts!
See Supported brokers and Supported brokers topic. And then there's also Google.

So I'm not sure what you mean with 'I can't find a broker to connect mc to'.
by JoshM
15 Mar 2015
Forum: MultiCharts
Topic: scope of value1, value2, etc. and condition1, condition2,etc [SOLVED]
Replies: 1
Views: 1415

Re: scope of value1, value2, etc. and condition1, condition2 [SOLVED]

What's the scope of these predefined variables? file? global? File. All PowerLanguage variables (predefined or user-defined), arrays, and constants have a scope that encompasses the whole script file. Only the global "variables" (which are actually functions with names as `GV*`) have a global scope.
by JoshM
15 Mar 2015
Forum: User Contributed Studies and Indicator Library
Topic: VWAP (Monthly, Weekly, Daily)
Replies: 9
Views: 7695

Re: VWAP (Monthly, Weekly, Daily)

TJ: I have the same problem with "cad" .... using MultiCharts Version 9.0 Release (Build 10172) Cad isn't listed as one of my functions, so I'm guessing that it might be a built-in function... If I replace "cad" with "xyz" it compiles.. haven't tried plotting the study though.. `Cad` is a named con...
by JoshM
15 Mar 2015
Forum: MultiCharts
Topic: Vertical trendlines at mouse click [SOLVED]
Replies: 2
Views: 1952

Re: Vertical trendlines at mouse click [SOLVED]

I would like to: 1. plot a first vertical line on the chart by left clicking on a certain date and time 2. plot a second vertical line on the chart by left clicking on a certain date and time If you store the reference to a created trend line in a variable, the variable can be used to determine whe...
by JoshM
15 Mar 2015
Forum: MultiCharts .NET
Topic: Intra bar realtime order is not triggered with IOG enabled. [SOLVED]
Replies: 4
Views: 2704

Re: Intra bar realtime order is not triggered with IOG enabl [SOLVED]

1. Sent managed Buy-Stop-order, for instance on 150 level price. IOG checked and it is in 3 position with "100 entries per bar". Sometimes positions opens immediately when price touched price level 150, but sometimes price touched 150 and moved higher, to 170 for example, without opening position. ...
by JoshM
15 Mar 2015
Forum: MultiCharts .NET
Topic: Cannot implicitly convert type error
Replies: 4
Views: 3467

Re: Cannot implicitly convert type error

It is at this last line that I get the error message stating Cannot implicitly convert type 'double' to 'PowerLanguage.ISeries<double>' It looks like you're trying to assign a value to the EMA function, while you probably want to store that into a `VariableSeries<T>`. Since you didn't explicitly sa...
by JoshM
15 Mar 2015
Forum: MultiCharts .NET
Topic: obtaining programatically Official Market Open (Daily) IB [SOLVED]
Replies: 1
Views: 1719

Re: obtaining programatically Official Market Open (Daily) I [SOLVED]

Hi, I see that you are displaying official market open on charts with IB data feed as per feature of multicharts.net (The ‘Open’ field in the status line. Values for the Open field will now be fed into the status line for IB symbols.) How do I obtain this value programatically from a study (not the...
by JoshM
15 Mar 2015
Forum: MultiCharts .NET
Topic: IOG mode and strange backtester behaviour
Replies: 4
Views: 2244

Re: IOG mode and strange backtester behaviour

if (StrategyInfo.MarketPosition==0) { orderLE.Send(dayOpen - pOffset); orderSE.Send(dayOpen + pOffset); GenerateProfitTarget(2*pOffset); GenerateStopLoss(4*pOffset); GenerateExitOnClose(); } You're currently only submitting the stop-loss and profit targets when there is no open position. Have you t...
by JoshM
15 Mar 2015
Forum: MultiCharts .NET
Topic: Backtesting (slippage, historical data) [SOLVED]
Replies: 4
Views: 2750

Re: Backtesting (slippage, historical data) [SOLVED]

I noticed that during backtesting slippage value is added twice in case of short order and only once in case of long order. Is there a specific reason for that? Stop and market orders in MultiCharts .NET have slippage added to them (see here ). Were your long orders stop/market orders or did you us...
by JoshM
15 Mar 2015
Forum: MultiCharts .NET
Topic: Problem with custom future (back adjusted contracts) [SOLVED]
Replies: 15
Views: 6247

Re: Problem with custom future (back adjusted contracts) [SOLVED]

I am not able to load more than ~30 days of historical data from CQG, although a years should be available. It does not matter if I try to get a time range from 45 days ago - 15 days ago. I always get only last 30 days from todays date. (see attached Picture) Interesting thing is that with my Live ...
by JoshM
09 Mar 2015
Forum: MultiCharts .NET
Topic: How does MC parse data from IB? [SOLVED]
Replies: 2
Views: 1906

Re: How does MC parse data from IB? [SOLVED]

It is my understanding that IB only provides historical minute data, not tick data. Yet MultiCharts creates tick, volume, etc. charts from IB historical data. How is the available data parsed to tick based charts? IB's API also provides seconds data (see here ), and 1 second data is used to create ...
by JoshM
09 Mar 2015
Forum: MultiCharts
Topic: Signals on Price chart without autotrading? [SOLVED]
Replies: 3
Views: 1634

Re: Signals on Price chart without autotrading? [SOLVED]

how do I ensure that auto-trading is off? When I look at the properties for the signal under the Auto-trading tab, I see that it is possible to require a confirmation dialog every time the signal is triggered, but this is not ideal. I don't see any overall "disable autotrading" property for the sig...
by JoshM
09 Mar 2015
Forum: MultiCharts
Topic: GVSetNamedInt, GVGetNamedInt
Replies: 6
Views: 1950

Re: GVSetNamedInt, GVGetNamedInt

When GVSetNamedInt and GVGetNamedInt were used to pass values from low resolution time frame to high resolution time frame, saying, 5m as the sender and 1m as the receiver, it worked fine. However, I couldn't get it work on the reverse direction, i.e., 1m as the sender, 5m as the receiver. Were the...
by JoshM
08 Mar 2015
Forum: MultiCharts
Topic: Porting from TS 9.1 to MC. EL and PL differences
Replies: 48
Views: 9405

Re: Porting from TS 9.1 to MC. EL and PL differences

pathname = Environment.GetMyWorkDirectory() + "\"; to get the path of the mywork directory. what is the equivalent for mc, and mc64 ? There is no equivalent of that in PowerLanguage, probably because MultiCharts doesn't work with work directories -- all studies are kept in a fixed location (which y...
by JoshM
08 Mar 2015
Forum: MultiCharts
Topic: Signals on Price chart without autotrading? [SOLVED]
Replies: 3
Views: 1634

Re: Signals on Price chart without autotrading? [SOLVED]

Is it possible to show a signal with no action? I do not want to autotrade.
Yes, if you add a signal to your chart without auto-trading on, it will still generate the buy/sell arrows for the real-time bars. (I'm not sure though if this also applies when the Chart Trader is also active).
by JoshM
08 Mar 2015
Forum: MultiCharts
Topic: how to get the time frame value [SOLVED]
Replies: 1
Views: 1289

Re: how to get the time frame value [SOLVED]

I use barinterval to get the time frame value. However, barinterval can only be applied to intraday charts, not daily chart. When applied to a daily chart, it returns 1, the same as applied to a 1m chart. How can I tell a daily chart from a 1m chart then? any other functions to get the time frame v...
by JoshM
08 Mar 2015
Forum: MultiCharts .NET
Topic: Making the change from NT to .NET Special Edition [SOLVED]
Replies: 8
Views: 6532

Re: Making the change from NT to .NET SE [SOLVED]

This is the latest free product offering with no license fees I am referring to: MultiCharts .NET64 Special Edition Version 9.0 Release (Build 10815) That's very interesting, as it seems to be a new product different from the previous SE (Starter Edition) of MultiCharts .NET. For those who were als...
by JoshM
08 Mar 2015
Forum: MultiCharts .NET
Topic: unable to import EasyLanguage study into PowerEditor [SOLVED]
Replies: 1
Views: 1531

Re: unable to import EasyLanguage study into PowerEditor [SOLVED]

I'm trying to import EasyLanguage study into PowerEditor. But it seems only PLN file type is supported. Anyone knows how can I resolve this ? MultiCharts .NET supports scripts written in C# or Visual Basic, so EasyLanguage scripts cannot be imported and need to be manually converted. The regular Mu...
by JoshM
07 Mar 2015
Forum: MultiCharts
Topic: Project: Print Trade List to csv
Replies: 7
Views: 3510

Re: Project: Print Trade List to csv

it's not the MarketPosition change that matters here But the TotalTrades change that matters. This should capture all the trades. Thanks for making that point :), it remembered me of the difference between trades and positions, which don't always are the same. Export from MC backtest which is exact...
by JoshM
07 Mar 2015
Forum: MultiCharts
Topic: In PowerLang, How to get Time Zone of the Machine [SOLVED]
Replies: 1
Views: 1122

Re: In PowerLang, How to get Time Zone of the Machine [SOLVED]

Is there a way to expose the time zone of the machine in powerLang?
There's no such PowerLanguage keyword that I'm aware of, but perhaps GetCountry can be used in a workaround?
by JoshM
07 Mar 2015
Forum: MultiCharts .NET
Topic: Making the change from NT to .NET Special Edition [SOLVED]
Replies: 8
Views: 6532

Re: Making the change from NT to .NET SE [SOLVED]

I think the Alerts feature is great. However, on the included Chaikin Oscillator, one of the primary signals is when the oscillator crosses the zero line. This is not triggered and since I am not a C# programmer and SE only can open *.PLN files, I am unable to enjoy the potential benefit. MC .NET S...
by JoshM
07 Mar 2015
Forum: MultiCharts
Topic: Is there a way to run the Algos without running the charts [SOLVED]
Replies: 1
Views: 1360

Re: Is there a way to run the Algos without running the char [SOLVED]

You can run strategies without charts in the Porfolio Trader (more here). Alternatively, if you're only outputting the trade signals to a file, you can also convert the strategy to an indicator and run it in the Scanner window.
by JoshM
06 Mar 2015
Forum: MultiCharts
Topic: Project: Print Trade List to csv
Replies: 7
Views: 3510

Re: Project: Print Trade List to csv

if MPos[1]<0 and MPos>0 then begin (...) if MPos[1]>0 and MPos<0 then begin (...) if MPos[1]=0 and MPos>0 then (...) if MPos[1]=0 and MPos<0 then (...) if MPos[1]>0 and MPos=0 then (...) if MPos[1]<0 and MPos=0 then Does this catch all trades for you? It doesn't for me; trades that are reversed on ...
by JoshM
04 Mar 2015
Forum: MultiCharts .NET
Topic: Drawings through multiple charts [SOLVED]
Replies: 4
Views: 4364

Re: Drawings through multiple charts [SOLVED]

When 1 minute and 5 minute charts of the same instrument are opened and I do a drawing (line for example) on one of them. It would make sense to see such a drawing also on the other one. It does not have to be by default, but only after checking a checkbox somewhere or similar. As far as I know, th...
by JoshM
04 Mar 2015
Forum: User Contributed Studies and Indicator Library
Topic: The Economic Events Collection for MultiCharts
Replies: 131
Views: 78542

Re: The Economic Events Collection for MultiCharts

Hi guys I am still getting the error:

STD exception: Underflow/overflow/range error
With which script do you get this error?
by JoshM
04 Mar 2015
Forum: MultiCharts
Topic: Interconnection of two charts with the same symbol [SOLVED]
Replies: 2
Views: 1252

Re: Interconnection of two charts with the same symbol [SOLVED]

I have two charts on the same symbol. First chart 1h timeframe second chart 1m timeframe. It can be set to draw trend line / fibonacci to chart 1h timeframe was trend line / fibonacci displayed on the chart timeframe 1m? This is unfortunately not possible. There's a similar feature request that you...
by JoshM
04 Mar 2015
Forum: MultiCharts .NET
Topic: Clearing the .net data cache in Interactive Broker (IB) envi
Replies: 2
Views: 2477

Re: Clearing the .net data cache in Interactive Broker (IB)

Clearing the .net data cache in Interactive Broker (IB) Do you use MC .NET for TWS or the regular MC .NET? With the regular MC .NET, you can clear the cache through the QuoteManager. See here for how. Since MC .NET for TWS has no QuoteManager, I don't know how it would work there. However, cache fi...
by JoshM
04 Mar 2015
Forum: MultiCharts
Topic: what is wrong?
Replies: 9
Views: 2120

Re: what is wrong?

have you any ideas to what I have to change? in this way is impossible trading. I suppose you can make the entry conditions more restrictive like this: // Enter long if (vTrend = 1) and (vTrend[1] > 0) and (vTrend[2] > 0) then begin (...) // Enter short if (vTrend = -1) and (vTrend[1] < 0) and (vTr...
by JoshM
04 Mar 2015
Forum: MultiCharts
Topic: Project: Print Trade List to csv
Replies: 7
Views: 3510

Re: Project: Print Trade List to csv

However, some entries will be reversals, some will be limits fills, stop fills, and some exits will flatten the position 0. In a reversal I'd like to separate the Exit order contracts and exit prices from the Entry order contracts and entry prices. I think you can retrieve this with the PosTrade* k...
by JoshM
04 Mar 2015
Forum: MultiCharts
Topic: Text_GetActive anomalies [SOLVED]
Replies: 2
Views: 1378

Re: Text_GetActive anomalies [SOLVED]

Can changing the color via code be fooling the Text_GetActive function? Yes. An 'active' text box is not only the text box that is selected, but the most recently created or used text box is also considered to be 'active'. Changing a text box's colour will then make it 'active', even if before that...
by JoshM
03 Mar 2015
Forum: MultiCharts
Topic: what is wrong?
Replies: 9
Views: 2120

Re: what is wrong?

with your code it continue to enter in market every bar. I didn't change the enter long or enter short conditions, there are still: // Enter long if (vTrend = 1) and (vTrend[1] > 0) then begin (...) // Enter short if (vTrend = -1) and (vTrend[1] < 0) then begin These come from your code. If you wan...
by JoshM
02 Mar 2015
Forum: MultiCharts
Topic: LMAX: Order Canceled: OUTSIDE_ALLOWED PRICE RANGE.....Why? [SOLVED]
Replies: 2
Views: 1665

Re: LMAX: Order Canceled: OUTSIDE_ALLOWED PRICE RANGE.....Wh [SOLVED]

Today I started to test the US Crude CFD and I got this message in the log:- Instrument: US Crude (Spot); Order: Buy Limit 20; Status: Rejected; Reason: OUTSIDE_ALLOWED_PRICE_RANGE. I am entering with four positions and scaling out. I am using some kind of ATR stop/target which currently has the fi...
by JoshM
02 Mar 2015
Forum: MultiCharts
Topic: what is wrong?
Replies: 9
Views: 2120

Re: what is wrong?

the code above doesnt enter stop loss for example. That's because the `vStopLossPrice` variable is calculated each time when the if statement above it is true. For example: if (vTrend = 1) and (vTrend[1] > 0) then begin buy ("EL") next bar Close + 4 limit; vStopLossPrice = (Close + 4) - TicksAway; ...
by JoshM
02 Mar 2015
Forum: MultiCharts
Topic: what is wrong?
Replies: 9
Views: 2120

Re: what is wrong?

someone could please see how it doesn t work? What does "it doesn't work" mean in this context? And this time, if I may suggest, please give a thorough explanation of what you mean (so we don't need to guess or ask 10 follow-up questions), keep it factual & on-topic, and don't use many exclamation ...
by JoshM
02 Mar 2015
Forum: MultiCharts .NET
Topic: Active workspace name from Signal?
Replies: 2
Views: 1642

Re: Active workspace name from Signal?

My question is how to get the name of the active workspace from the signal code? If you're auto-trading, you could use the TradeManager to retrieve the `Workspace` property from the `Order` class. Alternatively, `Environment.ChartWindowHWND` returns the window handle of the chart to which the study...
by JoshM
28 Feb 2015
Forum: MultiCharts
Topic: IB transaction fee
Replies: 2
Views: 1288

Re: IB transaction fee

I try to figure out what is the best configuration in Symbol Mapping or other ways to save transaction fee. Does anyone have any idea? Names like SMART, ARCA, BATS etc, which ones have more chance to give cheap fee? and what are the best sequences of them? I think you might better contact Interacti...
by JoshM
27 Feb 2015
Forum: MultiCharts
Topic: Syncing database [SOLVED]
Replies: 2
Views: 1265

Re: Syncing database [SOLVED]

I have been able to copy databases between machines without a problem. Same here. But both MultiCharts instances will need to have a compatible version in terms of the database: After an upgrade of MultiChats to 8.7 version, it will no longer be possible to downgrade the Database and use it in the ...
by JoshM
26 Feb 2015
Forum: MultiCharts
Topic: keep EasyLanguage files in sync between different computers
Replies: 14
Views: 4388

Re: keep EasyLanguage files in sync between different comput

This PM issue might be worth tracking/voting for in this context:

MC-255 - Implement SVN (or other versioning system) Integration on PowerLanguage Editor

It would be quite helpful (also when someone always works on one computer) to have the PowerLanguage Editor work with git.
by JoshM
26 Feb 2015
Forum: MultiCharts .NET
Topic: SUPERTREND
Replies: 10
Views: 6233

Re: SUPERTREND

This means that you will not work on it?
No, not in the near future at least. Perhaps someone else in the MultiCharts .NET forum can help.
by JoshM
25 Feb 2015
Forum: MultiCharts
Topic: Question about STOPS
Replies: 35
Views: 15020

Re: Question about STOPS

If an order to Buy @ 2011.00 on a Stop is sent, how do you think the Exchange will process the request if the market’s current position is as shown in: From CME: Stop order trigger price is validated versus the last trade at order entry. A Buy order must be > last trade price and a Sell order must ...
by JoshM
25 Feb 2015
Forum: MultiCharts
Topic: Lmax API
Replies: 3
Views: 1591

Re: Lmax API

Maybe I have it wrong but I thought each account would run on a different api ? MultiCharts advises to only use one broker profile (see here ; follow the link for more LMAX recommendations) because LMAX supports that much. If MultiCharts had 'different' APIs for each broker profile, this probably w...
by JoshM
24 Feb 2015
Forum: MultiCharts .NET
Topic: SUPERTREND
Replies: 10
Views: 6233

Re: SUPERTREND

Are you working on this script?
If Yes, could you please to attach the file here?
No, I didn't have time for it. Sorry.
by JoshM
20 Feb 2015
Forum: MultiCharts .NET
Topic: SUPERTREND
Replies: 10
Views: 6233

Re: SUPERTREND

Could you provide the indicator code in a post or .txt file? Then we can take a look at it without running the risk that the .pla file overwrites existing PowerLanguage functions and/or indicators.
by JoshM
18 Feb 2015
Forum: MultiCharts .NET
Topic: Is AutoTrading is ON [SOLVED]
Replies: 6
Views: 3572

Re: Is AutoTrading is ON [SOLVED]

When trying to use "IApplicationInfo.IsAutoTradingMode" I get an error: I think you need to use `Environment.IsAutoTradingMode` for your goal. That is similar as you did earlier, except without the `Environment.IsRealTimeCalc` property. http://www.multicharts.com/discussion/download/file.php?id=8717
by JoshM
17 Feb 2015
Forum: MultiCharts
Topic: updater info window dead links MC Ver. 9.0.10359.400
Replies: 4
Views: 1789

Re: updater info window dead links MC Ver. 9.0.10359.400

Thanks Henry My internet explorer is uninstalled, I only have chrome installed. How can I manage it with the chrome browser? I do not like to have 2 browsers in the same OS, i like it lean and fast. I have the same message in the Help -> Check for Updates window. The 'list of improvements' link ref...
by JoshM
17 Feb 2015
Forum: MultiCharts .NET
Topic: Reload all instruments
Replies: 4
Views: 2129

Re: Reload all instruments

This functionality is available since MultiCharts 8.8 Beta 1. That is possible to reload all data using the Rescan Now button in the Pre-scanning part of the Scanner window Source: Reload data in scanner - topic . Please see my next reply in the same thread: We apologize for the confusion. «Rescan ...
by JoshM
17 Feb 2015
Forum: MultiCharts .NET
Topic: MULTICHARTS .NET 9.0 RELEASE
Replies: 25
Views: 13315

Re: MULTICHARTS .NET 9.0 RELEASE

As a small feature request, can the `IDrawObject.Locked` property also get a `get` access property? Currently it can only be set: IDrawObject.Locked Property Lock drawing on the chart. Lock for drawings prevents it from unnecessary user changes. public bool Locked { public set; } If we can also retr...
by JoshM
17 Feb 2015
Forum: MultiCharts
Topic: Sync didn't sync lost me $26,000 USD!!!
Replies: 32
Views: 10183

Re: Sync didn't sync lost me $26,000 USD!!!

We need a new PL keyword broker.connectionStatus to give user code visibility into connection status so that user code may take appropriate action in such cases. I fully agree with this, it's risk management 101 to have programmatic access to things like this. But I'm sceptical about it being imple...
by JoshM
17 Feb 2015
Forum: MultiCharts
Topic: Any Idea when... A faster Project Management web page
Replies: 21
Views: 7893

Re: Any Idea when... A faster Project Management web page

Is it just me, or do you guys also get an error like the following when accessing the PM site? I get this error since Saturday.

Image
by JoshM
16 Feb 2015
Forum: MultiCharts .NET
Topic: Reload all instruments
Replies: 4
Views: 2129

Re: Reload all instruments

Is it possible to somehow reload all instruments in all charts with one click? This is useful for example when there was a network outage or the computer wakes up from hibernation. Or do i have to ctrl-r every single window? As far as I know, the 'reload all data' menu option reloads all data on al...
by JoshM
16 Feb 2015
Forum: MultiCharts
Topic: Indicator counting condition twice [SOLVED]
Replies: 6
Views: 1880

Re: Indicator counting condition twice [SOLVED]

Dear All, I'm having trouble creating a simple index that records how often an event (in this case, and inside bar) has occurred over a given look back period (10). It appears to count the event twice: once correctly at the close of the bar fitting the conditions and then again in the following bar...
by JoshM
16 Feb 2015
Forum: MultiCharts
Topic: At least allow execution of EL code in MC.NET
Replies: 8
Views: 3029

Re: At least allow execution of EL code in MC.NET

I am on TS 9 and would switch to MC.NET in a heartbeat if I were able to run the many sophisticated indicators I've already written in EasyLanguage without having to record them into VB/C#. I would then be able to focus on some improved strategy ideas I have that can only really be written and main...
by JoshM
16 Feb 2015
Forum: MultiCharts
Topic: Porting from TS 9.1 to MC. EL and PL differences
Replies: 48
Views: 9405

Re: Porting from TS 9.1 to MC. EL and PL differences

how does call by reference work in el sorry I was thinking of calling the function, you are referring to numericarrayref and stuff like that? When you create a function, you can declare it's inputs to be passed by reference, like: Inputs: myNumber(NumericRef), // Passed by reference myOtherNumber(N...
by JoshM
16 Feb 2015
Forum: MultiCharts
Topic: Recommended method to restrict a custom study to a user
Replies: 5
Views: 1507

Re: Recommended method to restrict a custom study to a user

Thanks for your response. Is user name unique for all MultiCharts licenses or can multiple users have the same user name? Username is unique to the customer. If the customer has more than one licenses under the same name, all the MC installations will return the same Username. My username is unique...
by JoshM
16 Feb 2015
Forum: MultiCharts
Topic: Recommended method to restrict a custom study to a user
Replies: 5
Views: 1507

Re: Recommended method to restrict a custom study to a user

For example I would ask that the user provide me with their User ID and then require that ID in the indicator. However I understand that the User ID will change if a user installs MultiCharts on another computer.
Yes, but the GetUserName will remain the same for that specific user and his license.
by JoshM
16 Feb 2015
Forum: MultiCharts .NET
Topic: Could the grid of the chart background be set to one tick? [SOLVED]
Replies: 2
Views: 2046

Re: Could the grid of the chart background be set to one tic [SOLVED]

Could the grid of the chart background be set to constant size? such as one tick? Yes, but there's a limit to how close the lines can be placed together since the price axis font size seems to limit this. To set the grid to a constant size, right-click on the chart and select 'Format instrument'. G...
by JoshM
14 Feb 2015
Forum: MultiCharts
Topic: How do we stop "Connectivity error"
Replies: 3
Views: 1498

Re: How do we stop "Connectivity error"

What are your settings in.. General MultiCharts window : File -> Preferences -> Trading tab. There's an option there named 'show error pop-up alert'. Perhaps disabling that setting can help. Otherwise, you could try changing the following setting: QuoteManager : Tools -> Data sources -> Interactive ...
by JoshM
11 Feb 2015
Forum: MultiCharts
Topic: Bulk Add Symbols [SOLVED]
Replies: 4
Views: 1903

Re: Bulk Add Symbols [SOLVED]

Thanks orion. That was very helpful. I do have one more question, I don't see where the command is to hide the symbol after I insert it. I enter: .isy name=@ES#, df=IQFeed, res=3 min What is the parameter to hide the chart? All Command Line commands are listed here: Understanding Command Line . To ...
by JoshM
11 Feb 2015
Forum: MultiCharts
Topic: Detect last trading day of the month [SOLVED]
Replies: 8
Views: 5466

Re: Detect last trading day of the month [SOLVED]

arjfca thank you for your indicator In this forum http://forum.mql4.com/51054 , i found a script about last trading day I wrote this script in easylanguage .... but something is wrong: the indicator doesn't detect the last trading day! If month(date+1) <> month(date) then LastTradingDay = true; Bec...
by JoshM
09 Feb 2015
Forum: MultiCharts
Topic: Rithmic Paper Server choice not offered [SOLVED]
Replies: 2
Views: 1310

Re: Rithmic Paper Server choice not offered [SOLVED]

The Rithmic Paper Trading Broker Profile says the setting in 'Connectivity' should remain untouched (i.e., default), so no tweaking of 'Deployment', and that in the Default Order Setting 'simulator trade' can be available. Hopefully that clarifies it a bit for you.
by JoshM
09 Feb 2015
Forum: MultiCharts
Topic: Detect last trading day of the month [SOLVED]
Replies: 8
Views: 5466

Re: Detect last trading day of the month [SOLVED]

By the way, my above post complicates things a little bit if you only want to backtest. Because with running a script on historical data, the Symbol_Date keyword can be used to access the date of the next bar. That way you can take (bank) holidays into account and don't need to correct for weekends....
by JoshM
09 Feb 2015
Forum: MultiCharts
Topic: Detect last trading day of the month [SOLVED]
Replies: 8
Views: 5466

Re: Detect last trading day of the month [SOLVED]

Re: Detect last trading day of the month is there a easylanguage function or an easier way to detect the last trading day of each month? ( for example sell the last day of month...) If you don't want to take holidays into account (or don't have a historical list of holidays for the instruments in q...
by JoshM
07 Feb 2015
Forum: MultiCharts .NET
Topic: Close partial postions [SOLVED]
Replies: 10
Views: 6867

Re: Close partial postions [SOLVED]

Hi, Partial exit doesn't work as expected. Am I missing something? It is expected to Buy 3 lots at first bar, and then to sell 1 lot each in second, third, and fourth. But it doesn't sell at third and fourth bar. Your code is working as expected. That's because, by default, you'll need to create an...
by JoshM
07 Feb 2015
Forum: MultiCharts .NET
Topic: Portfolio Trading - Orders getting lost
Replies: 2
Views: 1816

Re: Portfolio Trading - Orders getting lost

If under any circumstance you send an order from within your CalcBar loop and Bars.Status != EBarState.Close your order will go nowhere, there will be no log/error/warning of this event taking place either. I think you mean that orders that are submitted intra-bar are only active till the next tick...
by JoshM
07 Feb 2015
Forum: MultiCharts .NET
Topic: Getting an instance of PowerLanguage.Bar
Replies: 5
Views: 2287

Re: Getting an instance of PowerLanguage.Bar

I think Volume is different from Ticks in that Volume is the number of shares/contracts traded but Ticks are the number of trades taken place where each can consist of one or more shares/contracts. Yes, but it also depends on the symbol's time frame. For Ticks: With Build Volume On is set to Tick C...
by JoshM
07 Feb 2015
Forum: MultiCharts .NET
Topic: Listing MultiCharts.NET API Issues
Replies: 8
Views: 3711

Re: Listing MultiCharts.NET API Issues

Thanks Orad for taking the time to document these things. They are currently outside the area of my competence and experience, but I do see the need for fixing these issues. The suggestions certainly would make the code easier to understand and more 'pretty' (as in, in line with how the code element...
by JoshM
06 Feb 2015
Forum: MultiCharts
Topic: Description on market scanner [SOLVED]
Replies: 2
Views: 1233

Re: Description on market scanner [SOLVED]

Would this help for what you intend to do? Symbol description in Real Time Market Scanner?
by JoshM
05 Feb 2015
Forum: MultiCharts
Topic: Access to Strategy Positions
Replies: 5
Views: 1612

Re: Access to Strategy Positions

imagine i run 20 charts/workspaces, i send all orders to trademanager as strategy position. I need a way to read all positions from all charts somehow without adding code to every single chart. Is this somehow possible with mc please? No, sorry. But perhaps with the MC-1497 - New Auto Trading and B...
by JoshM
03 Feb 2015
Forum: MultiCharts .NET
Topic: Changing default session in TWS version
Replies: 2
Views: 1428

Re: Changing default session in TWS version

Is there anyway to change the default session in multicharts-tws. I have been told I need the quote manager to this; but the quotemanager is not available in this version. It seems every time I open a new chart I have to go back and take off the premarket/postmarket data. I want to set my default t...
by JoshM
02 Feb 2015
Forum: MultiCharts .NET
Topic: Listing MultiCharts.NET API Issues
Replies: 8
Views: 3711

Re: Listing MultiCharts.NET API Issues

I agree with this topic, its content, and the need for it. But aren't something also a matter of personal preference? For example, - private fields are camel cased and start with underscore (_buyOrder instead of buy_order, or m_buyOrder, etc) Is advised against by Microsoft's General Naming Conventi...
by JoshM
31 Jan 2015
Forum: MultiCharts
Topic: Trading Performance Report can't generate report
Replies: 5
Views: 1815

Re: Trading Performance Report can't generate report

an entry-exit is a very basic in NT, TS etc. how else can we analyse our trades daily, weekly
There recently was a topic about a journal / diary application, in which also free options were offered. Perhaps you can find something helpful there to help you analyse your trades.
by JoshM
31 Jan 2015
Forum: MultiCharts
Topic: How to output milliseconds using FileAppend [SOLVED]
Replies: 11
Views: 4832

Re: How to output milliseconds using FileAppend [SOLVED]

(...) as a feature request: perhaps MultiCharts Support can update `FormatTime()` to also accept the `.fff` parameter to output DateTime values with milliseconds? That would work much easier and more intuitive than the workaround posted above. I've made a feature request for this idea here: MC-1847...
by JoshM
31 Jan 2015
Forum: MultiCharts
Topic: Trading Performance Report can't generate report
Replies: 5
Views: 1815

Re: Trading Performance Report can't generate report

Trading Performance Report can't generate report for IB ERROR ""Cannot calculate position information"" Andrew listed here the requirements for the Trading Performance Report (like symbol mapping). Perhaps the cause of the error can be found in the things he mentions. Dont want the individual repor...
by JoshM
31 Jan 2015
Forum: MultiCharts
Topic: debugger
Replies: 1
Views: 854

Re: debugger

I have some problems with my code and would like to use the debugger but it seems like it's not available anymore? Sadly there is no debugger for PowerLanguage. There is a feature request for this ( MC-196 - Debugger ), but this is an old request without progress, so a debugger doesn't seem to be i...
by JoshM
31 Jan 2015
Forum: MultiCharts
Topic: Trade Journal using the trading history for separate Brokers
Replies: 4
Views: 1752

Re: Trade Journal using the trading history for separate Bro

There's a basic feature request for a journal option here: MC-1305 - Journal tab, in case you want to vote on it or track its progress.
by JoshM
31 Jan 2015
Forum: MultiCharts
Topic: move my limit order to last price and condition
Replies: 17
Views: 4301

Re: move my limit order to last price and condition

The code works for me, and I don't had to enable or disable certain special settings. Have you also tried the signal on Playback Data? Then you can check whether the issue is with the signal or the order submitting in live trading. Btw, I really do hope that with 'active trading mode' you meant a de...
by JoshM
31 Jan 2015
Forum: MultiCharts
Topic: how to code in powerlanguage to get previous market position
Replies: 2
Views: 1664

Re: how to code in powerlanguage to get previous market posi

any help is deeply appreciated if marketposition[1] =0 and C>highest(H,3) then buy next bar at market... accurately code my idea that if previous market position is zero then buy when current close exceed the high of last 3 trading bars? i only want the signal to be "fired" if previous market posit...
by JoshM
31 Jan 2015
Forum: MultiCharts
Topic: Multicharts taking long time to load application? [SOLVED]
Replies: 10
Views: 3274

Re: Multicharts taking long time to load application? [SOLVED]

Since latest version (9.xx) of MC I am finding it takes a long time just to load the application and wondering if others are finding the same issue? What is a long time? On Windows 7 64-bit with MC 64bit in my case it takes around 15 seconds to load, of which around 5 seconds are spent authenticati...
by JoshM
30 Jan 2015
Forum: MultiCharts
Topic: Plot Lowest indicator only at last 10 bars [SOLVED]
Replies: 8
Views: 2416

Re: Plot Lowest indicator only at last 10 bars [SOLVED]

Your formula should plot the same as on your chart isn't? A copy/paste into the editor and after F3, this shows nothing on the chart. That's strange. --- After trying several times and looking at the parameters, it's now shown on the ES chart but when I try on another chart, it's nothing. How comes...
by JoshM
29 Jan 2015
Forum: MultiCharts .NET
Topic: Reload does not load data
Replies: 2
Views: 1646

Re: Reload does not load data

I use MC.Net with TWS IB. For a break in the line today I have two holes of data. As before, I uninstalled Java, I installed version 1,8,0_31-b13 for Windows 7. I rebooted the PC, I opened the TWS latest version (948,3c), which loads the data correctly, I started MC . Net, I still found the holes i...
by JoshM
29 Jan 2015
Forum: MultiCharts
Topic: Plot Lowest indicator only at last 10 bars [SOLVED]
Replies: 8
Views: 2416

Re: Plot Lowest indicator only at last 10 bars [SOLVED]

I want it to be plotted only under the latest 10 bar. I'm not really sure what your question is, because this sentence above is something quite different than your code (and the other part of your post) suggests. But this address this part (see my post above for the displacement part): you'll need ...
by JoshM
29 Jan 2015
Forum: MultiCharts
Topic: Plot Lowest indicator only at last 10 bars [SOLVED]
Replies: 8
Views: 2416

Re: Plot Lowest indicator only at last 10 bars [SOLVED]

Hi, I have an indicator that plots the lowest value of the close. Tough, it's plotted historical under every bar until the latest . I want it to be plotted only under the latest 10 bar. inputs: LengthA( 10 ), Displace( 0 ) ; variables: var0( 0 ), var1( 0 ) ; var0 = Lowest( Close, LengthA ); conditi...
by JoshM
29 Jan 2015
Forum: User Contributed Studies and Indicator Library
Topic: Add a delay ?
Replies: 7
Views: 4735

Re: Add a delay (part 2) ?

I am looking to add a "delay" after a trigger before trade entry . As a simple example say I am looking to delay trade entry after a moving average cross AND 90 seconds elapse. Simple pseudo code below: Condtion1 would be the entry criterion (moving average crossed over). Condition2 would be to wai...
by JoshM
28 Jan 2015
Forum: User Contributed Studies and Indicator Library
Topic: Add a delay ?
Replies: 7
Views: 4735

Re: Add a delay ?

I am looking to add a delay to change the type of order from a limit to a market order. How would I add a 90 second delay (after an exit condition has been triggered) to condition2 like the pseudo code below. Condtion1 would be the exit criterion. Do you mean with "after an exit condition has been ...
by JoshM
28 Jan 2015
Forum: MultiCharts .NET
Topic: DrwText problem when using if (Bars.LastBarOnChart)
Replies: 5
Views: 1939

Re: DrwText problem when using if (Bars.LastBarOnChart)

Sorry, I couldn't make sense of why the drawings aren't persistent, nor could I easily replicate order entries (since it depends on other variables) or find the `Bars.LastBarOnChart` check that would cause the error. I did notice that, on historical data, plotting text and lines is done correctly (f...
by JoshM
28 Jan 2015
Forum: MultiCharts .NET
Topic: DrwText problem when using if (Bars.LastBarOnChart)
Replies: 5
Views: 1939

Re: DrwText problem when using if (Bars.LastBarOnChart)

I using DrwText in a signal. When running in a LastBarOnChart if clause, this text disappears after less than a second, or does not display at all. This happens both with and without [IOGMode(IOGMode.Enabled)] Have you added the `RecoverDrawings` attribute to the top of your class, like this? [Reco...
by JoshM
27 Jan 2015
Forum: MultiCharts .NET
Topic: How to see Strategy Positions in Playback Mode? [SOLVED]
Replies: 2
Views: 1815

Re: How to see Strategy Positions in Playback Mode? [SOLVED]

When playing back the strategy on the chart, nothing is shown in the Order and Position Tracker! Where can I see the list of positions of the strategy that is being played back? Nowhere, sorry. At least not the specific info that the Order and Position Tracker provides. Some information can be foun...
by JoshM
27 Jan 2015
Forum: MultiCharts
Topic: nthHighestArray [SOLVED]
Replies: 4
Views: 2146

Re: nthHighestArray [SOLVED]

I am trying to use nthHighestArray( array, size, nth ) per the EL documentation but in MC I only get zero as return value in a fully populated array. MaxIndex/Sum:, 1808/4.43 Extremes: 4.15, 246 nthHighest: 0.00 nthLowest: 0.00 nthExtremes: -1.00, 0.00, -1 The source code of `nthHighestArray()` sho...
by JoshM
27 Jan 2015
Forum: MultiCharts
Topic: Fun with Cycles (a cycle simulator)
Replies: 2
Views: 1541

Re: Fun with Cycles (a cycle simulator)

I would know if it is possible to adapte this code from TS (9.1) to Multichart : I suppose so, but not with those smooth lines nor with the 'Fun with lines' options window from the screenshot. If you remove all code that doesn't work with MultiCharts (the method and advanced drawings), you'll end u...
by JoshM
27 Jan 2015
Forum: MultiCharts
Topic: closing status of a bar sometimes takes too long
Replies: 38
Views: 17449

Re: closing status of a bar sometimes takes too long

3. You pointed me to GetAppInfo(aiCalcReason) which returns the reason of the calculation. Per the documentation, besides the mouse events, this has only two other values (calclReason_default and calcReason_timer). I don't see values for recalculation due to market position change or order fills. I...
by JoshM
26 Jan 2015
Forum: MultiCharts
Topic: Positioning error text on the chart on Monday [SOLVED]
Replies: 4
Views: 1565

Re: Positioning error text on the chart on Monday [SOLVED]

thanks for the reply , I have changed the code but the result is the same see gif. If I change the day and insert the code works on Friday 01/23/2015 and so on except Monday. Should the text "Monday" be placed at the first bar of Monday or at the very last bar? In your indicator the following code ...
by JoshM
26 Jan 2015
Forum: MultiCharts
Topic: Positioning error text on the chart on Monday [SOLVED]
Replies: 4
Views: 1565

Re: Positioning error text on the chart on Monday [SOLVED]

text_setlocation (value, date- 1,0900 , lowd ( 1 ) ) on Monday is not working properly Because Date is in YYYMMdd format, it doesn't lend itself for arithmetic operations like subtracting 1. For example, if the date is 1 January 2015 (1150101), subtracting 1 gives 1150100, which would be the 0th of...
by JoshM
24 Jan 2015
Forum: MultiCharts
Topic: move my limit order to last price and condition
Replies: 17
Views: 4301

Re: move my limit order to last price and condition

inputs: pointdiff (20), order (false); variables: barclose (0), differencedown (0); barclose = close; differencedown = barclose - pointdiff; if order=true then buy 1 contract next bar at differencedown limit; in this "base code" I try simply to enter a limit order 20 point down close price, but not...
by JoshM
24 Jan 2015
Forum: MultiCharts .NET
Topic: Get the BarNumber of Bars.High.Highest [SOLVED]
Replies: 4
Views: 4665

Re: Get the BarNumber of Bars.High.Highest [SOLVED]

My goal is to return the BarNumber of Bars.High.Highest(100) for ex. Is there anything like: MyBarNumber = Bars.High.Highest(100).BarNumber I don't know of such a feature. But you can code this with a loop yourself. For example: int highestBar = 0; double highestHigh = 0; protected override void Ca...
by JoshM
23 Jan 2015
Forum: MultiCharts
Topic: Command line relating to Workspaces ie., Open and Close
Replies: 2
Views: 994

Re: Command line relating to Workspaces ie., Open and Close

Re: Command line relating to Workspaces ie., Open and Close I need to open certain workspaces at certain times of the day. In TS I am able to use the command line to open the specific workspaces. I don’t see any MC commands for Opening workspaces, have I overlooked them? See AutoLoad Workspaces bas...
by JoshM
23 Jan 2015
Forum: MultiCharts
Topic: Unable to Connect To Digital Rights System
Replies: 6
Views: 1756

Re: Unable to Connect To Digital Rights System

I have followed the OANDA video from the start. What's next? What does MC use for the login method? Does it access browser resources? If so, how can I troubleshoot that as the source of the issue? My reply to this will be the same as in your other topic topic with the same OANDA issue. :] Or is the...
by JoshM
23 Jan 2015
Forum: MultiCharts
Topic: Supertrend [SOLVED]
Replies: 19
Views: 11684

Re: Supertrend [SOLVED]

can it color the BG when trend changes
That's not possible in MultiCharts.
by JoshM
23 Jan 2015
Forum: MultiCharts .NET
Topic: OANDA Login Window Blank [SOLVED]
Replies: 2
Views: 1954

Re: OANDA Login Window Blank [SOLVED]

This topic, and its links, might be helpful. To summarise, you might need to check your Internet Explorer settings or any program that can influence IE (like a firewall or adware blocker).
by JoshM
22 Jan 2015
Forum: MultiCharts
Topic: is there a way to get total shares of specified entry
Replies: 3
Views: 1141

Re: is there a way to get total shares of specified entry

since the order is triggered by condition,so I dont know the order number ie pos TradeNumber. I want to retrieve order size by entry name,something like PosTradeSize(PosAgo, entryname) I think you can combine `PosTradeSize()` with PosTradeCount() for that. Because `PosTradeCount()` returns how many...
by JoshM
22 Jan 2015
Forum: MultiCharts .NET
Topic: .Send(num_lots) is not sending the proper number of orders [SOLVED]
Replies: 4
Views: 2147

Re: .Send(num_lots) is not sending the proper number of orde [SOLVED]

my_order = OrderCreator.MarketNextBar(new SOrderParameters(EOrderAction.SellShort, "my_order")); In CalcBar() section, I have the following code which does not produce the desired result. Every time it runs, it will create an order with 1 contract: If you want to specify the number of contracts in ...
by JoshM
21 Jan 2015
Forum: MultiCharts
Topic: is there a way to get total shares of specified entry
Replies: 3
Views: 1141

Re: is there a way to get total shares of specified entry

Re: is there a way to get total shares of specified entry for eg I have many entry signals in one strategy, and I want to get a entry ("buy name")' total entry shares ,is there a way? This can be retrieved with the PosTradeSize() keyword. If you want to work with the entry name as a workaroud, inst...
by JoshM
21 Jan 2015
Forum: MultiCharts
Topic: Record historical data. [SOLVED]
Replies: 8
Views: 3249

Re: Record historical data. [SOLVED]

hallo all, it is possibile in some way to record the historical data? my broker allow only 3 months in intraday, but i would like to record these datas every day and attach in cue to their datafeed. Such intra-day data is stored in the MultiCharts QuoteManager. See Collecting and Saving Data to Mul...
by JoshM
21 Jan 2015
Forum: MultiCharts
Topic: TWS connection error : broke:usfarm [SOLVED]
Replies: 15
Views: 7060

Re: TWS connection error : broke:usfarm [SOLVED]

any idea how does IB resolves this issue I don't know; that's something for IB. It also depends on whether it's really an issue: if the disconnects happen in the 'server reset times' (see the link in my post above) it's not an issue but expected behaviour. Do these errors need to be fixed for you? ...
by JoshM
21 Jan 2015
Forum: MultiCharts
Topic: logMACD
Replies: 4
Views: 1461

Re: logMACD

I want to add a logmacd study to multicharts. Open the original MACD indicator for the code: inputs: FastLength( 12 ), SlowLength( 26 ), MACDLength( 9 ) ; variables: var0( 0 ), var1( 0 ), var2( 0 ) ; var0 = MACD( Close, FastLength, SlowLength ) ; var1 = XAverage( var0, MACDLength ) ; var2 = var0 - ...
by JoshM
21 Jan 2015
Forum: MultiCharts
Topic: How to find this point [SOLVED]
Replies: 1
Views: 936

Re: How to find this point [SOLVED]

(..) i want to represent, with the plot, max1 only if it is higher than min1 ( max1 > min1 ); in the contrary case ( if max1 < min1 ) i want that nothing it is represent, both min1 and max1. How can i do this? If I understand correctly, you mean something like this? Variables: max1(0), min1(0); if ...
by JoshM
21 Jan 2015
Forum: MultiCharts
Topic: Visual order when use the tradingsystem
Replies: 3
Views: 1105

Re: Visual order when use the tradingsystem

could you explain me why when i use the tradingsystem, i see the visual order, instead my friend using 1 my workspace 2 my system 3 same broker don't see the visual order? also he have always the "Chart Trading" windows always open. maybe some settings somewhere? Have you checked the Chart Trading ...
by JoshM
21 Jan 2015
Forum: MultiCharts
Topic: TWS connection error : broke:usfarm [SOLVED]
Replies: 15
Views: 7060

Re: TWS connection error : broke:usfarm [SOLVED]

as I am new to MC. do we email MC support for these errors to find errors ? These aren't caused by MC but originate from IB. From another topic : So when a connect TWS to Multichart, I have the following error message: -"market data farm connection is broken:cashfarm" -"HMDS data farm connection is...
by JoshM
20 Jan 2015
Forum: MultiCharts
Topic: How to enter with Bar Magnifier?
Replies: 10
Views: 3974

Re: How to enter with Bar Magnifier?

When previous days low has been taken out, I want to go long within the same bar directly after the price goes above the previous days high. But my code buys, wrongly, at the high of the current bar. See pic, blue arrow. I use Intrabar Order Generation and Bar Magnifier (1 second) because enter and...

Go to advanced search