Search found 2195 matches

by JoshM
17 Feb 2023
Forum: MultiCharts
Topic: ComputerDateTime is wrong [SOLVED]
Replies: 4
Views: 525

Re: ComputerDateTime is wrong [SOLVED]

You're right, the number of days is calculated since December 30th, 1899. We corrected the info in the Wiki. But isn't this a bug? It seems strange to me that PowerLanguage starts counting days since December 30th and not since January 1st. That is not easy to work with at all. Is this how it's sup...
by JoshM
29 Apr 2022
Forum: MultiCharts
Topic: Request: dark theme for MultiCharts!
Replies: 10
Views: 2454

Request: dark theme for MultiCharts!

MultiCharts is an awesome trading platform, and a dark theme will make it better. I use dark mode with any application that offers it. Especially in the early morning (or late evening), it saves painful eyes. Every now and then people ask about dark mode on MultiCharts. Most platforms already offer ...
by JoshM
01 Dec 2020
Forum: MultiCharts
Topic: Indicator values in Scanner and Chart not match
Replies: 4
Views: 776

Re: Indicator values in Scanner and Chart not match

Am I miss something or any way to fix this?
Does the instrument in the market scanner window has the same start date and time as the chart has?

Several technical indicators are very sensitive to when the chart starts, because they use the previous bar value to calculate the current bar's value.
by JoshM
30 Nov 2020
Forum: MultiCharts
Topic: from mc export xml file to git
Replies: 14
Views: 1788

Re: from mc export xml file to git

Congrats on your tool Biffhero. :) 2. Use source control. I am certain that the professional money managers hire programmers who use source control. I note that even TradingView has source control built into the web platform. I'm not asking MC to make git happen. I'm saying that if we have access to...
by JoshM
27 Nov 2020
Forum: MultiCharts
Topic: Send order from Multicharts to Tradingview
Replies: 8
Views: 1660

Re: Send order from Multicharts to Tradingview

That's true, TradingView does not allow connections with other software (either on your computer or other online apps). You can send data in TradingView to other apps, but not the other way around. Bomberone1, there's a feature request for MultiCharts <-> TradingView integration here: https://www.mu...
by JoshM
27 Nov 2020
Forum: MultiCharts
Topic: OANDA - Cloudflare (Stuck)
Replies: 25
Views: 3350

Re: OANDA - Cloudflare (Stuck)

I hope MultiCharts can create a solution that does not require a pop-up window and logging in every now and then. I never got that working on my computer because the Internet Explorer pop-up never opens. Other trading platforms simply allow you to copy/paste the OANDA API key in their software, and ...
by JoshM
27 Nov 2020
Forum: MultiCharts
Topic: Automation of Portfolio Trader
Replies: 5
Views: 1031

Re: Automation of Portfolio Trader

I am not sure whether Multicharts.net can do better job? From what I know MultiCharts .NET cannot automate the backtest process. It has the same features as normal MultiCharts in this situation. (Or lacks the same things to put it differently.) It would be great if this can be automated, something ...
by JoshM
09 Nov 2020
Forum: MultiCharts
Topic: (yet another thread about) Complete Symbol Lists [UN-SOLVED]
Replies: 10
Views: 1714

Re: (yet another thread about) Complete Symbol Lists

Is this something that we can fix with EasyLanguage? PowerLanguage unfortunately doesn't have the capability to generate a symbol list. With MultiCharts .NET you can query symbols from the QuoteManager. But this is only retrieving the symbols that are already in the database. As far as I know, neit...
by JoshM
08 Nov 2020
Forum: MultiCharts
Topic: Manually Selected Rectangle [SOLVED]
Replies: 2
Views: 792

Re: Manually Selected Rectangle [SOLVED]

1) Is there any way to code a workaround that can identify whether a rectangle ID is manually selected? I think it might be possible with an elaborate workaround: if the code keeps track of which rectangles it affects (and thus make active), then when a rectangle becomes active without code having ...
by JoshM
31 Oct 2020
Forum: MultiCharts
Topic: Drawing trendlines in EasyLanguage [SOLVED]
Replies: 3
Views: 893

Re: Drawing trendlines in EasyLanguage

1. How do I set firstDate to be the first date on this chart? I have tried numerous things, none of them work. You can use the `Symbol_Date` variable to get the date for any bar of the data series, including the first (beyond the script's MaxBarsBack). Symbol_Date[Symbol_CurrentBar - 1] 2. How do I...
by JoshM
27 Oct 2020
Forum: MultiCharts
Topic: Can somebody convert this Pine script into Power Language?
Replies: 3
Views: 1390

Re: Can somebody convert this Pine script into Power Language?

I know a lot about Pine Script so I'd be happy to help if you have specific questions about turning Pine code into the MultiCharts equivalent.

Unfortunately converting all of that code by myself is a too big of ask on my free time.
by JoshM
22 Oct 2020
Forum: MultiCharts
Topic: what if intraday data and daily data not fit using bar magnifier? [SOLVED]
Replies: 3
Views: 749

Re: what if intraday data and daily data not fit using bar magnifier? [SOLVED]

As far as I know, when the 'Bar Magnifier' is enabled its data is used as input for the strategy's order calculations. So in the case where the 'Bar Magnifier' has a lower low than the daily chart shows, in theory the data of the first 'wins' from the second. But in your example there's quite a big ...
by JoshM
22 Oct 2020
Forum: MultiCharts .NET
Topic: MC.Net64 v14
Replies: 5
Views: 2139

Re: MC.Net64 v14

Good question! I looked on my computer but couldn't find a folder where MultiCharts .NET stores the hotkey information. So I unfortunately can't tell you where you could possibly recover them from.

Hopefully MultiCharts Support knows more to help!
by JoshM
22 Oct 2020
Forum: MultiCharts
Topic: MultiCharts 14.0 Release
Replies: 77
Views: 15176

Re: MultiCharts 14.0 Release

1) that .NET version is still in Beta No that .NET version is really the release of MultiCharts .NET 14. :) It was announced on the blog . 2) why post here ?....there is a separate forum for .NET issues Valid question. I can't answer it, but MultiCharts .NET 14 didn't get a release topic from Multi...
by JoshM
14 Oct 2020
Forum: MultiCharts
Topic: Matching MC bars to TradingView bars [SOLVED]
Replies: 7
Views: 1947

Re: Matching MC bars to TradingView bars [SOLVED]

Yikes -- I took a look around the custom resolutions, and it's pretty impenetrable without some documentation. Even just a template for basic bar charts would be nice; then the only tweak that we'd need to draw MC bars like TradingView is for the time stamp to be at the open rather than the close o...
by JoshM
08 Oct 2020
Forum: MultiCharts
Topic: Divergence Strategy works intermittent
Replies: 3
Views: 879

Re: Divergence Strategy works intermittent

my thoughts (with no answer right now) for the problem: does Renko/kase bar charts work for strategies different from regular charts? The wiki has a page with the backtesting differences between the different resolution types. somehow it doesn't catch all the setups. (...) Is coding the problem? It...
by JoshM
08 Oct 2020
Forum: MultiCharts
Topic: Matching MC bars to TradingView bars [SOLVED]
Replies: 7
Views: 1947

Re: Matching MC bars to TradingView bars [SOLVED]

