Search found 22 matches

by Parker
31 Aug 2018
Forum: MultiCharts
Topic: SetStopLoss function and currency
Replies: 1
Views: 860

SetStopLoss function and currency

I'm using the setstoploss keyword in my strategy trading forex pairs. The value of the stop amount I get seems to be in the symbol currency rather than the base currency I have set in the strategy properties. I have assumed this because the loss amounts do not match the value I set and they seem to ...
by Parker
29 Jun 2018
Forum: MultiCharts
Topic: Assign Initial Market Position - BarsSinceEntry
Replies: 1
Views: 849

Assign Initial Market Position - BarsSinceEntry

Let's say I have a strategy auto trading that uses an exit rule based on the BarsSinceEntry keyword. It opens a trade. If something happens and MC has to be rebooted I will leave the trade open and then use the Assign Initial Market Position option when I restart the terminal. I can tell MC at what ...
by Parker
27 Jun 2018
Forum: MultiCharts
Topic: Assign Initial Market Position Entry Names [SOLVED]
Replies: 3
Views: 1900

Re: Assign Initial Market Position Entry Names [SOLVED]

This was a great idea! I have managed to do this using csv files, a separate function and Global Variables. I use one function to save entry names, times, contracts, etc, to a csv file every time the position changes. Then whenever I restart auto trading I call another function in my signals that ch...
by Parker
27 Jun 2018
Forum: MultiCharts
Topic: Issue with Global Variables [SOLVED]
Replies: 7
Views: 2524

Re: Issue with Global Variables [SOLVED]

Thanks ABC found the sample indicators. I got to the bottom of it in the end. It was the "if CurrentBar = 1". By changing it to "LastBarOnChart" it started working. I'm not sure why to be honest as I was thinking the Current Bar being 1 is the bar we are on now, which is also the last bar on the cha...
by Parker
27 Jun 2018
Forum: MultiCharts
Topic: Issue with Global Variables [SOLVED]
Replies: 7
Views: 2524

Re: Issue with Global Variables [SOLVED]

Does anyone have a working code that uses Global Variables that they would be willing to share?

I could then test run this in my platform and compare to my code and try to see where I am going wrong. I'm not sure if it's a coding issue or issue with the DLL installation.

Thanks.
by Parker
26 Jun 2018
Forum: MultiCharts
Topic: Issue with Global Variables [SOLVED]
Replies: 7
Views: 2524

Re: Issue with Global Variables [SOLVED]

Ok, here is the full code. I am working on a process for position recovery if auto trading is cut out for some reason. I am trying to write a function that my signals will call when auto trading is turned on. If there is an open trade on the symbol this function will check a csv file for the last ma...
by Parker
26 Jun 2018
Forum: MultiCharts
Topic: Issue with Global Variables [SOLVED]
Replies: 7
Views: 2524

Re: Issue with Global Variables [SOLVED]

Ok I have read the documentation. It sounds like my code is fine, but still getting errors.

It's not setting the values into the variables correctly. The following code gives me a result of "-1".

Code: Select all


Value1 = GVSetDouble(1,Close[1]);

Print(Value1);
Any idea what could be going wrong?
by Parker
26 Jun 2018
Forum: MultiCharts
Topic: Issue with Global Variables [SOLVED]
Replies: 7
Views: 2524

Issue with Global Variables [SOLVED]

I'm having trouble using Global Variables. I have imported the zip file found on the forum so I have the functions now available in PL editor. I have not been able to find any documentation on how to use them though. I've had a go using the following code but I have no values coming through in the G...
by Parker
26 Jun 2018
Forum: MultiCharts
Topic: Read Last Row From File with EL Collections [SOLVED]
Replies: 2
Views: 1575

Re: Read Last Row From File with EL Collections [SOLVED]

Hi ABC, Thanks yes this has worked great. This has actually also helped me to understand better what the code is doing. I ran ListX.Count on the ListC_ID variable which gives the number of columns. Then ran it Date_ID and it gives me the number of records. I had adapted this code from some forum pos...
by Parker
25 Jun 2018
Forum: MultiCharts
Topic: Execution of Stoploss Orders [SOLVED]
Replies: 2
Views: 913

Re: Execution of Stoploss Orders [SOLVED]

Thanks, this has worked!

It seems the "marketposition<>0 condition does not work with the SL if need it to be executed straight away. I assume it must not pick up the marketposition change until the next bar.
by Parker
25 Jun 2018
Forum: MultiCharts
Topic: Read Last Row From File with EL Collections [SOLVED]
Replies: 2
Views: 1575

Read Last Row From File with EL Collections [SOLVED]

Does anyone know how to read the last row from a file with EL Collections? I am reading in a standard csv file. I have managed to figure out how to point at certain row numbers. But what happens if you don't know how many records are in the file. There is no end of file marker in my data. I have tri...
by Parker
24 Jun 2018
Forum: MultiCharts
Topic: Execution of Stoploss Orders [SOLVED]
Replies: 2
Views: 913