I use TradingView a lot and matching bars to MultiCharts is incredibly difficult. Like you already mentioned, there is a difference in bar time stamps. But there are also significant data feed differences, since data on TradingView is different from the data feeds that MultiCharts uses. (Even the da...
by JoshM
05 Oct 2020
Forum: MultiCharts
Topic: something like spread
Replies: 12
Views: 1770

Re: something like spread

when I say start entry at 14.30 it means that it is only chance to entry , I mean if condition is at 15.00 I dont want entry at market. I understood so from the original comments. It's in the code with this if statement: if time = Start_Time then begin Code inside this if statement only executes wh...
by JoshM
01 Oct 2020
Forum: MultiCharts
Topic: something like spread
Replies: 12
Views: 1770

Re: something like spread

Okay, with that information we can update the code a little further: // Data1: ES, Data2: NQ Input: Start_Time(1430), Close_Time(1700), ES_Entry_Point_Filter(-2), NQ_Entry_Point_Filter(20), NQ_Entry_Return(0.40), ES_Entry_Return(-0.10); Variables: returnES(0), returnNQ(0), tradeCondition(false), esC...
by JoshM
01 Oct 2020
Forum: MultiCharts
Topic: Strategies calling strategies. [SOLVED]
Replies: 5
Views: 1473

Re: Strategies calling strategies. [SOLVED]

While I am working on signals, I have a lot of template code that gets copied into each one. (...) Is it possible to have a signal called _filterStrategy and have that called (maybe with a "#include" ??) from the ones I am working on? In addition to what TJ already covered, the specific thing quote...
by JoshM
28 Sep 2020
Forum: MultiCharts
Topic: something like spread
Replies: 12
Views: 1770

Re: something like spread

but if we change percentage in points ? give up on percentage ,maybe in points is possible? I mean : if ES LOSE 2 POINTS AND ND GAIN 20 POINTS AT 1430 THEN SHORT 3 CONTRACTS OF ES. Sure that is possible. But this has the same problem as the percentages. That is, to code a certain point loss or gain...
by JoshM
28 Sep 2020
Forum: MultiCharts
Topic: bar magnifier on portfoliotrader?
Replies: 3
Views: 836

Re: bar magnifier on portfoliotrader?

is bar magnifier available on portfolio trader? Unfortunately not. There were recent topics about it (for instance here ) but we haven't heard if, and possibly when, this feature is going to be added. (I can't give a specific recommendation for hourly continuous futures data, but most data feeds of...
by JoshM
24 Sep 2020
Forum: MultiCharts
Topic: something like spread
Replies: 12
Views: 1770

Re: something like spread

The code below is a start. But I don't know how you calculate the percentages. So I can't complete that piece of the puzzle. // Data1: ES, Data2: NQ Input: Start_Time(1430), NQ_Entry_Return(0.40), ES_Entry_Return(-0.10); Variables: returnES(0), returnNQ(0), tradeCondition(false); // Look for trades ...
by JoshM
24 Sep 2020
Forum: MultiCharts
Topic: Does MC support TS data provider and order routing?
Replies: 1
Views: 710

Re: Does MC support TS data provider and order routing?

Does MC support TS as datafeed/provider for historical data and backtesting? Yes, you can get historical data (as well as real-time) from TS into MultiCharts. Once that data is into MultiCharts you can make charts and backtest in the Portfolio Trader. And does MC support TS for order execution? TS ...
by JoshM
23 Sep 2020
Forum: MultiCharts
Topic: MACD on Data2 not replicating on Data1
Replies: 3
Views: 695

Re: MACD on Data2 not replicating on Data1

And no TJ, I don't need to supply more code or a chart.
It can be quite frustrating to deal with platform problems, but I think a chart picture would help. I rarely use Renko charts so I don't have a good visual picture in my mind of what you're talking about.
by JoshM
23 Sep 2020
Forum: MultiCharts
Topic: something like spread
Replies: 12
Views: 1770

Re: something like spread

I don't care about profitable strategies, but I do think this is backtestable (or I must be overlooking something). If you can make your instructions more explicit, they can probably be turned into code. As an example, two things that I don't understand from your original post is what the future is ...
by JoshM
23 Sep 2020
Forum: MultiCharts
Topic: Calling compiler from external editor
Replies: 8
Views: 2202

Re: Calling compiler from external editor

It would for sure be nice to write MultiCharts PowerLanguage code in a different editor. I don't know the answer, but perhaps you can make progress with what I know: When you compile in the PowerLanguage Editor, MultiCharts's `StudyServer.exe` process calls `g++.exe`, which in turn executes `cc1plus...
by JoshM
22 Sep 2020
Forum: MultiCharts
Topic: something like spread
Replies: 12
Views: 1770

Re: something like spread

Do you already have a piece of code we can continue the work from? That would make helping easier and quicker for us.
by JoshM
22 Sep 2020
Forum: MultiCharts
Topic: datetime of lastbar
Replies: 2
Views: 606

Re: datetime of lastbar

`Symbol_DateTime` (undocumented) can return the DateTime value for any bar on the chart. You'll need to use a negative index to access future bars (e.g., `Symbol_DateTime[-1]` gives the DateTime of the next bar). If your index goes beyond the number of bars on the chart, MultiCharts triggers an erro...
by JoshM
17 Sep 2020
Forum: MultiCharts
Topic: RecalcLastBarAfter(): need some clarification.
Replies: 1
Views: 682

Re: RecalcLastBarAfter(): need some clarification.

So to try to get an update of the bid and ask also in the signal I thought to use the RecalcLastBarAfter function once per second, and I would like an explanation of the observed behavior: Correctly every second the line of the print function is reprinted, but it seems that Time_s is not recalculat...
by JoshM
11 Sep 2020
Forum: MultiCharts
Topic: Functions return different value in Indicator and strategy
Replies: 2
Views: 1102

Re: Functions return different value in Indicator and strategy

I got the same results for the indicator and for the signal. I copied your function code into a new function file on my end, which I set to series. Then in the indicator I did (this and no more code than this): if currentbar > 1000 then begin condition1 = false; Print(PrintDateTime(0), "Indicator TT...
by JoshM
07 Sep 2020
Forum: MultiCharts
Topic: Use of "Open of Next Bar" in Trading-Signals [SOLVED]
Replies: 4
Views: 1359

Re: Use of "Open of Next Bar" in Trading-Signals [SOLVED]

You can use the `Symbol_Open` variable to get the open price of the next bar. See https://www.multicharts.com/trading-software/index.php/Symbol_Open for more. This does require that your script doesn't run on the last bar of the chart, or else `Symbol_Open` triggers an error. (You can check for that...
by JoshM
04 Sep 2020
Forum: MultiCharts
Topic: Variadic function
Replies: 4
Views: 972

Re: Variadic function

As far as I know it's not possible in MultiCharts PowerLanguage to make a function that accepts an arbitrary number of argument values. What you can do as a workaround is to give the function an array input, and then inside the function loop through the array and collect the argument values that way.
by JoshM
03 Sep 2020
Forum: MultiCharts
Topic: Limit number of trade executions. [SOLVED]
Replies: 2
Views: 937

Re: Limit number of trade executions. [SOLVED]

The value that the `TotalTrades` variable returns should increase even if the strategy switches from a long to a short position (or vice versa). Perhaps you can try monitoring that variable? There's also the `MaxPositionsAgo` variable if you want to know how many positions the strategy traded, if th...
by JoshM
01 Sep 2020
Forum: MultiCharts
Topic: Alert settings SuperTrend
Replies: 2
Views: 929

Re: Alert settings SuperTrend

It might be that the indicator has no alerts programmed in it. I see that the page on that website doesn't mention alerts, and I think that if alerts were added, he probably would mention them as a feature. Because that SuperTrend file is locked, you can not add your own alerts to it. Luckily there ...
by JoshM
31 Aug 2020
Forum: MultiCharts .NET
Topic: Is it possible to add a new broker in Broker Profiles?
Replies: 1
Views: 1131

Re: Is it possible to add a new broker in Broker Profiles?

It's usually not possible to add a new broker to MultiCharts (.NET) yourself. Only when the broker is an introducing broker for one of the supported brokers is that possible. For instance, FXMTF.com is an introducing broker for LMAX, so you can add FXMTF to MultiCharts by using the LMAX broker profi...
by JoshM
26 Aug 2020
Forum: MultiCharts
Topic: Trend line breakout
Replies: 1
Views: 693

Re: Trend line breakout

The way I understand that code is: VALUE1=@MOMENTUM(C,3); VALUE2=@MOMENTUM(C,3)[1]; This calculates the 3-bar momentum of closing prices and puts that value in the `value1` variable. Then the code calculates the 3-bar momentum of the close for the previous bar. That value is put into the `value2` va...
by JoshM
26 Aug 2020
Forum: MultiCharts
Topic: MarketPosition_at_Broker_for_The_Strategy -- question
Replies: 2
Views: 758

Re: MarketPosition_at_Broker_for_The_Strategy -- question

The way I understand it, is that `MarketPosition_at_Broker_for_the_Strategy` returns a different value for each chart, and that each chart is treated as if it were unique. So it should not matter that other charts trade the same symbol with the same strategy. Here is a helpful comment from Andrew ab...
by JoshM
24 Aug 2020
Forum: MultiCharts
Topic: Bar magnification for data streams other than one.
Replies: 4
Views: 1485

Re: Bar magnification for data streams other than one.

As for Portfolio Trader which I use daily, it seems to be forgotten apart from the occasional bug fix. It would be nice to get an update from MultiCharts on this. Me, and people I know, often run into limitations with the Portfolio Trader because there's no intra-bar order generation/Bar Magnifier ...
by JoshM
24 Aug 2020
Forum: MultiCharts
Topic: write number trendline in the visibe chart
Replies: 2
Views: 829

Re: write number trendline in the visibe chart

It is possible to use PowerLanguage to see which part of the chart is currently visible in my view. `GetAppInfo(aiHighestDispValue)` returns the highest price coordinate in the current chart view. It looks like this is keyword you need to get the price coordinate of where to place the trend line num...
by JoshM
19 Aug 2020
Forum: MultiCharts
Topic: Barnumber is supposed to be UNIQUE for every chart bar? Why it is so hard to obtain the same barnumber of data window?
Replies: 7
Views: 1541

Re: Barnumber is supposed to be UNIQUE for every chart bar? Why it is so hard to obtain the same barnumber of data windo

So there's no way I can match that 572 showed in the image in the Data Window. I need to save the BARnumber values of some swings of the zig to access to the related bar values in the futures.... time and Data are not enought because I need the barNumber to make the code work correctly also in TICK...
by JoshM
18 Aug 2020
Forum: MultiCharts
Topic: Barnumber is supposed to be UNIQUE for every chart bar? Why it is so hard to obtain the same barnumber of data window?
Replies: 7
Views: 1541

Re: Barnumber is supposed to be UNIQUE for every chart bar? Why it is so hard to obtain the same barnumber of data windo

In the output ABOVE you can see "Symbol_CurrentBar + MaxBarsBack" PRINTED AS "BarNum" and it print 780 while in data windows we have a total of 535 bars in the chart.... (I 'm running on a 10minutes candlestick chart)... I don't have this problem with MultiCharts so it's hard to tell what's going o...
by JoshM
18 Aug 2020
Forum: MultiCharts
Topic: Convert TS .eld - Rob Smith theStrat indicators
Replies: 3
Views: 1132

Re: Convert TS .eld - Rob Smith theStrat indicators

Unfortunately MultiCharts doesn't support all the code features that TS has. From the screenshot you posted, things like `using` statements, `Vector` variables, and `TextLabel` variables aren't available in MultiCharts PowerLanguage. Those kind of features either need to be removed from the TS code ...
by JoshM
17 Aug 2020
Forum: MultiCharts
Topic: Barnumber is supposed to be UNIQUE for every chart bar? Why it is so hard to obtain the same barnumber of data window?
Replies: 7
Views: 1541

Re: Barnumber is supposed to be UNIQUE for every chart bar? Why it is so hard to obtain the same barnumber of data windo

Sorry to hear about all the issues you are having. Is perhaps `Symbol_CurrentBar + MaxBarsBack` worth a try? `Symbol_CurrentBar` (https://www.multicharts.com/trading-software/index.php?title=Symbol_currentbar) is a built-in variable so it won't be affected by a different MaxBarsBack setting. Of cour...
by JoshM
08 Jul 2020
Forum: MultiCharts
Topic: Bar magnification for data streams other than one.
Replies: 4
Views: 1485

Re: Bar magnification for data streams other than one.

I'm also curious to hear possible future plans for this. For background information, I found in the project management two related issues: - Bar Magnifier and IOG for the Portfolio Backtesting and Trading - Backtesting precision with bar magnifier with multiple frame Both requests were postponed in ...
by JoshM
02 Jul 2020
Forum: MultiCharts
Topic: LMAX datafeed disconnecting [SOLVED]
Replies: 2
Views: 789

Re: LMAX datafeed disconnecting [SOLVED]

I use LMAX demo too, but don't experience datafeed disconnects. You don't have trouble reaching the demo login on the LMAX website from your computer?

In case it's relevant, the 'use heartbeats for connection loss detection' is enabled for me in the QuoteManager. Do you have that one turned on?
by JoshM
01 Jul 2020
Forum: MultiCharts
Topic: inaccurate entries/exits [SOLVED]
Replies: 7
Views: 1624

Re: inaccurate entries/exits [SOLVED]

most of the exits/new entries are not accurate with too much slippage although not volatile market. using MES future regular chart, IOG enabled, the data stream from IB seems OK. example - buy entry at 3112.25 - accurate according to entry signal. next - inaccurate position management - first "reco...
by JoshM
26 Jun 2020
Forum: MultiCharts
Topic: backtest correlation. [SOLVED]
Replies: 2
Views: 1020

Re: backtest correlation. [SOLVED]

1.Can I backtest two instruments correlation coefficient to trade? such as I insert "aapl" in the chart , I want to know "AAPL" the correlation with "FB". if two instruments is inverse relation and "AAPL" price down, I will buy the "FB". This is possible in the Portfolio Trader but not on the chart...
by JoshM
26 Jun 2020
Forum: MultiCharts
Topic: Sort by Select Net Profit in optimization
Replies: 2
Views: 852

Re: Sort by Select Net Profit in optimization

'Select Net Profit' is unfortunately not something that's available in the Optimization Report by default. If you know how to calculate it, you can use the `SetCustomFitnessValue()` function to specify this value inside the strategy itself. That computed value then displays in the 'Custom Fitness Va...
by JoshM
24 Jun 2020
Forum: MultiCharts
Topic: tick resolution causing Floating point error [SOLVED]
Replies: 16
Views: 2988

Re: tick resolution causing Floating point error [SOLVED]

I don't know the 'VWAP Array 11' indicator, but the floating point error is caused by this indicator. And not by the chart's resolution.

Since it looks to be a custom indicator, did you perhaps code it to require a minimum resolution of 500 in its calculations?
by JoshM
22 Jun 2020
Forum: MultiCharts .NET
Topic: Check Backtesting Mode From Strategy
Replies: 2
Views: 1222

Re: Check Backtesting Mode From Strategy

need to know if strategy was backtested in classic or extended mode.
It is, as far as I know, not possible to programmatically determine which backtesting mode is used.
by JoshM
22 Jun 2020
Forum: MultiCharts
Topic: tick resolution causing Floating point error [SOLVED]
Replies: 16
Views: 2988

Re: tick resolution causing Floating point error [SOLVED]

Is that floating point error triggered by MultiCharts itself, or by one of the scripts you have on the chart?
by JoshM
19 Jun 2020
Forum: MultiCharts .NET
Topic: Tick value of /MES not returning correct values.
Replies: 3
Views: 1744

Re: Tick value of /MES not returning correct values.

Usually to calculate the tick size it's: (minmove / pricescale) * bigpointvalue. Given your output I don't think your instrument settings for MES are correct in the QuoteManager. It probably has to be: - Big point value: 5 - Min movement: 25 - Price scale: 1/100 (Just to confirm, I'm talking about t...
by JoshM
19 Jun 2020
Forum: MultiCharts
Topic: How to increase/decrease shares ?
Replies: 3
Views: 1058

Re: How to increase/decrease shares ?

MC open the first contract but does not increase the position. In addition to what TJ said, it might also be that the strategy has scaling into positions disabled. In order for MultiCharts to scale into positions, you'll need to enable the 'Allow up to n entry orders in the same direction as the cu...
by JoshM
16 Jun 2020
Forum: MultiCharts
Topic: Money Management
Replies: 1
Views: 724

Re: Money Management

Hi there! What did you plan to do with this piece of code? //sell signal if condition1 then begin condition2 ; end; if condition2 then begin condition3; end; I suspect you meant that, if `condition1` is true, `condition2` should become true as well. And when `condition2` is true, `condition3` needs ...
by JoshM
16 Jun 2020
Forum: MultiCharts
Topic: Extract XML file from Easylanguage
Replies: 3
Views: 995

Re: Extract XML file from Easylanguage

You can use any of the `PosTrade*` keywords to access trade data from the strategy, and then have `FileAppend()` output the results to the XML format. This is a bit work intensive since you'll need to make sure that the output that the code generates is valid XML. I'm unfortunately not aware of exte...
by JoshM
16 Jun 2020
Forum: MultiCharts .NET
Topic: time-of-day examples for .NET
Replies: 2
Views: 1274

Re: time-of-day examples for .NET

I can't speak for others but the reason why I didn't comment is that you have general questions: examples of time of day tasks. I don't have the time to code a dozen examples for you and hope that one of them does what you aim to achieve. Regarding your question about an event that fires at a partic...
by JoshM
10 Jun 2020
Forum: MultiCharts
Topic: Hedging position
Replies: 2
Views: 1009

Re: Hedging position

As far as I know hedging (long and short at the same time) is impossible in MultiCharts. There's a feature request for it here, but that one is unfortunately declined.
by JoshM
10 Jun 2020
Forum: MultiCharts
Topic: Multiple Limit Orders
Replies: 8
Views: 1757

Re: Multiple Limit Orders

Ah now I understand what you meant with the opening order. But if you don't mind, I won't participate in this forum thread anymore. Reading, replying, figuring out what you meant, and coding already took a decent portion of my free time. Perhaps someone else here on the forum has the time and motiva...
by JoshM
09 Jun 2020
Forum: MultiCharts
Topic: Multiple Limit Orders
Replies: 8
Views: 1757

Re: Multiple Limit Orders

This one works better BUT it is not working as it should... Your code also "recalculates" the previous limit orders closing price... I thought I coded the strategy like you wished. Since you asked: So can you please tell me how do I code such a simple strategy I've described in my first message? An...
by JoshM
08 Jun 2020
Forum: MultiCharts
Topic: Multiple Limit Orders
Replies: 8
Views: 1757

Re: Multiple Limit Orders

BUT I thought that as soon as a limit order is placed its closing price doesn't change... So each limit order I place must have it's own closing price which is not recalculating on every future bar... Well we can use the `Open` variable for your limit exits, since that variable will not change duri...
by JoshM
06 Jun 2020
Forum: MultiCharts
Topic: Multiple Limit Orders
Replies: 8
Views: 1757

Re: Multiple Limit Orders

Sell StocksToBuy shares Next Bar (close+0.025*close) Limit; I cannot see the price axis so don't know for sure if the following applies to your code. But can it be that this limit order executes too late because it always takes the current bar's close as the limit price? In other words, this limit ...
by JoshM
05 Jun 2020
Forum: MultiCharts
Topic: Indicator Open
Replies: 3
Views: 950

Re: Indicator Open

I want to stop and open the opposite position in the same time. if MACD >0 and MP =0 and WPR[1] < 80 then begin Buy ("Long") 1 contract next bar at C limit; end; if MACD <0 and MP = 1 then begin Sell ("Stop Long") 1 contract next bar at close limit; sellshort ("Short1") 1 contract next bar at C lim...
by JoshM
05 Jun 2020
Forum: MultiCharts
Topic: eSignal having trouble to lookup symbols with MultiCharts 12.0 Release 12 builds 200281 (x64)
Replies: 9
Views: 1544

Re: eSignal having trouble to lookup symbols with MultiCharts 12.0 Release 12 builds 200281 (x64)

There's a post here about not being able to create a TLS/SSL connection to eSignal, which looks like the same error you got. After that mentioned post there's a reply from MultiCharts Support with link to a fix. Good luck! Edit: Oops, I now see that I confused the MultiCharts .NET forum for the Mult...
by JoshM
04 Jun 2020
Forum: MultiCharts
Topic: Chart Trading Micro Gold Price Increment
Replies: 5
Views: 1273

Re: Chart Trading Micro Gold Price Increment

Good to hear that you have it sorted! :) Price scale 1/10 Min. Movement 1 Big point Value(Whatever that is) 5?!? The 'big point value' is how much currency one full point of price movement is worth. For the Russell 2000 micro's that's indeed $5 dollar since they represent five times the Russell 2000...
by JoshM
04 Jun 2020
Forum: MultiCharts
Topic: Indicator Open
Replies: 3
Views: 950

Re: Indicator Open

I don't know if I fully understand, but you can use `BarStatus()` to look if the script calculates on the opening tick of the bar. That should make it possible to trade the value that the indicator had at the open of the bar. (Note that your strategy does need to use `IntraBarOrderGeneration` for th...
by JoshM
04 Jun 2020
Forum: MultiCharts
Topic: Backtest only constituents of sp500 15 y back
Replies: 2
Views: 773

Re: Backtest only constituents of sp500 15 y back

However since norgate is not supported by Multicharts, anyone have a solution ? If you have a list of symbols that were present in which year, I think you can code that into your strategy logic. This will unfortunately be a lot of work since there probably have been a lot of changes to the S&P 500 ...
by JoshM
04 Jun 2020
Forum: MultiCharts
Topic: Chart Trading Micro Gold Price Increment
Replies: 5
Views: 1273

Re: Chart Trading Micro Gold Price Increment

Any idea of what i'm doing wrong?
Unfortunately I don't have MGC in my MultiCharts so cannot tell with certainty what the settings should be. Sorry for that.

Perhaps other MultiCharts users can chime in or support.
by JoshM
31 May 2020
Forum: MultiCharts
Topic: Chart Trading Micro Gold Price Increment
Replies: 5
Views: 1273

Re: Chart Trading Micro Gold Price Increment

Welcome to the forum. :) They should move by .10 increments. This causes error messages with IB(Interactive Brokers) I was wondering where i need to go to fix this if possible. You'd do that in the QuoteManager. There double-click on the MGC instrument you want to change. That opens a window with sy...
by JoshM
27 May 2020
Forum: MultiCharts
Topic: Historical data and Multicharts [SOLVED]
Replies: 11
Views: 2642

Re: Historical data and Multicharts [SOLVED]

Because it has to be free, you're unfortunately also limited by what kind of free trails the data provider offers. IQFeed, for instance, has good data (and high price). But its free trail is limited to 8 calendar days of intra-day data and 365 days of daily data ( source ). Since you already know wh...
by JoshM
26 May 2020
Forum: MultiCharts
Topic: Volume Multiplier for Bitfinex crypto pairs
Replies: 2
Views: 1167

Re: Volume Multiplier for Bitfinex crypto pairs

There's a wiki page on the volume multiplier here. Perhaps that can help.

I say 'perhaps' because I have the same issue but couldn't figure it out with the wiki help. :)

So if you find the solution let us know!
by JoshM
26 May 2020
Forum: MultiCharts
Topic: Is it possible to access volume profile with PowerLangugage
Replies: 1
Views: 586

Re: Is it possible to access volume profile with PowerLangugage

Not that I could find, unfortunately. I think Volume Profile is still intended to be exclusive for MultiCharts .NET, as mentioned in this topic.

There's a feature request for using the Volume Profile in PowerLanguage here where you can vote/track this feature.
by JoshM
24 May 2020
Forum: MultiCharts
Topic: Scaling IN
Replies: 3
Views: 942

Re: Scaling IN

I think you need to set the 'Maximum shares/contracts per position' option from your image to a higher value than 1. When that value is one, the first entry order also makes the market position get the maximum size. And so additional entries aren't filled. I tested and that's how it works on my end....
by JoshM
22 May 2020
Forum: MultiCharts
Topic: Scaling IN
Replies: 3
Views: 942

Re: Scaling IN

Just to rule of an accidental wrong setting: did you allow the strategy, in the 'Strategy Properties' window, to scale into positions? That setting is under 'Position Limits' and has radio buttons for 'when the order is generated by a different entry order' and 'regardless of the entry that generate...
by JoshM
15 May 2020
Forum: MultiCharts
Topic: Newb question [SOLVED]
Replies: 6
Views: 1284

Re: Newb question [SOLVED]

if a variable is initiated inside a Begin / End section of a script and that section never Begins... Does that variable get initialized? what value is in that variable if it never gets initialized? It's not possible to make a variable without also initialising it at the same time. To make a variabl...
by JoshM
13 May 2020
Forum: MultiCharts
Topic: trade profit wrong - Stock
Replies: 2
Views: 769

Re: trade profit wrong - Stock

I wonder whether it is doing any currency conversions that I can't find the setting for? If the currency setting in the strategy properties window is the same as the currency for the instrument's exchange (from the QuoteManager), then there shouldn't be a currency conversion happening by MultiChart...
by JoshM
13 May 2020
Forum: MultiCharts
Topic: Print Volume = 0
Replies: 3
Views: 1048

Re: Print Volume = 0

I think you need the `Ticks` keyword for this. Because depending on your chart settings, that keyword returns a bar's total volume.

The `Volume` keyword, on the other hand, only returns the number of up ticks. (I know, confusing right!)
by JoshM
10 May 2020
Forum: MultiCharts .NET
Topic: MULTICHARTS .NET 14.0 BETA 3
Replies: 5
Views: 3055

Re: MULTICHARTS .NET 14.0 BETA 3

I don't want to answer this for MultiCharts Support, but to give some information in the mean time: Regular MultiCharts 14 has an ETA of summer 2020 (so no later than September 1) I read on this blog post. Probably MultiCharts .NET releases around the same time, so that the Advanced Strategy Pack is...
by JoshM
10 May 2020
Forum: MultiCharts
Topic: an incomprehensible problem
Replies: 11
Views: 2479

Re: an incomprehensible problem

Does this problem also happen when you set the MaxBarsBack for the indicator explicitly? (So instead of automatic MaxBarsBack detection.) If that's the case, then this problem happens because MultiCharts has to inspect your function to see how many historical bars it needs for its computations. From...
by JoshM
10 May 2020
Forum: MultiCharts
Topic: Arraysize]: how i use it?
Replies: 1
Views: 722

Re: Arraysize]: how i use it?

hi, i need to resize array but i look documentation and i don't find any information If you have a dynamic array, you can resize it with the `Array_SetMaxIndex()` function. That function needs two values: the array to resize and the array's new maximum index (length). `Array_GetMaxIndex()` returns ...
by JoshM
27 Apr 2020
Forum: MultiCharts
Topic: Custom Criteria Editor
Replies: 3
Views: 1012

Re: Custom Criteria Editor

Thanks for the input. I’ve tried using those, the built in Sharp Ratio, and it produces a division by zero error. This is attached to code that otherwise has traded without issue forever! I know I’m doing something wrong I just can’t figure out what that is! It doesn't have to be your mistake! It m...
by JoshM
27 Apr 2020
Forum: MultiCharts
Topic: Change font in expert commentary window
Replies: 5
Views: 1315

Re: Change font in expert commentary window

The problem is the multiple spaces do not show up in the Expert Commentary window. If you use multiple ` ` symbols in the text, one for each space, it should work properly. It's a bit annoying (and ugly), but you have to swap the ' ' (space) for ` ` in the sentence. That way it should wor...
by JoshM
27 Apr 2020
Forum: MultiCharts .NET
Topic: Is VolumeProfile in strategy optimizer not supported ?!
Replies: 7
Views: 2906

Re: Is VolumeProfile in strategy optimizer not supported ?!

is "this.VolumeProfile" in optimizer not supported ? I don't think so. The wiki says that we first need to enable the Volume Profile on the chart and then add the indicator script that uses the Volume Profile programmatically. I understand that as if the script relies on the Volume Profile being ac...
by JoshM
24 Apr 2020
Forum: MultiCharts
Topic: Change font in expert commentary window
Replies: 5
Views: 1315

Re: Change font in expert commentary window

I would like that line in ExpertCommentary window be be in Courier New format Any easy way to do that is probably with the `<span>` HTML element, since that one is for formatting/styling text. To do so, you'd use a `style` attribute with `<span>`. For instance, this piece of HTML code makes the tex...
by JoshM
24 Apr 2020
Forum: MultiCharts
Topic: Custom Criteria Editor
Replies: 3
Views: 1012

Re: Custom Criteria Editor

is there a resource library available with sample codes above and beyond what’s native within MC that I might try? There's a discussion here with several examples and more information. But the Custom Criteria Editor is kind of the old way of defining a custom criteria, because now there's also the ...
by JoshM
17 Apr 2020
Forum: MultiCharts .NET
Topic: Alert when position hits target
Replies: 3
Views: 1658

Re: Alert when position hits target

Awesome, glad I could help! :)
by JoshM
17 Apr 2020
Forum: MultiCharts
Topic: Mass Compile Strategies From Text Files
Replies: 7
Views: 1606

Re: Mass Compile Strategies From Text Files

I need that functionality too for Multicharts .NET! It should be possible to get multiple .CS code files into the Multicharts .NET editor and compile then without copy & paste. If you move the .cs files into the folder with all the studies (on my pc it's C:\ProgramData\TS Support\MultiCharts .NET64...
by JoshM
16 Apr 2020
Forum: MultiCharts .NET
Topic: Alert when position hits target
Replies: 3
Views: 1658

Re: Alert when position hits target

I think the code of this signal script does what you want: using System; using System.Drawing; using System.Linq; using PowerLanguage.Function; using ATCenterProxy.interop; namespace PowerLanguage.Strategy { public class AlertProfitTarget : SignalObject { public AlertProfitTarget(object _ctx) : base...
by JoshM
15 Apr 2020
Forum: MultiCharts
Topic: [AutoTrading] How to get initial margin & maintenance margin
Replies: 7
Views: 2044

Re: [AutoTrading] How to get initial margin & maintenance margin

Bump. Was this ability ever added?
I'm not sure. The feature request says it's released, but I don't see what the PowerLanguage keyword/function would be.

Perhaps with `GetRTAccountNetWorth()`? The help page isn't that descriptive and can't test so don't know for sure.
by JoshM
08 Apr 2020
Forum: MultiCharts
Topic: BugTracker & feature requests bug fix ideas
Replies: 4
Views: 1652

Re: BugTracker & feature requests bug fix ideas

Is there a way to get the full list of bug tracker entries we have submitted? Yes this is possible, although it involves several steps: 1. Go to an issue filed by you. 2. Click on the user name that's shown on the left ('Posted by' ... row). 3. That opens a small window with the user's info. Click ...
by JoshM
06 Apr 2020
Forum: MultiCharts .NET
Topic: How to Make "double[]" Global
Replies: 5
Views: 1955

Re: How to Make "double[]" Global

Thanks for the clarification! If you want to access the array anywhere in the same script, you have to make it in the code block that says 'public class'. So at the same level. For example: https://www.multicharts.com/discussion/download/file.php?mode=view&id=12074 You can access it then anywhere in...
by JoshM
05 Apr 2020
Forum: MultiCharts .NET
Topic: How to Make "double[]" Global
Replies: 5
Views: 1955

Re: How to Make "double[]" Global

Good question! Do you mean with 'global' that the double array should be accessible anywhere in the same script?

Or does it need to be accessible to other scripts as well?

Or, less likely, do you perhaps want to make the array available to another application besides MultiCharts .NET?

:)
by JoshM
03 Apr 2020
Forum: MultiCharts
Topic: Empty bars
Replies: 4
Views: 1269

Re: Empty bars

If you disable the 'show empty periods' option in the chart settings screen, do those 'empty bars' still appear?

Image
by JoshM
03 Apr 2020
Forum: MultiCharts
Topic: Price percent change charts?
Replies: 11
Views: 5392

Re: Price percent change charts?

Hmm, is it perhaps possible to make a price-based chart with the custom resolutions feature? I don't understand that feature very well, but if there is some feature in MultiCharts to make this possible, then it's likely to be the custom resolutions. Else we have to wait until this is implemented off...
by JoshM
03 Apr 2020
Forum: MultiCharts
Topic: Cursor position: without MouseClickDateTime;
Replies: 3
Views: 922

Re: Cursor position: without MouseClickDateTime;

Not that I know of. Mouse clicks all depend on on clicking the chart, and the Expert Commentary also needs clicks to update/refresh itself.

But I hope I'm wrong because it would be a nice feature to have. :)
by JoshM
07 Mar 2020
Forum: MultiCharts
Topic: Painting wick and body not properly done
Replies: 7
Views: 1875

Re: Painting wick and body not properly done

Did you get it implemented? I didn't so I'm wondering how you did it. :)
by JoshM
17 Jun 2018
Forum: MultiCharts
Topic: which entry of a multi entries position was closed?
Replies: 3
Views: 1138

Re: which entry of a multi entries position was closed?

- with PosTradeEntryName it doesn't seems possible as we don't know the tradeNumber of the closed trade If I recall correctly, orders are closed in such a manner that the oldest entry order is closed first, then the second oldest, and so on, until you arrive at the first entry in the position. Clos...
by JoshM
11 Jun 2018
Forum: MultiCharts
Topic: CoT Commitment of Traders Data
Replies: 8
Views: 2949

Re: CoT Commitment of Traders Data

Is it possible to get the TS Commitment of Traders data into MultiCharts? In TS there appears to be an indicator that displays the Net Position or Total Position for futures markets. This must be based on some raw data feed so I wondered if it's possible to import this into Quote Manager like the o...
by JoshM
11 Jun 2018
Forum: MultiCharts
Topic: Indicator using averages as an input [SOLVED]
Replies: 7
Views: 2501

Re: Indicator using averages as an input [SOLVED]

I'm a completely new to MC and coding and i'd really appreciate it if someone could advise on how i'd make an indicator that takes the 3 sma of the high, the 5sma of low and the 5 sma of close, adds them together and then divides by 3? If I understand you correctly, that would look like: Variables:...
by JoshM
11 Jun 2018
Forum: MultiCharts
Topic: If not(X) then return;
Replies: 6
Views: 2188

Re: If not(X) then return;

Is it possible to use an output condition without using if then? (in c# it's : If not(X) then return ) It's not possible as far as I know to prematurely terminate the script calculation for a particular price update. (It would be helpful if we could, so I hope I'm mistaken here. :) ) You can of cou...
by JoshM
11 Jun 2018
Forum: MultiCharts
Topic: Don't trade if stopped
Replies: 5
Views: 1728

Re: Don't trade if stopped

Thank you Josh, that's a good keyword but a problem still exists, e.g if I got stoppet 3 days ago I want to have the trade today if conditions are met. The only case I don't want to trade is when I get stoppet today and today I also have the condition for the trade. PosTradeExitCategory don't refer...
by JoshM
07 Jun 2018
Forum: MultiCharts
Topic: MC64 11 r9 new warning message needs a tweak [SOLVED]
Replies: 4
Views: 1727

Re: MC64 11 r9 new warning message needs a tweak [SOLVED]

realy a very good thing to delete all confirmation popups, we know what we are doing, only one time in preference, "don't want any confirmation popup" choice I agree with that. I'm not sure if all those confirmations are actually needed. Normally when you want to use a service or product, you only ...
by JoshM
05 Jun 2018
Forum: MultiCharts
Topic: Send signals from one chart to another?
Replies: 6
Views: 2162

Re: Send signals from one chart to another?

Do you have some code examples? I couldn't find code examples on the forum, there's a lot of noise with MultiCharts .NET topics around this subject in my search results unfortunately. Perhaps TJ knows of some examples. For a bit more information about global variables, see this wiki page . Here's a...
by JoshM
05 Jun 2018
Forum: MultiCharts
Topic: Don't trade if stopped
Replies: 5
Views: 1728

Re: Don't trade if stopped

You can also try the PosTradeExitCategory keyword. With that keyword we can lookup what kind of order closed a position (i.e., was it a stop order, limit order, market order?). That way you can check if the position was stopped out or reached its profit target.

See PosTradeExitCategory for more.
by JoshM
05 Jun 2018
Forum: MultiCharts
Topic: Specific Search Criteria? [SOLVED]
Replies: 2
Views: 1046

Re: Specific Search Criteria? [SOLVED]

Is there a way to control a specific search in the forum? If I search for "Trading Performance Report" I will get hundreds of posts with the word "Trading" highlighted, and next the word "Performance" and then "Report". The quote marks do not work.....so, am I missing the process on how to control ...
by JoshM
17 Dec 2017
Forum: MultiCharts .NET
Topic: Programming Language Comparison: EasyLanguage vs. PowerLanguage vs. .NET
Replies: 5
Views: 6739

Re: Programming Language Comparison: EasyLanguage vs. PowerLanguage vs. .NET

Felix already gave a good and thorough reply that I agree with completely. Now for some of your smaller questions: Do they all use the same keywords? The keywords of PowerLanguage are often similar to those in EasyLanguage, but not all EasyLanguage features are available in PowerLanguage. If I have ...
by JoshM
10 Nov 2017
Forum: User Contributed Studies and Indicator Library
Topic: The Economic Events Collection for MultiCharts
Replies: 131
Views: 77479

Re: The Economic Events Collection for MultiCharts

Out of curiosity:
do you not use the Economic events as input to your strategies or you use a different way/tool to supply it to the strategies?
I don't trade and so have no strategies. I'm a coder not a trader. :)
by JoshM
09 Nov 2017
Forum: User Contributed Studies and Indicator Library
Topic: The Economic Events Collection for MultiCharts
Replies: 131
Views: 77479

Re: The Economic Events Collection for MultiCharts

I've decided to stop supporting the Economic Events tool. When I made this tool together with Nicolas back in 2012 it was a nice programming project and I enjoyed the collaboration. But I actually haven't used this tool myself in over 4 years. Even when I made the new download application in 2016 (w...
by JoshM
03 Nov 2017
Forum: User Contributed Studies and Indicator Library
Topic: The Economic Events Collection for MultiCharts
Replies: 131
Views: 77479

Re: The Economic Events Collection for MultiCharts

Checking more closely, it can be seen that after March 2017 records end, we get February 2017 records again, then March 2017 again, but with the times being 1 hour later than in the first round of March 2017 records. Fixed that issue; see the website for the updated file. The historical economic ev...
by JoshM
28 Oct 2017
Forum: MultiCharts
Topic: format time
Replies: 4
Views: 1740

Re: format time

Instead of 10.109.00, I would like to see 01:01:09.
Is it possible to do that?
As far as I know, that's not possible, unfortunately. If you plot a string on the chart with `PlotN()`, it shows as "N/A" in the chart's Data Window and chart hint.

I don't know of a workaround for this.
by JoshM
23 Oct 2017
Forum: MultiCharts .NET
Topic: Cryptocurrency data feed
Replies: 7
Views: 6162

Re: Cryptocurrency data feed

At least give your users a way to program API access to the exchanges you dont support.

A universal data feed app with your own API on MC end and extensible code (preferably open source)
This is a very cool idea and opens up a whole lot of possibilities. Nice thinking Maxima.
by JoshM
07 Oct 2017
Forum: MultiCharts
Topic: Please VOTE: Read from File
Replies: 2
Views: 1090

Re: Please VOTE: Read from File

Interesting idea. Interesting enough to respond. But I do have a few curious questions if you don't mind. Can you expand on what you mean with this in the PM request? GET ([OutputTarget],Expression1,Expression2,etc.) How would MultiCharts know that there are multiple expressions in the (presumably ....
by JoshM
01 Oct 2017
Forum: MultiCharts
Topic: power and or local i-net outage
Replies: 2
Views: 1006

Re: power and or local i-net outage

Is there anyway to setup the auto-trade at the brokers end to sell positions when power and or i-net outage? Not that I know of. What you currently can do is use one of the order types that are supported on the broker's end. That way, when the computer disconnects from the broker, the order is at l...
by JoshM
30 Sep 2017
Forum: MultiCharts
Topic: Alert message
Replies: 3
Views: 1257

Re: Alert message

I find that the Alerts tab can be exported to excel. Is it possible for excel update in sync with Alert tab in real time?
That's not possible as far as I can tell. You'll have to manually export from the Order and Position Tracker each time.
by JoshM
29 Sep 2017
Forum: MultiCharts
Topic: Alert message
Replies: 3
Views: 1257

Re: Alert message

Besides e-mail alert, how do I direct / write the alert message to a file for reading or keep record? Do multicharts has alerts log to keep the alerts as I do not find any option to write to a file ? Thanks. Any alert that you generate with an indicator or strategy appears in the 'Alerts' tab of th...
by JoshM
07 Sep 2017
Forum: MultiCharts
Topic: Hiding/Disabling an Indicator [SOLVED]
Replies: 36
Views: 8897

Re: Hiding/Disabling an Indicator [SOLVED]

I still think that disabling and hiding an indicator is possible. It works for me at least. But this is not a topic I like to spend more time on; it's too negative and attempts to help or think along are met with negativity and personal stabs. I do hope that someone with authority (a moderator) step...
by JoshM
07 Sep 2017
Forum: MultiCharts
Topic: bridge between MT and MC [SOLVED]
Replies: 13
Views: 4805

Re: bridge between MT and MC [SOLVED]

and in realtime too ? You can have a MT script write real-time price data to a file, and then use that file as ASCII source for MultiCharts. That should be possible if neither MT or MultiCharts locks up that file so that the other program cannot access it. (In the past I had no problems doing that,...
by JoshM
05 Sep 2017
Forum: MultiCharts
Topic: Hiding/Disabling an Indicator [SOLVED]
Replies: 36
Views: 8897

Re: Hiding/Disabling an Indicator [SOLVED]

I think we're confusing hiding with disabling (and vice versa) here. If an indicator is disabled, it's not necessarily hidden. And a hidden indicator isn't necessarily turned off (the way I understand it). Also, can it can made easier to enable/disable an indicator please (i.e. a simply addition of ...
by JoshM
01 Sep 2017
Forum: MultiCharts .NET
Topic: Difference between Environment.IsRealTimeCalc and ...IsAutoTradingMode? [SOLVED]
Replies: 2
Views: 1704

Re: Difference between Environment.IsRealTimeCalc and ...IsAutoTradingMode? [SOLVED]

Is there any difference? I assume indicators could be processing real-time data without auto-trading being enabled? That's true, for indicators `Environment.IsRealTimeCalc` can be used while they cannot use `Environment.IsAutoTradingMode` reliably. But there are more differences. For instance, in p...
by JoshM
30 Aug 2017
Forum: MultiCharts
Topic: optimization criteria using a user function [SOLVED]
Replies: 6
Views: 2178

Re: optimization criteria using a user function [SOLVED]

Is it already possible, in year 2017, to use "per bar trading information" on the optimization in MultiCharts? Yes, you can use the SetCustomFitnessValue() keyword to create a custom optimisation criteria that includes any information you can access in PowerLanguage. That includes per bar/per trade...
by JoshM
19 Aug 2017
Forum: MultiCharts
Topic: counting of hourly bars for current daily session in the code.... help
Replies: 4
Views: 1997

Re: counting of hourly bars for current daily session in the code.... help

I would like to create a code in which I use the counting of hourly bars. At the same time, I also want avoid to use commands based on the time. Could you suggest something or address me to a workaround? I don't think this is possible. Because without the PowerLanguage keywords for time, date, or s...
by JoshM
16 Aug 2017
Forum: MultiCharts
Topic: Open order not showing
Replies: 3
Views: 1083

Re: Open order not showing

Do you have the OANDA broker profile connected? I cannot see that from the screenshot.
by JoshM
14 Aug 2017
Forum: MultiCharts .NET
Topic: MULTICHARTS .NET 11.0 RELEASE
Replies: 19
Views: 9113

Re: MULTICHARTS .NET 11.0 RELEASE

Our "Check for Updates" function will start sending notifications for this build as soon as we have reviewed the feedback received from our users. Is it by the way possible, perhaps with a registery change, to disable those notifications? I don't need to see that message each day (and sometimes mul...
by JoshM
11 Aug 2017
Forum: MultiCharts .NET
Topic: Trend lines drawn by Indicator on Price chart. [SOLVED]
Replies: 4
Views: 2523

Re: Trend lines drawn by Indicator on Price chart. [SOLVED]

I take profit of your post to thank you for your incredible website TradingCode.net. It's a gold mine of intel that helps me every day on my programing work. Thank you, that's very kind of you. I'm glad it helps you that well. About the problem I think I understood what's going on. Wile backtesting...
by JoshM
11 Aug 2017
Forum: MultiCharts .NET
Topic: Trend lines drawn by Indicator on Price chart. [SOLVED]
Replies: 4
Views: 2523

Re: Trend lines drawn by Indicator on Price chart. [SOLVED]

My problem is that the indicator draw the trend lines on the Price chart and not in the RSI chart. This shouldn't happen based on the information in your post. You already use the correct overloaded method of the `DrwTrendLine.Create()` method for drawing the trend line on the subchart (and not on ...
by JoshM
06 Aug 2017
Forum: MultiCharts
Topic: Setting MaxBarsBack in a Signal [SOLVED]
Replies: 1
Views: 1104

Re: Setting MaxBarsBack in a Signal [SOLVED]

I tried to set MaxBarsBack value in a signal but it seems impossible other than manually: SetMaxBarsBack(Value1); Works only in a indicator. As far as I know the only way to set the MaxBarsBack for a signal is by hand, unfortunately. I suspect this is because the MaxBarsBack of a signal is more a c...
by JoshM
23 Jul 2017
Forum: MultiCharts .NET
Topic: Can I try MC.net while MC is installed.
Replies: 2
Views: 1312

Re: Can I try MC.net while MC is installed.

Hi, I am thinking I might try MC.net if I can run the free demo while MC is installed. I don't need to run them at the same time but it would be nice if I could avoid uninstalling MC (it is the 32 bit version). This shouldn't be a problem, I also run MultiCharts and MultiCharts .NET on the same com...
by JoshM
23 Jul 2017
Forum: MultiCharts
Topic: Making moving from MC to MC.net easier
Replies: 4
Views: 1314

Re: Making moving from MC to MC.net easier

Backwards reference is my terminology actually. It means that the subscript (or index if you will) points from the end of the table to the back of the table rather than from the beginning of the table to the end of the table. In other words [X] means X number of bars back, It makes perfect sense fo...
by JoshM
23 Jul 2017
Forum: MultiCharts
Topic: Making moving from MC to MC.net easier
Replies: 4
Views: 1314

Re: Making moving from MC to MC.net easier

Q1: Does the MC.net use the backward reference to tables as the MC power language does. To me this backwards reference of tables is a stroke of genius in thinking for traders and I have gotten use to it even after many years of thinking of forward reference as a regular programmer. I don't know wha...
by JoshM
18 Jul 2017
Forum: MultiCharts
Topic: Multitimeframe issue
Replies: 2
Views: 1080

Re: Multitimeframe issue

The easiest way I think would be to write whatever entry condition you want to use in code. And then also write code to disable the entry condition when something else happens. (I assume here you don't want to keep the entry condition always on after it happened for the first time, so when 'somethin...
by JoshM
17 Jul 2017
Forum: MultiCharts
Topic: LIMITATION: MaxBarsBack for multiple data streams [SOLVED]
Replies: 2
Views: 1734

Re: LIMITATION: MaxBarsBack for multiple data streams [SOLVED]

Say, you have 1 min bars as Data1 and need it 200-300 bars ago - for an indicator. But you also have Weekly bars as Data2 - for gauging a 20-Week ATR. Then, you might not have enough data to backtest, since a Maxbarsback setting of 250+ (needed for Data1) will also apply to Data2! Not necessarily I...
by JoshM
15 Jul 2017
Forum: MultiCharts
Topic: bar countdown off by 30 seconds [SOLVED]
Replies: 12
Views: 3676

Re: bar countdown off by 30 seconds [SOLVED]

I use 1min chart and the bars start like around 1:30 counting down to about 0:30 and then resetting to 1:30 I'm not sure if I follow you here. If you use a 1 minute chart, a bar countdown cannot (or, perhaps better said, should not) start at 1:30. In theory it should start at 59 seconds counting do...
by JoshM
13 Jul 2017
Forum: MultiCharts
Topic: bar countdown off by 30 seconds [SOLVED]
Replies: 12
Views: 3676

Re: bar countdown off by 30 seconds [SOLVED]

Please add this line to your code. You can find the explanation in the Wiki. RecalcLastBarAfter( 1 ); According to the wiki, `RecalcLastBarAfter()` affects the calculation of scripts. Should it affect the chart's bar countdown timer too? I have a EURUSD one minute chart. The countdown may show 30 s...
by JoshM
11 Jul 2017
Forum: MultiCharts
Topic: Trouble Printing to Excel
Replies: 1
Views: 762

Re: Trouble Printing to Excel

It is like I've coded the "Print" statement twice in the code. Any thoughts? One possible reason that I can think of is that your script does a (partial) calculation twice. This typically happens when you reference historical bar values in MultiCharts, but in such a way that MultiCharts cannot esti...
by JoshM
11 Jul 2017
Forum: MultiCharts
Topic: Issue with sorting in Scanner windwow [SOLVED]
Replies: 4
Views: 1786

Re: Issue with sorting in Scanner windwow [SOLVED]

I have defined my var as a numeric one: (...) The same indicator works well as a scanner in other workspaces (the biggest has less than 200 stocks) with different instruments but not in this one that contains more than 300 stocks. It's exactly the same script. What if you use the 'Same as Symbol' f...
by JoshM
11 Jul 2017
Forum: MultiCharts .NET
Topic: RTD Server. SymbolData Indicator not compiled.
Replies: 6
Views: 3599

Re: RTD Server. SymbolData Indicator not compiled.

Thanks for your interest.
This is beyond my understanding unfortunately. Hopefully someone else can jump in.
by JoshM
08 Jul 2017
Forum: MultiCharts .NET
Topic: RTD Server. SymbolData Indicator not compiled.
Replies: 6
Views: 3599

Re: RTD Server. SymbolData Indicator not compiled.

It looks to me that you have some programming errors in your script (SymbolData.Indicator.CS). Based on the error messages, I don't think this is related to RTD server. Can you post the code of the script that generates the errors?
by JoshM
08 Jul 2017
Forum: MultiCharts
Topic: [Portfolio Trader] Relative strength in Power Language [SOLVED]
Replies: 7
Views: 3371

Re: Relative strength in Power Language [SOLVED]

I understand everything you wrote except the "TraceOutput variable, I don't understand what this is. The `TraceOutput` variable is from the script input that's from your first post in this thread. The code of the signal you posted in the first post is: inputs: Formula ((Close of Data1 / Close[100] ...
by JoshM
08 Jul 2017
Forum: MultiCharts
Topic: Oanda Trade history
Replies: 1
Views: 669

Re: Oanda Trade history

Having just purchased MC again and connected my Oanda account I don't see anything in the positions history tab. Does this just contain positions created since I've started using MC or should it import all the position history associated with my Oanda account. If the latter, how do I do this? Unfor...
by JoshM
06 Jul 2017
Forum: User Contributed Studies and Indicator Library
Topic: The Economic Events Collection for MultiCharts
Replies: 131
Views: 77479

Re: The Economic Events Collection for MultiCharts

What about the files? They're no more updated in last weeks.
Thanks for letting me know. I fixed the bug in the downloader and the up-to-date files can be downloaded again from the webpage.
by JoshM
30 Jun 2017
Forum: MultiCharts
Topic: MULTICHARTS 11.0 BETA 1
Replies: 36
Views: 17659

Re: MULTICHARTS 11.0 BETA 1

Could you guide me where i find the source for the Renko code ? At the Custom Resolution Manager the "Open Script" is greyed out on all the 5 examples. That confused me a bit too, but if you create a new custom resolution in that window, you'll get the option to create one based on an existing one....
by JoshM
29 Jun 2017
Forum: MultiCharts
Topic: MULTICHARTS 11.0 BETA 1
Replies: 36
Views: 17659

Re: MULTICHARTS 11.0 BETA 1

As well for the new Custom Resolutions, a small video tutorial would be helpful especially for those who are not familiar with C+ . Or at least a .chm help file with descriptions what each code element does. I couldn't really figure that out from the code with enough confidence, unless I spend a lo...
by JoshM
28 Jun 2017
Forum: MultiCharts
Topic: Portfolio Strategy optimization of each contract
Replies: 3
Views: 1433

Re: Portfolio Strategy optimization of each contract

The only thing I did not find the way to do with MC as well is the following: I'd like to run an optimization on a list of contracts, getting the best set of optimized parameters for each contract. In portfolio optimization the output is the best parameters set that fits to the mix of all contracts...
by JoshM
28 Jun 2017
Forum: MultiCharts
Topic: Pause / Resume in Portfolio Trader
Replies: 3
Views: 1369

Re: Pause / Resume in Portfolio Trader

Hi, I am trying to add a pause/resume function in my own signal to be used in Portfolio Trader. Suppose to have 40 Instruments in Portfolio Trader and one Signal. The signal continuosly monitors the performance of each instrument and when one or more instruments are not performing well, they should...
by JoshM
28 Jun 2017
Forum: MultiCharts
Topic: Alert box position
Replies: 2
Views: 1070

Re: Alert box position

Any one has an idea on how the alert box position could be change. I got another Windows application sitting in the same area and I need to move it when I want to see the detail of the box. If I recall, it utilized some ressource of Windows, so maybe it could be tricked to be showed somewhere else....
by JoshM
28 Jun 2017
Forum: MultiCharts
Topic: [Portfolio Trader] Relative strength in Power Language [SOLVED]
Replies: 7
Views: 3371

Re: Relative strength in Power Language [SOLVED]

1. What is an "Output print"? Is it what is shown in the "Output bar" in the "Power Language Editor"? I have never understood the "Output bar", what is its function? The Print() keyword outputs information to the 'Output' tab in the PowerLanguage Editor. The purpose of that 'Output' tab is being to...
by JoshM
28 Jun 2017
Forum: MultiCharts
Topic: Calculating Swing based on a specific event
Replies: 5
Views: 1463

Re: Calculating Swing based on a specific event

Part of my strategy for entry is that I am wanting to find the 61.8% retracement on a recent swing. And backtest these 61.8% retracement levels as they are my point of entry. The easy bit is to work out the Retracement level from the swing values. The difficult part is that I am unable to find the ...
by JoshM
28 Jun 2017
Forum: MultiCharts
Topic: marketposition skips stop alert
Replies: 6
Views: 1727

Re: marketposition skips stop alert

Hello, I have an issue with a stop alert not being triggered. I believe it is because once the stop is hit my marketposition is now 0 so it skips the alert. I am using the code below and I thought by using marketposition(1) it would base the trigger on my most recent position, but for some reason m...
by JoshM
28 Jun 2017
Forum: MultiCharts
Topic: Opening Expert commentary window
Replies: 1
Views: 736

Re: Opening Expert commentary window

Is it possible to enable and open the commentary's window directly with the code. At the moment, I need to select it from MC main menu.
This is not possible as far as I know. Would be cool if it was possible. :)
by JoshM
28 Jun 2017
Forum: MultiCharts
Topic: How to combine data from two instruments into one [SOLVED]
Replies: 4
Views: 2310

Re: How to combine data from two instruments into one [SOLVED]

You can also merge data sources into a single chart, if that would work for you.

Otherwise you'll have to manually export data from each symbol and import it into the other (or create a new destination symbol in which both other symbols merge), as Wzero already mentioned.
by JoshM
07 Jun 2017
Forum: MultiCharts .NET
Topic: Bollinger Bands %B
Replies: 5
Views: 3078

Re: Bollinger Bands %B

Is there a bundled indicator for Bollinger Band %B (Percent Bandwidth)?

https://www.tradingview.com/wiki/Bollin ... 25B_(%25B)

I can see the regular Bollinger Bands but not the %B version.
Not that I know of. Are you getting stuck with programming it, or is this more a question in general?
by JoshM
31 May 2017
Forum: MultiCharts
Topic: Help please
Replies: 9
Views: 2263

Re: Help please

according to MC these variables are not present in the library. * GVGetNamedDouble * GVGetNamedInt * GVSetNamedDouble * GVSetNamedInt They suggested using these instead AccuracyGetNamedDouble AccuracyGetNamedInt AccuracySetNamedDouble AccuracySetNamedInt What do you think? I haven't used those latt...
by JoshM
28 May 2017
Forum: MultiCharts
Topic: Help please
Replies: 9
Views: 2263

Re: Help please

I think this is beyond my capabilities however. It doesn't have to be, just take it step by step: 1. Create an indicator that plots the ATR on the chart. 2. Add to that indicator the function that will send out the ATR value as a global variable (probably something like `GVSetNamedDouble(SymbolName...
by JoshM
26 May 2017
Forum: MultiCharts
Topic: How to write the code?
Replies: 1
Views: 929

Re: How to write the code?

If I want to set the stop loss and then trade after 15 bars, How to write the code ? (The meaning is after stop loss....the position cannot trade until 15 bars) With the PosTradeExitCategory() keyword we can figure out what caused a trade to exit (in this case, we'd be looking for a stop-loss exit ...
by JoshM
26 May 2017
Forum: MultiCharts
Topic: Help please
Replies: 9
Views: 2263

Re: Help please

Hello there, I am wondering if anyone out there can help me with this issue. Lets say that I have 4 different charts, different markets On each chart I insert the ATR. I would like to write a code that will give me the the average of all the ATR and the Lowest of all the ATR Does anyone know how to...
by JoshM
19 May 2017
Forum: MultiCharts
Topic: Close at end of the week [SOLVED]
Replies: 6
Views: 2141

Re: Close at end of the week [SOLVED]

I want my trade to automatically close at the end of the week. I know there is a study for the end of the day close but what can I use for the end of the week. For example close at the New York Close on Friday. With the `DayOfWeek()` keyword you can check for the day of week, and then for instance ...
by JoshM
19 May 2017
Forum: MultiCharts
Topic: IntraBarOrderGeneration problem
Replies: 2
Views: 1008

Re: IntraBarOrderGeneration problem

I am doing backtesting on a Daily Bar trading strategy. It went OK. However, after I added [IntraBarOrderGeneration=true] at the beginning of my program and compiled ok. The chart with this strategy did not show any trades, just like there was no strategy inserted. Anyone can help ? Thanks. Is the ...
by JoshM
18 May 2017
Forum: MultiCharts
Topic: PowerLanguage source with Diamond Lock
Replies: 24
Views: 15210

Re: PowerLanguage source with Diamond Lock

May I know the website of Diamond Lock?
That website seems to be http://www.investlabs.com/ and http://www.investlabs.com/diamondlock2000.html after a quick Google search.
by JoshM
18 May 2017
Forum: MultiCharts .NET
Topic: Programming Custom Broker Profiles [SOLVED]
Replies: 1
Views: 1523

Re: Programming Custom Broker Profiles [SOLVED]

Hi, does MultiCharts .NET provide an interface to implement custom broker profiles in C#? Let's say I want to create a custom broker to talk to the Financial Information eXchange (FIX) protocol. (...) pretty much the same way that MC adds support for new brokers. This is unfortunately not possible ...
by JoshM
15 May 2017
Forum: MultiCharts
Topic: Portfolio trader : IOG for automatic trading
Replies: 5
Views: 2603

Re: Portfolio trader : IOG for automatic trading

I'm currently using MC for automatic trading but it sometimes freezes because i've 20 charts/ workspace and have 6 workspaces running at the same time. My strategy use IOG so i can't move to portfolio trader to apply my strategy in live autotrading. Are you running multi-time frame? eg 5 mins and 1...
by JoshM
15 May 2017
Forum: MultiCharts
Topic: Indicator property: Is it possible to set # bars a study will reference [SOLVED]
Replies: 6
Views: 1684

Re: Indicator property: Is it possible to set # bars a study will reference [SOLVED]

Indicator property: Could we set from the code the value for :Max number of bars study will reference
Though you've seem to have fixed it in a different way looking at your last post :), you can set the number of bars an indicator will reference with the SetMaxBarsBack() keyword.
by JoshM
13 May 2017
Forum: MultiCharts
Topic: HOW to Update Plotting
Replies: 5
Views: 1752

Re: HOW to Update Plotting

those scripts don't solve the problem because they set the location only once (on the time when the condition is met), but if the market moves forward, the location don't because it was set in the time when the condition was met. I've set the text on LastcalcDateTime, but the LastCalcDateTime of th...
by JoshM
13 May 2017
Forum: MultiCharts
Topic: PL code execution time - strange behavior
Replies: 12
Views: 4194

Re: PL code execution time - strange behavior

Now, even though this line of the code is not supposed to be executed at run-time, the actual time of execution is significantly higher (Optimization time jumps nearly 2x !) in presence of such instruction vs. just simply "commenting out" the line calling a function. I have just checked it with a p...
by JoshM
24 Apr 2017
Forum: MultiCharts
Topic: Reloading charts: Is there a way to do it from code? [SOLVED]
Replies: 5
Views: 1456

Re: Reloading charts: Is there a way to do it from code? [SOLVED]

My idea would be to reload the last day after each new session. If sessionlastbar[1] then reload(day); You can use the CommandLine() keyword for that. Here's a list of the different commands you can use. if (sessionlastbar[1]) then CommandLine(".rld int=1 day); (Although you might want to double-ch...
by JoshM
28 Mar 2017
Forum: MultiCharts
Topic: .rld command after 2 minutes from the firts daily bar in IOB script [SOLVED]
Replies: 27
Views: 6290

Re: .rld command after 2 minutes from the firts daily bar in IOB script [SOLVED]

Please read the IOG definition carefully. As the name implies, it is for ORDER GENERATION only. That's not true; see how signals are calculated . When intra-bar order generation is enabled, the signal calculates with every incoming real-time tick (as opposed to only calculate on bar close). Those t...
by JoshM
26 Mar 2017
Forum: MultiCharts
Topic: Keeping text objects fixed on the right edge of the chart [SOLVED]
Replies: 3
Views: 1811

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

I'm using aiRightDispDateTime to get the date and time values of the right edge. I can see from output that the correct values of date and time are getting picked up on the fly as I scroll around. But for some reason that I can't figure, the Text_SetLocation is not moving the text to the date and t...
by JoshM
26 Mar 2017
Forum: MultiCharts
Topic: Stop loss created immediately and not after one candles
Replies: 5
Views: 2225

Re: Stop loss created immediately and not after one candles

so my question is... why in the code that I have posted up it work as I would like and in this one doesn't and put the exit strategy after one bar? In your second example you don't seem to use intra-bar order generation, while in your first example (at the top of this thread) you did. Now this does...
by JoshM
09 Mar 2017
Forum: MultiCharts
Topic: alarms
Replies: 9
Views: 2193

Re: alarms

The system runs every 5 seconds and the 2 conditions cannot happen at the same time. I might not have been clear enough, I think. What I meant was with the two conditions happening at the same time is that, looking at your code: counter = IFF(getappinfo(aicalcreason) = calcreason_timer, counter + 1...
by JoshM
09 Mar 2017
Forum: MultiCharts .NET
Topic: increment [SOLVED]
Replies: 5
Views: 2144

Re: increment [SOLVED]

Is there a way to index a public function with an integer output? I am trying to reference a previous integer value of m_testup and m_testdown. I tried to used a variable series but the _highestbar function is a simple integer You'll need to store those `HighestBar()` values in a `VariableSeries<T>...
by JoshM
09 Mar 2017
Forum: MultiCharts
Topic: Multicharts add on 3rd party developer reviews of Automated trading sytstems
Replies: 1
Views: 915

Re: Multicharts add on 3rd party developer reviews of Automated trading sytstems

I haven't seen that information come along here on the forum. Perhaps you can Google for specific strategies that are listed under 3rd party developers, but I cannot imagine someone has done a review of all those strategies due to the cost of that.
by JoshM
08 Mar 2017
Forum: MultiCharts
Topic: Draw Horizontal line - get the HL price in an indicator [SOLVED]
Replies: 2
Views: 1589

Re: Draw Horizontal line - get the HL price in an indicator [SOLVED]

Hi! It is possible to draw a horizontal line and to have an indicator like this (pseudo-code): if Horizontal_Line is True then getHorizontalLine_Price Yes, this is possible. You can draw any kind of line you want (provided it's a trend line), and with the `TL_GetValue_s()` keyword you can retrieve ...
by JoshM
08 Mar 2017
Forum: MultiCharts
Topic: alarms
Replies: 9
Views: 2193

Re: alarms

Hi, does anyone knows why only the first alert get created even if the counter get bigger than 15? thanks Probably because MultiCharts can only generate one alert each time the script calculates. Because you have two alert conditions that can both happen at the same time, the later alert 'overrules...
by JoshM
08 Mar 2017
Forum: MultiCharts .NET
Topic: increment [SOLVED]
Replies: 5
Views: 2144

Re: increment [SOLVED]

What am I missing? Your script probably resets the `i` variable every time back to zero when the code runs. For instance, if your code comes from the `CalcBar()` method, it looks like: protected override void CalcBar() { int i = 0; if(Bars.Close[0] < Bars.Close[1]){i=i+1;} else{i=0;} plot1.Set(0, i...
by JoshM
13 Feb 2017
Forum: MultiCharts .NET
Topic: Adding series and non series integers [SOLVED]
Replies: 2
Views: 1789

Re: Adding series and non series integers [SOLVED]

I think you need to replace the following..

Code: Select all

m_aroonup = 100 * ((length - m_oextremebarraw) / length) ;
with..

Code: Select all

m_aroonup.Value = 100 * ((length - m_oextremebarraw[0]) / length) ;
If I correctly glanced over your code.
by JoshM
10 Feb 2017
Forum: MultiCharts
Topic: print out PosTradeProfit / PosTradeExitPrice / PosTradeEntryPrice....all are zero.
Replies: 9
Views: 2607

Re: print out PosTradeProfit / PosTradeExitPrice / PosTradeEntryPrice....all are zero.

sorry, it does not make sense to me. Postradeprofit(1,0) is looking for the latest closed. why it was disappear when I close the MC and re-start? is it any problem with my script? dear all, any one can have some comments? There may not be enough information in this thread to give a decisive answer:...
by JoshM
20 Jan 2017
Forum: MultiCharts
Topic: barssinceentry equivalent
Replies: 2
Views: 1643

Re: barssinceentry equivalent

You can also use the standard `MRO()` function if you're looking to count the number of bars since some condition (which, in a way, is also what `BarsSinceEntry()` does).
by JoshM
20 Jan 2017
Forum: User Contributed Studies and Indicator Library
Topic: The Economic Events Collection for MultiCharts
Replies: 131
Views: 77479

Re: The Economic Events Collection for MultiCharts

I just installed the EE Collection and the EE Downloader. When I run the EE Downloader, I get the error below. I reran the Java program twice and obtained the same result both times. Any recommendations? Hi, The EE Downloader has been replaced with a website for a while now. See this post for the d...
by JoshM
08 Jan 2017
Forum: MultiCharts
Topic: IOG strategy optimization
Replies: 3
Views: 1414

Re: IOG strategy optimization

Like ABC says, if you use the Bar Magnifier the backtested results should resemble real-live trading quite well. I say 'should' because there are several things that cannot be addressed for with the Bar Magnifier, even when using a setting of 1 tick. One thing is the time between ticks (and the resu...
by JoshM
01 Jan 2017
Forum: MultiCharts
Topic: How to take partial profit [SOLVED]
Replies: 6
Views: 2518

Re: How to take partial profit [SOLVED]

That would be the first one close half of my position after reaching the +20 pip profit point. You can try something like this for that (untested): // Manage long position if (MarketPosition(0) > 0) then begin if (Close >= EntryPrice(0) + 0.0020) then Sell ("Partial TP XL") (CurrentContracts / 2) C...
by JoshM
30 Dec 2016
Forum: MultiCharts
Topic: Automatic Backup of Multicharts Studies/Files
Replies: 9
Views: 3380

Re: Automatic Backup of Multicharts Studies/Files

Is it possible to create a backup, preferably one that is scheduled to run at a user defined frequency, of all my studies/indicators/workspaces in a location of my choosing (ie a cloud based system like Dropbox). If I lose my machine I am screwed if this is not possible. To add to Siscop's workflow...
by JoshM
30 Dec 2016
Forum: MultiCharts
Topic: How to take partial profit [SOLVED]
Replies: 6
Views: 2518

Re: How to take partial profit [SOLVED]

I want to take 50% of my profit as soon as my position has gone 20 pips in my favor after my breakeven has been activated. To clarify before discussing code: if you say, "take 50% of my profit (...)", do you mean: close half of my position after reaching the +20 pips profit point, or at the +20 pro...
by JoshM
29 Dec 2016
Forum: MultiCharts
Topic: Need slippage settings in Tick for futures backtesting
Replies: 6
Views: 2005

Re: Need slippage settings in Tick for futures backtesting

For accurate testing of a futures portfolio, I need slippage setting in ticks instead of dollar amount since each future has a different tick value. Please add a slippage setting by how many ticks! You're not the only one who looks forward to this feature. There was a topic a year ago that asked fo...
by JoshM
29 Dec 2016
Forum: MultiCharts
Topic: OPEN P/L way off on PT
Replies: 3
Views: 1365

Re: OPEN P/L way off on PT

VC and CMC are the stocks that are off. Does someone has an idea? I think this difference can be caused when MultiCharts calculates the open P/L for one of these screens while retrieving the open P/L from the broker for the other screen. (That's my idea at least; I cannot find a source for that.) I...
by JoshM
29 Dec 2016
Forum: MultiCharts
Topic: Scanner missing data [SOLVED]
Replies: 1
Views: 867

Re: Scanner missing data [SOLVED]

why in my scanner Watchlist I don't see the value High, Low etc as show below? The High and Low prices in the Scanner/Watchlist window are quote fields that MultiCharts fetches from the data feed. Looking at the image you also don't have a bid and ask price, so it seems the market is closed for now...
by JoshM
26 Dec 2016
Forum: MultiCharts
Topic: Scanner dealing with date. Bug? [SOLVED]
Replies: 1
Views: 1080

Re: Scanner dealing with date. Bug? [SOLVED]

It plotted the standard MC date format 1170322 (March 22, 2017). When I went to the settings and changed the format to date, strangely, MC gives an error. Apparently, the scanner don't recognize its own date format? I was hoping that MC would change the date to 22-03-2017 or some similar date confi...
by JoshM
26 Dec 2016
Forum: MultiCharts
Topic: Pre-Scanning doesn't work
Replies: 2
Views: 1024

Re: Pre-Scanning doesn't work

why if I select the criteria to scan the scanner doesn't work?
What is wrong in the process?
I don't understand. Can you clarify a bit?
by JoshM
26 Dec 2016
Forum: MultiCharts
Topic: plot name restriction?
Replies: 2
Views: 953

Re: plot name restriction?

There's an old PM entry (957: Variable plot number: Plot(N, value, name) in addition to PlotN(value, "name")) that also asks for the possibility to use a variable name with plots (instead of a literal string). Doesn't look like this will be implemented, but would surely be useful to have.
by JoshM
26 Dec 2016
Forum: MultiCharts
Topic: Scanner wrong
Replies: 13
Views: 3351

Re: Scanner wrong

Do you have the same indicator settings on the chart as you use in the Scanner/Watchlist?

(Things like 'Update on every tick', 'Maximum number of bars a study references', and so on.)
by JoshM
23 Dec 2016
Forum: MultiCharts
Topic: Arrays/Lookback [SOLVED]
Replies: 2
Views: 1020

Re: Arrays/Lookback [SOLVED]

So what I ma trying to do: Whenever those crosses happened within the last [arraylength] bars a buy/ sell is triggered. So the 5 MA (red line) crosses above the white line 10 MA first and probably the yellow 50 MA last. This happens within a certain range of bars [arraylength] and the buy in this c...
by JoshM
13 Dec 2016
Forum: User Contributed Studies and Indicator Library
Topic: The Economic Events Collection for MultiCharts
Replies: 131
Views: 77479

Re: The Economic Events Collection for MultiCharts

Update:

- The 'FutureEconomicEvents.txt' file now contains the events of this week and the events of the next week. That way there's no 'gap' between Friday and the update of the file on Monday.
by JoshM
12 Dec 2016
Forum: User Contributed Studies and Indicator Library
Topic: The Economic Events Collection for MultiCharts
Replies: 131
Views: 77479

Re: The Economic Events Collection for MultiCharts

1. I can see time used in the files is NY time. I assume it automatically changes between EST/EDT, correct? Yes, the times are based on the time reported on the ForexFactory website, so if the time on that website changes, so do the time reported in the files. 2. For some reason, Future Economic Ev...
by JoshM
30 Nov 2016
Forum: MultiCharts
Topic: Multitimeframe Signals ADE, EL_Collections, etc.
Replies: 21
Views: 6544

Re: Multitimeframe Signals ADE, EL_Collections, etc.

Haha sorry did not try to confuse anybody. So lets give it some structure: Expectation towards MC: Why do people use Multitimeframe charts/signals ? They want all Timeframes to align in one direction to enter a trade. Depending on the indicators they are using, this might be promising, but they mig...
by JoshM
29 Nov 2016
Forum: MultiCharts
Topic: Multitimeframe Signals ADE, EL_Collections, etc.
Replies: 21
Views: 6544

Re: Multitimeframe Signals ADE, EL_Collections, etc.

So maybe using ADE correctly might solve this Josh? Perhaps. Honestly, I can't say I 'get' this thread anymore. Perhaps I'm reading this thread biased, with something else in mind then what you're talking about which then confuses me. Let's take for instance your previous post with the Dow Jones In...
by JoshM
28 Nov 2016
Forum: MultiCharts
Topic: Multitimeframe Signals ADE, EL_Collections, etc.
Replies: 21
Views: 6544

Re: Multitimeframe Signals ADE, EL_Collections, etc.

The overall topic is handling of multidata charts and applying signals to those. What is wanted as described in the MACD signal: Three signals, the highest signal builds the "foundation" for a buy/sell to happen, the timeframe one below also has to indicate the same direction and the smallest TF ba...
by JoshM
27 Nov 2016
Forum: MultiCharts
Topic: Run 3 same strategies in a chart
Replies: 3
Views: 1284

Re: Run 3 same strategies in a chart

Can I run three same strategies in the same chart with take profit different but the same stop? The short answer: no, because individual signals are combined by MultiCharts into one strategy and orders are aggregated on that level. The longer answer: yes, you can communicate data between different ...
by JoshM
27 Nov 2016
Forum: MultiCharts
Topic: Multitimeframe Signals ADE, EL_Collections, etc.
Replies: 21
Views: 6544

Re: Multitimeframe Signals ADE, EL_Collections, etc.

Does anybody have a solution? What's the problem here? Is it.. I always wondered why the strategy/signal gives false/ less signals back. Always thought the mistake might lie somewhere else, but now I know that Multicharts is just not able to process it. ..or is it.. I did some more research and cam...
by JoshM
18 Nov 2016
Forum: MultiCharts .NET
Topic: Portfolio Trader command line options
Replies: 4
Views: 2183

Re: Portfolio Trader command line options

Portfolio Trader does not have the command line toolbar, therefore it does not support the “command line” commands from the code.
But what about command line parameters that we can add to shortcuts in Windows? Like these for the Windows Media Player as a random example.
by JoshM
18 Nov 2016
Forum: MultiCharts
Topic: Real time strategy maxiddrawdown
Replies: 5
Views: 1383

Re: Real time strategy maxiddrawdown

I get an error when using your code so cannot test it, unfortunately:

Code: Select all

------ Compiled with error(s): ------
assignment is allowed only for variables or array elements
line 3, column 3
by JoshM
18 Nov 2016
Forum: MultiCharts .NET
Topic: Portfolio Trader command line options
Replies: 4
Views: 2183

Re: Portfolio Trader command line options

In case these features do not exist (which I have to assume in the absence of documentation), I'd be more than happy to draft a feature request... I also have never come across these features, unfortunately. Some features, like start auto-trading, will probably not be created since that would nulli...
by JoshM
18 Nov 2016
Forum: MultiCharts
Topic: Settings Natural Gas [SOLVED]
Replies: 5
Views: 1777

Re: Settings Natural Gas [SOLVED]

can you help me to configure the USDJPY and EURUSD? Settings for spot forex, like price scale, depend on your broker. Did you add these instruments in the proper way to the QuoteManager? See this wiki page for more. It's not that hard when you compare your broker's settings with the settings in the...
by JoshM
16 Nov 2016
Forum: MultiCharts .NET
Topic: syntax question [SOLVED]
Replies: 4
Views: 1935

Re: syntax question [SOLVED]

I've just scripted the following in StartCalc(): m_averagefc1.price = BarsOfData(2).Close; so now m_avg.Value references the right data series. Woke up before 5 with the answer ringing in my head :idea: That's indeed the correct approach to calculate a function on a different data series. What a go...
by JoshM
15 Nov 2016
Forum: MultiCharts
Topic: Real time strategy maxiddrawdown
Replies: 5
Views: 1383

Re: Real time strategy maxiddrawdown

I suppose it then has to be related to your strategy's code. Can you share that? A simplified piece of code that replicates the behaviour is fine too.
by JoshM
15 Nov 2016
Forum: MultiCharts
Topic: Real time strategy maxiddrawdown
Replies: 5
Views: 1383

Re: Real time strategy maxiddrawdown

when I print the function maxiddrawdown the output in my real time strategy is 0.0. Why? I'd like to identify the max DD for the whole period the my real time strategy. Does `MaxIDDrawDown` return 0 immediately after you enable a strategy for real-time trading or not? The first case would be expect...
by JoshM
15 Nov 2016
Forum: MultiCharts .NET
Topic: Nice website
Replies: 4
Views: 1859

Re: Nice website

We've updated the forum as well. PM and Blog updates are in progress. The forum looks very nice, well done MultiCharts team! The 'Unread posts' feature is especially super-handy for people active on the forum. May I suggest the webmaster to also revoke the moderator privileges of people that left M...
by JoshM
15 Nov 2016
Forum: MultiCharts .NET
Topic: syntax question [SOLVED]
Replies: 4
Views: 1935

Re: syntax question [SOLVED]

Can you post more information about what `m_avg.Value` is? I suppose it's a variable series (`VariableSeries<T>`) given its `Value` property, but a variable series doesn't perform calculations itself (regardless of the number of data series you use). All a variable series does is storing a value. So...
by JoshM
12 Nov 2016
Forum: MultiCharts
Topic: Use setpercenttrailing partially for 1 contract of 2 [SOLVED]
Replies: 1
Views: 860

Re: Use setpercenttrailing partially for 1 contract of 2 [SOLVED]

can I use the function setpercenttrailing to make go out only 1 contract on 2 contracts used?
No, according to the wiki page `SetPercentTrailing()` closes the currently position.
by JoshM
11 Nov 2016
Forum: MultiCharts
Topic: Trade correlation [SOLVED]
Replies: 2
Views: 1206

Re: Trade correlation [SOLVED]

where I can find the material to understand how I can send order into markets when the signal coming from other markets? For example: I have a long signal into Gold instrument and I want short USDJPY Based on the information you've provided here, the best suggestion I can give is to check the Pairs...
by JoshM
11 Nov 2016
Forum: MultiCharts
Topic: Stop backtest calculation [SOLVED]
Replies: 2
Views: 962

Re: Stop backtest calculation [SOLVED]

there is a way to stop the calculation strategy backtest when my log find out a problem? I will stop strategy to change the code and recalculate From my understanding of what you mean here, that's not possible since MultiCharts natively cannot read from your log. However, if something happens in yo...
by JoshM
11 Nov 2016
Forum: MultiCharts
Topic: Display print lika a list [SOLVED]
Replies: 1
Views: 966

Re: Display print lika a list [SOLVED]

Hi all,

when I print the function as show below, all the print is displayed in a row.

It's possible view like a list and not a row
You can use the NewLine keyword to insert the equivalent of the Enter key in the output.
by JoshM
11 Nov 2016
Forum: MultiCharts .NET
Topic: Nice website
Replies: 4
Views: 1859

Re: Nice website

I agree, the new website is quite pleasant. I also like the new favicon, which looks a lot fresher.

Will the forum be updated too? I see that several changes that were made to the website (like differentiating from TradingView, among other things) or not yet done on the forum.
by JoshM
11 Nov 2016
Forum: MultiCharts .NET
Topic: Countdown Timer
Replies: 7
Views: 3470

Re: Countdown Timer

Are you saying that the countdown timer should work with Renko charts then? (...) So bottom line is. I used to have a countdown on my charts. Then it stopped. Then I was told it couldn't/shouldn't have happened. The suggested fix ruins my charts. No admin seem to want to actually help even though t...
by JoshM
11 Nov 2016
Forum: MultiCharts .NET
Topic: Countdown Timer
Replies: 7
Views: 3470

Re: Countdown Timer

I need one to show the number of ticks remaining in a bar using Renko charts as the included one only works on bar/candlestick charts. That should not happen, I think, because `RecalcLastBarAfter()` works with a `TimeSpan` interval and is independent from the chart/resolution. What MultiCharts .NET...
by JoshM
06 Nov 2016
Forum: MultiCharts .NET
Topic: Plotting and deleting horizontal lines programatically [SOLVED]
Replies: 5
Views: 2723

Re: Plotting and deleting horizontal lines programatically [SOLVED]

Can you access any other functions via the alert properties of programmatically plotted horizontal lines? For example, instead of firing an alert on a close across I’d like to delete the line. Not sure if I fully understand, but the `Alert` property of a trend line can disable the trend line's aler...
by JoshM
06 Nov 2016
Forum: MultiCharts .NET
Topic: Plotting and deleting horizontal lines programatically [SOLVED]
Replies: 5
Views: 2723

Re: Plotting and deleting horizontal lines programatically [SOLVED]

Another approach I've been looking at is removing the lines with a moving average eraser, but I haven't been able to figure out how to access the lines' price property. The `PriceValue()` method that you're trying to use here requires a DateTime value that specifies for which date and time the tren...
by JoshM
04 Nov 2016
Forum: MultiCharts .NET
Topic: Noob Questions
Replies: 3
Views: 1604

Re: Noob Questions

I can do this the hard way by using alot of code but i was wondering if there is an easy solution
I don't know of another way to do this besides using code.
by JoshM
03 Nov 2016
Forum: MultiCharts
Topic: Hide subchart with Power Language [SOLVED]
Replies: 1
Views: 1018

Re: Hide subchart with Power Language [SOLVED]

Have tried with "SetPlotColor" (plot to black to hide each plot, 10 on each indicator), but then need to use the "intrabarpersist" to change everything. It takes too much of the system. There must be an easier way to hide a subchart. Any suggestions? It doesn't really hide a subchart, but comes clo...
by JoshM
03 Nov 2016
Forum: MultiCharts .NET
Topic: MultiCharts .NET tutorials
Replies: 17
Views: 20780

Re: MultiCharts .NET tutorials

Thanks Josh the content on your site is great for someone looking to make the jump to c#. I found it extremely helpful. Is there any documentation/examples anywhere on passing data to the MMS scripts in .NET? More specifically the methods for the equivalent functions in Easy Language such as pmms_d...
by JoshM
02 Nov 2016
Forum: MultiCharts .NET
Topic: Noob Questions
Replies: 3
Views: 1604

Re: Noob Questions

1. I noticed that CalcBar method is called on every new bar, can i set some parameters to make CalcBar be called on every price movement (tick)? For indicators there's an option called 'Update on Every Tick' in the indicator's setting screen that makes the `CalcBar()` method update with every price...
by JoshM
01 Nov 2016
Forum: MultiCharts
Topic: Portfolio Walk Forward Error. Insufficient data samples.
Replies: 4
Views: 1520

Re: Portfolio Walk Forward Error. Insufficient data samples.

I literally have no leads at all on possible causes. Has anyone else experienced this? Any ideas whats causing it? I don't know. I do see in your portfolio file (.pws) that you have a MaxBarsBack setting of just 50, so that cannot be the cause (although that would be the most likely candidate). I a...
by JoshM
30 Oct 2016
Forum: MultiCharts
Topic: Change orders for strategy breakout [SOLVED]
Replies: 8
Views: 1961

Re: Change orders for strategy breakout [SOLVED]

easily I can write to cancel the order with code below: CurrentAsk - CurrentBid < 1.0 It's correct? Can be one of the many solutions? This can be a solution, that's true. But we cannot answer for you whether this is correct, because that depends on your goals and how you want your strategy to behav...
by JoshM
30 Oct 2016
Forum: MultiCharts
Topic: Change orders for strategy breakout [SOLVED]
Replies: 8
Views: 1961

Re: Change orders for strategy breakout [SOLVED]

The following order modification is possible in MultiCharts: - Adjusting the order's price - Changing the quantity of the order - Cancelling an order How I can make it? It's possible have a example code for 3 cases listed above? Currently I use If CurrentBid < H and CurrentBid > H - (1*bigpointvalu...
by JoshM
29 Oct 2016
Forum: MultiCharts
Topic: Change orders for strategy breakout [SOLVED]
Replies: 8
Views: 1961

Re: Change orders for strategy breakout [SOLVED]

I don't understand...can you explain with example or other words? What's unclear? I'm not sure if I can put it much differently. The following order modification is possible in MultiCharts: - Adjusting the order's price - Changing the quantity of the order - Cancelling an order What is not possible...
by JoshM
29 Oct 2016
Forum: MultiCharts
Topic: Change orders for strategy breakout [SOLVED]
Replies: 8
Views: 1961

Re: Change orders for strategy breakout [SOLVED]

I can change orders for my strategy breakout? It's possible change orders from stop order at limit order? For a trategy breakout could be valid? That's for riduce slippage in my breakout strategy if possible or exist some way. Once an order is submitted, you can change its price but not its type. S...
by JoshM
28 Oct 2016
Forum: MultiCharts .NET
Topic: MC.net order entry without broker data feed? [SOLVED]
Replies: 3
Views: 2115

Re: MC.net order entry without broker data feed? [SOLVED]

Can you tell me where I can find this data feed symbol to broker mapping configuration? Symbol mapping is in the File -> Broker profiles -> symbol mapping menu. There's a page with information and examples on the wiki . Out of curiosity, why would the DOM be unavailable as an order entry option? Th...
by JoshM
28 Oct 2016
Forum: MultiCharts
Topic: MultiCharts privacy, security and broker relationship? [SOLVED]
Replies: 30
Views: 7735

Re: MultiCharts privacy, security and broker relationtionshi [SOLVED]

I never said that you cannot reply, you are also free not to reply. I just want official public answers from MultiCharts. If you just want an official reply from MultiCharts, it's in your best interest to keep this topic as positive and constructive as possible. It wouldn't be the first time that t...
by JoshM
28 Oct 2016
Forum: MultiCharts
Topic: MultiCharts privacy, security and broker relationship? [SOLVED]
Replies: 30
Views: 7735

Re: MultiCharts privacy, security and broker relationtionshi [SOLVED]

In here, customers and non customers have free access. People that might be thinking about buying a license are free to come here and ask all the questions they want to ask before invest in the platform. Don't mean to go too much off-topic, but non-customers unfortunately may not post here on the f...
by JoshM
25 Oct 2016
Forum: MultiCharts
Topic: To avoid the trade at the same previous price [SOLVED]
Replies: 14
Views: 3626

Re: To avoid the trade at the same previous price [SOLVED]

thanks for help but I hope that somebody is more pragmatic. Nobody ask you to write the strategy for me but I want only hint. For a hint, I would code my previous comment like this: Variables: IntrabarPersist prevLimitPrice(0), IntrabarPersist currentLimitPrice(0), IntrabarPerist goodToBuy(false); ...
by JoshM
25 Oct 2016
Forum: MultiCharts
Topic: To avoid the trade at the same previous price [SOLVED]
Replies: 14
Views: 3626

Re: To avoid the trade at the same previous price [SOLVED]

now I don't have the code. I'd like the generic example
I don't have the time to write (and test on real-time data) a trading strategy for you, and then incorporate any feedback you have.

Perhaps someone else can help you with that.
by JoshM
25 Oct 2016
Forum: MultiCharts
Topic: Fundamental data on Multicharts scanner
Replies: 5
Views: 3031

Re: Fundamental data on Multicharts scanner - PM MC-479

Do you know which data provider gives to you also easrning or fundametal historical information, like P/E, ecc...? I think that's the problem for MultiCharts before implementing the feature request, since that information is not that easily accessible (without getting a Bloomberg kind of data feed)...
by JoshM
25 Oct 2016
Forum: MultiCharts
Topic: To avoid the trade at the same previous price [SOLVED]
Replies: 14
Views: 3626

Re: To avoid the trade at the same previous price [SOLVED]

it's possible to have an example?
What's the code that you already have? That also makes it a lot easier for us to give focused and concrete help.
by JoshM
25 Oct 2016
Forum: MultiCharts
Topic: Can't find function in .dll [SOLVED]
Replies: 2
Views: 1531

Re: Can't find function in .dll [SOLVED]

6. Run time error: "Can't find function "MovAvg" in dll. Whenever I come across that error, I either compiled the DLL incorrectly or used the wrong code inside the PowerLanguage code to declare the DLL function. Besides the `DefineDLLFunc` you can also use `External` to see if declaring MovAvg like...
by JoshM
25 Oct 2016
Forum: MultiCharts
Topic: To avoid the trade at the same previous price [SOLVED]
Replies: 14
Views: 3626

Re: To avoid the trade at the same previous price [SOLVED]

I work with limit order and the signal is generated from H(n). If I write code H (n) <>entryprice (1) is always verified because the entryprice is always different from H (n) due to slippage. If "H(n)" returns your limit price, you can also store that value in variable. Then, when the next limit or...
by JoshM
10 Oct 2016
Forum: MultiCharts
Topic: Currency convertion server(s) ? [SOLVED]
Replies: 5
Views: 2515

Re: Currency convertion server(s) ? [SOLVED]

MultiCharts uses previous day closing price (Bid) for currency conversion. There is no realtime currency conversion using current values. I thought that, when trading in real time, real-time rates are used. And when backtesting, historical rates are used. Such a thing is also mentioned on the wiki ...
by JoshM
04 Oct 2016
Forum: MultiCharts
Topic: recalculate ?
Replies: 1
Views: 943

Re: recalculate ?

Hi, Is "recalculate" able to do this? If yes, how would you translate this pseudo-code into powerlanguage? What is "this"? If you mean: can `recalculate` recalculate a script that uses a for loop, then the answer is yes. (By the way, you cannot -- and probably should never want to -- submit orders ...
by JoshM
04 Oct 2016
Forum: MultiCharts .NET
Topic: Schedule Automated Order Execution? [SOLVED]
Replies: 3
Views: 1999

Re: Schedule Automated Order Execution? [SOLVED]

Is there anyway to schedule the times that automated order execution, on a chart, is turned on and off? The short answer is "no", unfortunately. The long answer is that we can programmatically disable and enable automated order execution (see toggle auto trading with the command line for an example...
by JoshM
04 Oct 2016
Forum: MultiCharts
Topic: manually installed Verticale line: Is there a way to detect [SOLVED]
Replies: 1
Views: 875

Re: manually installed Verticale line: Is there a way to det [SOLVED]

Is there a way to detect if an vertical line has been draw on a chart? The goal is to installed a vertical line on a day chart and draw a region on a lower time frame chart of the previously Do you mean a vertical line as in a vertical Trend Line, or a Time Line drawing? We can make trend lines pro...
by JoshM
30 Sep 2016
Forum: MultiCharts
Topic: check_authorization_response
Replies: 9
Views: 2912

Re: check_authorization_response

Once I have the internet disconnected, is there a way to start MC right in offline mode (no real time data) You can configure this with the 'Data Server Mode', which can optionally remember the last setting or pop-up each time you start MultiCharts to choose between real-time data (online) or worki...
by JoshM
29 Sep 2016
Forum: MultiCharts
Topic: how can it calculate base on closed bar? [SOLVED]
Replies: 18
Views: 4276

Re: how can it calculate base on closed bar? [SOLVED]

I have a script work for multi data instruments, the entry and exit are correct during back test. but when the script running for real time trade, the orders will be submit on every data1 bar close as usual, but the calculation base on the indicators of the current bar on data2, data3, data4 and da...
by JoshM
28 Sep 2016
Forum: MultiCharts
Topic: Print Command in Real-Time Trading & NOT during backtesting [SOLVED]
Replies: 2
Views: 1087

Re: Print Command in Real-Time Trading & NOT during backtest [SOLVED]

I have this print command that I want to produce an output only during live trading and not during backtesting. Any suggestions are greatly appreciated. If (backtesting = false) then Print(" Date ", FormatDate("yyyy-MM-dd", ELDateToDateTime(Date))) You can use the `GetAppInfo()` keyword for that. W...
by JoshM
26 Sep 2016
Forum: MultiCharts
Topic: Wrong Ematrend function [SOLVED]
Replies: 20
Views: 4526

Re: Wrong Ematrend function [SOLVED]

Yes, of course !!! In the proprietary Ematrend indicator you have a smooth by standard deviation that you have not in the proprietary Ematrend function by Malverti/Multicharts. So, if you kindly read my first post, it is exactly what I am stating. I'm not sure if I follow, but isn't the point of a ...
by JoshM
24 Sep 2016
Forum: MultiCharts
Topic: Can Multicharts do automation like this?
Replies: 4
Views: 1483

Re: Can Multicharts do automation like this?

Based on my experiences so far it seems that the biggest issue is getting the information from IQFeed fast enough into MC. If I have understood correctly MCs is very slow with moving information around. The processing of the information doesn't seem to be such an issue. I'd also check with IQFeed f...
by JoshM
17 Sep 2016
Forum: MultiCharts
Topic: Elder's disk for TS with enhanced MACD scanner
Replies: 6
Views: 2129

Re: Elder's disk for TS with enhanced MACD scanner

Looking at the pdf manual for that product, those scripts all use TS features that are available in MultiCharts too. So based on that it should work in MultiCharts too. However, and this is a big however , not all TS code works in MultiCharts and if the developer has used some of the more elaborativ...
by JoshM
12 Sep 2016
Forum: MultiCharts
Topic: Difference (x)ticks [SOLVED]
Replies: 1
Views: 1131

Re: Difference (x)ticks [SOLVED]

This can be caused by a number of different reasons, including: - Do both charts have the same sessions? - Are both chars fed by the same kind of feed (so no comparison of a demo account feed versus a funded account feed)? (The LMAX price data from the demo account differs from the actual, real pric...
by JoshM
12 Sep 2016
Forum: MultiCharts
Topic: Auto Trading with Playback
Replies: 2
Views: 1148

Re: Auto Trading with Playback

it's possible to apply the auto trading strategy with mode playback? I'm not sure about this, but perhaps it can be done. What do you want to achieve, however; evaluating the behaviour of the trading strategy on historical bars with the Playback Mode, or submit orders in real-time while running the...
by JoshM
11 Sep 2016
Forum: MultiCharts .NET
Topic: cqg connection [SOLVED]
Replies: 1
Views: 1251

Re: cqg connection [SOLVED]

can't establish connection to CQG
What's the error message you receive (if any)?

You can find error messages in the 'Logs' tab of the Order and Position Tracker window and in the log that's displayed in bottom part of the QuoteManager.
by JoshM
09 Sep 2016
Forum: MultiCharts
Topic: Volume Delta Chart data access
Replies: 5
Views: 2122

Re: Volume Delta Chart data access

I am using mc power language to write my trading logic. and I'm exploring the "Volume Delta Chart" and "Cumulative Delta Chart" provided in MC. However , when i wanted to access the "bid/ask" data provide in Volume Delta Chart, I am not able to find any function..code..or whatever for it in powerla...
by JoshM
09 Sep 2016
Forum: MultiCharts
Topic: tl_new, text_new return values owned by others
Replies: 3
Views: 1539

Re: tl_new, tl_new return values owned by others

I found that tl_new and tl_new return values owned by others, as the consequence of that, tl_delete deletes the wrong object. (Just to check we're on the same page: you mention `TL_New()` and `TL_New()` here. Is your question about comparing two of the same keywords?) When you get the trend line ID...
by JoshM
07 Sep 2016
Forum: MultiCharts
Topic: Plotting actual trades on a chart after the fact [SOLVED]
Replies: 3
Views: 2167

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

Is anybody else doing this? Any thoughts about how best to do this? I'm not doing this so I cannot offer concrete code snippets, but as far as thoughts about how to do this: I would use ELCollections to load the data from the file. Once loaded, you can go through it with PowerLanguage and plot a tr...
by JoshM
03 Sep 2016
Forum: MultiCharts
Topic: Question on limiting Market Orders to reduce slippage?
Replies: 5
Views: 2146

Re: Question on limiting Market Orders to reduce slippage?

I've been looking for ways to reduce slippage and whilst that is possible with stops with stop limits, is there any way to limit the amount of slippage you would be willing to incur with a market order e.g Buy next bar at Open;? Not sure if this even makes sense ... Thanks! If you want to reduce sl...
by JoshM
29 Aug 2016
Forum: MultiCharts
Topic: Keeping text from indicator on screen [SOLVED]
Replies: 9
Views: 2935

Re: Keeping text from indicator on screen [SOLVED]

I haven't tested this, but what about creating several manual text boxes on the chart, and then having the indicator access those? It's very cool that MultiCharts can indeed do this. :) Example: Variables: currentTextBox(0); once (CurrentBar = 10) begin currentTextBox = Text_GetFirst(7); while (cur...

Go to advanced search