Execution of Stoploss Orders [SOLVED]

So I want to open a trade and set a stoploss order straight away based on a number of points from the opening price. The code I am using is: if MarketPosition=0 AND EntryFilter=True then BEGIN; SL = AvgTrueRange(20) * Multiple; BUY ("LE") 1 Contract next bar at Open; END; if MarketPosition<>0 AND SL...
by Parker
24 Jun 2018
Forum: MultiCharts
Topic: Assign Initial Market Position Entry Names [SOLVED]
Replies: 3
Views: 1900

Assign Initial Market Position Entry Names [SOLVED]

Hi, I have an issue with using the "assign initial market position" after there has been a loss of connection and MC is restarted. After there has been a connection loss I want to leave trades open and MC pick up managing them where it left off once everything is reconnected. The problem is I manage...
by Parker
12 Jun 2018
Forum: MultiCharts
Topic: CoT Commitment of Traders Data
Replies: 8
Views: 3441

Re: CoT Commitment of Traders Data

Hi ABC,

Good idea!.. I think the text file could work. I could print the data from TS to a file, and then map the file to a symbol in Quote Manager. I wonder if the data would auto update in MC when the file changes if I used the ASCII mapping option.

Thanks!
by Parker
11 Jun 2018
Forum: MultiCharts
Topic: CoT Commitment of Traders Data
Replies: 8
Views: 3441

Re: CoT Commitment of Traders Data

Hi Josh, TS offer the COT data in real time, well I guess it's updated weekly but there is a COT indicator in the platform that you can load to a chart and it gives you the graphs for comm/non-comm etc. I use TS as a data feed so I wondered if there is a way to get the data to feed into Multicharts ...
by Parker
11 Jun 2018
Forum: MultiCharts
Topic: CoT Commitment of Traders Data
Replies: 8
Views: 3441

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 ot...
by Parker
11 Jun 2018
Forum: MultiCharts
Topic: ASCII Mapped Data Going Missing [SOLVED]
Replies: 3
Views: 2239

Re: ASCII Mapped Data Going Missing [SOLVED]

Thanks Svetlana, I have re-mapped all of the symbols and this has resolved the issue.
by Parker
05 Jun 2018
Forum: MultiCharts
Topic: ASCII Mapped Data Going Missing [SOLVED]
Replies: 3
Views: 2239

Re: ASCII Mapped Data Going Missing [SOLVED]

Since writing this it has happened again, very frustrating. Strange thing I hadn't even closed the platform. I even still had charts loaded with data from the ASCII source. It just wouldn't let me load new charts. I have had to close MC and Quote Manager. Re-open Quote Manager and re-import the data...
by Parker
04 Jun 2018
Forum: MultiCharts
Topic: ASCII Mapped Data Going Missing [SOLVED]
Replies: 3
Views: 2239

ASCII Mapped Data Going Missing [SOLVED]

Hi, I have set up a large number of symbols in Quote Manager using ASCII Mapping as the data source, pointing at files saved on my hard drive. I right-click the symbol then Import Data > ASCII > then select my file to load. This works fine for a while but then Quote Manager seems to keep losing the ...
by Parker
03 Jun 2018
Forum: MultiCharts
Topic: Symbol from Multiple Historical Data Sources [SOLVED]
Replies: 3
Views: 1191

Re: Symbol from Multiple Historical Data Sources [SOLVED]

I have just checked it and it will overwrite the minute data with the daily unless I specify the date periods.

If I set the date period for the Provider 2 to 1997-2009 then it just fills the gap, which is what I am after.

Thanks for the help, appreciated!
by Parker
03 Jun 2018
Forum: MultiCharts
Topic: Symbol from Multiple Historical Data Sources [SOLVED]
Replies: 3
Views: 1191

Re: Symbol from Multiple Historical Data Sources [SOLVED]

Hi TJ, I plan to do this for about 10 symbols. Thanks for the suggestion I've just tried this and it seems to have worked. I created a new symbol in Quote Manager. Imported Provider 1 1m data (2009-2018) from an ASCII file. Then imported Provider 2 daily data (1997-2017) to the same Symbol. When I p...
by Parker
03 Jun 2018
Forum: MultiCharts
Topic: Symbol from Multiple Historical Data Sources [SOLVED]
Replies: 3
Views: 1191

Symbol from Multiple Historical Data Sources [SOLVED]

Hi All, I have historical data from two providers. Provider 1 = 1m data, 2009-2018. Provider 2 = Daily data, 1997-2017. Is it possible to merge these two data sources in MultiCharts, either in Quote Manager or on a chart so I can plot daily charts 1997-2018 using this data? I would be using this for...

Go to advanced search