Search found 129 matches

by rrams
May 21 2024
Forum: MultiCharts
Topic: VWAP Bands Problem with Exception Floating-point division by zero
Replies: 11
Views: 1537

Re: VWAP Bands Problem with Exception Floating-point division by zero

sforbes, Function SafeDivide(Numerator, Denominator: Numeric): Numeric; - I wish MultiCharts allowed inline functions; that would help de-clutter my code database, but alas, no. For error trapping an indicator that shows on the main subchart; it is not a good idea to just zero out the result to avoi...
by rrams
Nov 06 2023
Forum: MultiCharts
Topic: How to add to an open position
Replies: 8
Views: 1817

Re: How to add to an open position

Yohyon, It is good to not be afraid to try to implement the strategy you want; but learning can be much less expensive using only one contract until you get the hang of it. Scaling into a position with multiple limit orders is going to be daunting to code the way you expect it to work. The buy order...
by rrams
Nov 04 2023
Forum: MultiCharts
Topic: VWAP Bands Problem with Exception Floating-point division by zero
Replies: 11
Views: 1537

Re: VWAP Bands Problem with Exception Floating-point division by zero

sforbes, If you still want the original Vwap-_bands_5 indicator fixed, I can edit it to behave better. Just realize that Volume Weighted Average Price is bombing with division by zero error because of missing volume data. Some symbols have historical volume available, some only have real-time volume...
by rrams
Nov 04 2023
Forum: MultiCharts
Topic: More efficient usage of PRINT beyond using Barstatus = 2 [SOLVED]
Replies: 2
Views: 487

Re: More efficient usage of PRINT beyond using Barstatus = 2 [SOLVED]

Luto,
Try this and see if it is what you want:

Code: Select all

if Barstatus=2 and Symbol_Length-Symbol_CurrentBar<=9 then print("High: ", H);
by rrams
Oct 24 2023
Forum: MultiCharts
Topic: How to use ELCollection to read last row from a file? [SOLVED]
Replies: 4
Views: 628

Re: How to use ELCollection to read last row from a file? [SOLVED]

Hi rc76, I don't have the ELCollections documentation with me to look at but I think you want this: vars: FileName("C:\Read123.txt"), ListC_ID(ListC.New), ListDate_ID(0), ListTime_ID(0), MyDate(""), MyTime(""); if CurrentBar = 1 then begin // Read entire file Value1 = L...
by rrams
Sep 25 2023
Forum: MultiCharts
Topic: strategy help
Replies: 3
Views: 596

Re: strategy help

leonng, That is a somewhat unusual exit style. If I understand correctly, you want to enter at any RSI cross-over, but only exit every fourth day of the month? So you might be in the trade one bar or up to 24 bars? MC trading sessions are defined by hours of the week and cannot span days of the mont...
by rrams
Sep 16 2023
Forum: MultiCharts
Topic: No orders are being closed [SOLVED]
Replies: 2
Views: 699

Re: No orders are being closed [SOLVED]

hb7of9, The two reasons no exits are being triggered is because: 1. The TradeString is updated every bar and so the previous entry order name cannot be referenced. 2. The sell limit and stop orders use the current close times .7 or 1.3. This is not 30% profit or loss from the entry price. The close ...
by rrams
Aug 08 2023
Forum: MultiCharts
Topic: Find top X S&P500 companies
Replies: 4
Views: 701

Re: Find top X S&P500 companies

Hello, Unfortunately, Interactive Brokers does not supply lists of stock symbols by exchange or index. You can download this information from several other sources such as https://www.barchart.com/stocks/indices/sp/sp500?viewName=fundamental&orderBy=marketCap&orderDir=desc . S&amp;P500-T...
by rrams
Jul 01 2023
Forum: MultiCharts
Topic: faulty backtest results when dataindex is used
Replies: 12
Views: 1387

Re: faulty backtest results when dataindex is used

krzysiaczek99, It is very possible I don't understand what it is that you are trying to do. I can't tell by the pictures. I have to assume you know that only the primary symbol (the symbol in the first data slot) can be traded. Those are the prices that show up in the backtest results. The AUDJPY pa...
by rrams
Jun 30 2023
Forum: MultiCharts
Topic: faulty backtest results when dataindex is used
Replies: 12
Views: 1387

Re: faulty backtest results when dataindex is used

Hi krzysiaczek99, The FAQ that TJ pointed out does have the correct information for handling multiple data series, including function calls. The topic is not the most apparent to figure out for an easy language. It is ok to ask how to write the code but you included a function from John Ehler that w...
by rrams
Jun 16 2023
Forum: User Contributed Studies and Indicator Library
Topic: ConnorsRSI
Replies: 3
Views: 4521

Re: ConnorsRSI

scrichley, You must either copy the code from the ConnorRSI indicator into your signal and compile it there or turn the indicator code into a function and call that function from your signal. Creating a function out of the indicator code is easy, so it isn't always included. I have done it for you. ...
by rrams
Jun 13 2023
Forum: MultiCharts
Topic: After attain profit target, calculate the loss of closed position and open position profit....
Replies: 7
Views: 1071

Re: After attain profit target, calculate the loss of closed position and open position profit....

Hello exboy, I am thinking you want to record the change in profit per contract starting from a fixed price level target on a multi-contract position, but I don't completely understand your objective. Your use of Closedpositionprofit as a variable name confuses me because the profit on the last clos...
by rrams
Jun 03 2023
Forum: MultiCharts
Topic: Please help - code to make trade in specific year [SOLVED]
Replies: 2
Views: 505

Re: Please help - code to make trade in specific year [SOLVED]

Airke07, The PowerLanguage date and time routines are based on legacy UNIX "Posix" structure and are thus not completely intuitive to remember. Hence, it is best to make a link to the MultiCharts64.chm help file in the MultiCharts directory and keep that open to search for the proper keywo...
by rrams
Mar 30 2023
Forum: MultiCharts
Topic: How to code one trade a day or...
Replies: 9
Views: 1618

Re: How to code one trade a day or...

zanna,
Are you using realtime Synchronous AutoTrading mode? If that is the case then the EntryDate() keyword is going to give you trouble and a different solution is necessary.
by rrams
Mar 26 2023
Forum: MultiCharts
Topic: How to code one trade a day or...
Replies: 9
Views: 1618

Re: How to code one trade a day or...

Hello Zanna, The TradesToday function does work as intended, (although it should more appropriately be called EntriesToday). It may not have worked for you because of any of the following reasons: 1. You forgot to reset the condition1 back to false after every bar. 2. You didn't get enough signals t...
by rrams
Mar 22 2023
Forum: MultiCharts
Topic: Oanda data feed disconnecting prematurely
Replies: 2
Views: 481

Re: Oanda data feed disconnecting prematurely

Yes, Oanda is now unusable for me. Relying on Microsoft Edge was a complete disaster. Whereas using the API token is seamless, reliable and secure.
by rrams
Feb 11 2023
Forum: MultiCharts
Topic: Problem with Portfolio_OpenPositionProfit
Replies: 5
Views: 1017

Re: Problem with Portfolio_OpenPositionProfit

fltngpnt, "crosses under" applies to a plottable number series. You should just use "<" or ">" instead. ...and check using a printout of the Portfolio_OpenPositionProfit at each step.
by rrams
Jan 27 2023
Forum: MultiCharts
Topic: MTF ( Multitimeframe ) - basic question - please clarify
Replies: 2
Views: 640

Re: MTF ( Multitimeframe ) - basic question - please clarify

You can input a static data series and refer to that throughout your indicator or signal code.

Code: Select all

input: DSerC(C Data2), DSerL(L Data2), DSerH(H Data2); if DSerC>DSerC[1] and DSerL>DserL[1] and DSerH>DserH[1] then print(DSerH:0:0);
by rrams
Jan 04 2023
Forum: MultiCharts
Topic: IB Gateway optimal restart time for best stability ?
Replies: 2
Views: 550

Re: IB Gateway optimal restart time for best stability ?

After much experimenting, what I do is set the IB Gateway to restart at 21:30 MST (GMT-7) for connecting to the Chicago servers. HOWEVER, I also set a Windows Task Scheduler event to close the Gateway at 21:05 MST and open it back up at 22:05 MST. This is because during that time the Gateway tends t...
by rrams
Dec 25 2022
Forum: MultiCharts
Topic: Auto Trading Order Time Help
Replies: 5
Views: 859

Re: Auto Trading Order Time Help

o2cool, Yes, MultiCharts needs a live data feed to autotrade because signals are processed at the end of a new bar. You can't just click the Automate Order Execution button once at the beginning or end of the session. I do not advise that you try to use IntraBarOrderGeneration until you have more ex...
by rrams
Dec 24 2022
Forum: MultiCharts
Topic: Auto Trading Order Time Help
Replies: 5
Views: 859

Re: Auto Trading Order Time Help

Hi o2cool, You actually are learning the right way by starting with a simple trading strategy on a longer time scale with few symbols and forward testing on a demo account. Imagine if you wasted a year building and backtesting a sophisticated strategy only to discover how different it behaves in rea...
by rrams
Dec 14 2022
Forum: MultiCharts
Topic: Version: MultiCharts64 Version 14.0 Release (Build 24200)
Replies: 2
Views: 546

Re: Version: MultiCharts64 Version 14.0 Release (Build 24200)

Yes. It takes so long for any window to appear that I sometimes think my mouse button didn't work and I click on multiple instances.
by rrams
Dec 14 2022
Forum: MultiCharts
Topic: PMMS simple example [SOLVED]
Replies: 6
Views: 1074

Re: PMMS simple example [SOLVED]

Idangy, Looks like you are making progress. One thing I noticed; there needs to be separate dynamic arrays declared to hold the short and long positions. array: strats_with_longs[](0), strats_with_shorts[](0); positionsLong=pmms_strategies_in_long_count(strats_with_longs); // indexes of strategies w...
by rrams
Dec 12 2022
Forum: MultiCharts
Topic: PMMS simple example [SOLVED]
Replies: 6
Views: 1074

Re: PMMS simple example [SOLVED]

Idangy, Yes the functions like pmms_strategy_is_paused(1) take a parameter that are the zero indexed numbered strategies in your portfolio from top to bottom. Zero is strategy one, one is strategy two. Strategies in your portfolio tree can have multiple signals in each of them. The PMMS functions ap...
by rrams
Dec 11 2022
Forum: MultiCharts
Topic: Avoid a stop loss executed at a ridiculous price at market open
Replies: 4
Views: 733

Re: Avoid a stop loss executed at a ridiculous price at market open

Traditionally the spread refers to the difference between the bid and ask; not the close and ask/bid. var: Spread(0); // Forex must be calculated in either pips or percent. // (Ask-Bid)/(Ask)*100 = percent of spread if InsideAsk<>0 then // (InsideAsk-InsideBid)/(10*PointValue)=pips X 10 same as Oand...
by rrams
Dec 11 2022
Forum: MultiCharts
Topic: PMMS simple example [SOLVED]
Replies: 6
Views: 1074

Re: PMMS simple example [SOLVED]

// Portfolio Money Management Signal to pause trading from // second strategy if no open position from first strategy. if pmms_strategies_count<2 then RaiseRunTimeError("Must have at least two strategies."); if pmms_strategy_marketposition(0)<>0 then begin if pmms_strategy_is_paused(1) th...
by rrams
Nov 23 2022
Forum: MultiCharts
Topic: ADE.GetBarInfo for day and week timeframe
Replies: 6
Views: 911

Re: ADE.GetBarInfo for day and week timeframe

Yes, it's literally called All Data Everywhere. However, you should instead use ElCollections whenever possible because it is slightly more supported. They both are for the purpose of importing data structures like lists and vectors between charts.
by rrams
Nov 23 2022
Forum: MultiCharts
Topic: Potential Feature: The ability to change symbol using commandline during autotrading.
Replies: 2
Views: 4583

Re: Potential Feature: The ability to change symbol using commandline during autotrading.

rc76, You can indeed change symbols using that CommandLine(".csy name=" + SymName) and then if you want to start auto-trading; use another CommandLine(".at_toggle") to make it run. The exact code can be somewhat tricky, but I do it with all my charts relably. There must already b...
by rrams
Nov 22 2022
Forum: MultiCharts
Topic: ADE.GetBarInfo for day and week timeframe
Replies: 6
Views: 911

Re: ADE.GetBarInfo for day and week timeframe

rc76, I am not a spokesperson for ADE, but the GetBarInfo function is using the word "Interval" to mean a key that stores a map file. So even though seconds and quarter etc. charts are not explicitly supported; you can still store the map using the appropriate key that is generated from th...
by rrams
Nov 08 2022
Forum: MultiCharts
Topic: Sharpe Ratio on Portfolio Trader
Replies: 2
Views: 720

Re: Sharpe Ratio on Portfolio Trader

RadioactiveToy, can you specify what you mean by underlyings and how your Portfolio Trader is setup?
It seems to work normally for me.
sharp.png
(53.86 KiB) Not downloaded yet
by rrams
Oct 29 2022
Forum: MultiCharts
Topic: Custom Criteria – creating your own optimization criteria
Replies: 28
Views: 37638

Re: Custom Criteria – creating your own optimization criteria

soacm, The optimization Wiki page lists the available fitness function: https://www.multicharts.com/trading-software/index.php?title=Performing_Optimization You are welcome to start a new discussion or ask anybody a question in a new thread about the subject. Make sure to state the goal of your obje...
by rrams
Oct 28 2022
Forum: MultiCharts
Topic: Custom Criteria – creating your own optimization criteria
Replies: 28
Views: 37638

Re: Custom Criteria – creating your own optimization criteria

soacm, There are two ways to customize the optimization method. The one this thread is talking about is just called Custom Criteria and is written in JavaScript. To add your own code you start an optimization and under "Optimize by:", select "Custom Criteria", then hit the editor...
by rrams
Sep 27 2022
Forum: MultiCharts
Topic: Daily Hi Low Lines
Replies: 5
Views: 1320

Re: Daily Hi Low Lines

kdmezzo, A significant amount of work must have gone into TJ's FAQ; I find it very helpful. At least post code tags using the web page editor and thank the author if you appreciate the help by clicking the thumbs up icon. (it is free) inputs: StartTime(1700), OpenColor(Red), HighColor(Yellow), LowCo...
by rrams
Sep 14 2022
Forum: MultiCharts
Topic: Portfolio Trader 'End of Day' Print Code [SOLVED]
Replies: 2
Views: 1491

Re: Portfolio Trader 'End of Day' Print Code [SOLVED]

Code: Select all

if SessionLastBar then print("end of session");
by rrams
Sep 06 2022
Forum: MultiCharts
Topic: How to calculate the Highest High / Lowest Low for "N' sessions
Replies: 6
Views: 1884

Re: How to calculate the Highest High / Lowest Low for "N' sessions

tonyt, it is better to plot out what you are attempting in an indicator before you write a signal. That way you can make small changes to the code and see the results. Which one is closer to what you want or neither? inputs: nSess(5); var: hh(0), ll(0); // Not enough bar data for requested lookback ...
by rrams
Sep 04 2022
Forum: MultiCharts
Topic: When to define numeric variables with -.999 and .999
Replies: 1
Views: 577

Re: When to define numeric variables with -.999 and .999

In both examples the use of '-.999999' for the initial value of a variable is because the greater than condition needs to evaluate to true THE FIRST TIME in order to seed that variable. Then each new bar iteration replaces that variable with a new value only if it is greater than the previous. So, v...
by rrams
Aug 20 2022
Forum: MultiCharts
Topic: Cancel a signal, prevent from executing
Replies: 2
Views: 869

Re: Cancel a signal, prevent from executing

hi syswiz, If your signal is running in Portfolio Trader; you can create a Portfolio Money Management script to disable trading of all signals in the portfolio using the pmms_strategies_pause_all keyword or just stop taking new entries with pmms_strategies_deny_entries_all. If your signal is running...
by rrams
Aug 04 2022
Forum: MultiCharts
Topic: Position Size function based on risk amount and stop size
Replies: 1
Views: 798

Re: Position Size function based on risk amount and stop size

Hello DanielFXS, If you wanted to just use currency conversion when needed; you could try: (Some Oanda pairs do not support currency conversion) if StrategyCurrencyCode<>SymbolCurrencyCode and StrategyCurrencyCode>0 then riskInCounterCurrency=Convert_Currency(DateTime, StrategyCurrencyCode, SymbolCu...
by rrams
Aug 02 2022
Forum: MultiCharts
Topic: The highest bar of n day ago [SOLVED]
Replies: 3
Views: 989

Re: The highest bar of n day ago [SOLVED]

If you only care about the number of days in terms of 24 hours and not the number of session start times, then you could do something like: input:N(1); // days ago var: BarsPerDay(0), HighestBarAgo(0); if BarType_ex=2 then BarsPerDay=1440/BarInterval // minute time frame else if BarType_ex=3 then Ba...
by rrams
Jul 30 2022
Forum: MultiCharts
Topic: Position size [SOLVED]
Replies: 2
Views: 903

Re: Position size [SOLVED]

Depending on the historical data, AvgTrueRange can return zero. Which would throw a division by zero error. Other than that it should work. Try setting the numContracts variable to fixed number and if that does not work then provide a screenshot of your signal property settings and what instrument y...
by rrams
Jul 17 2022
Forum: MultiCharts
Topic: Stop trading for the day after profit reached
Replies: 5
Views: 1209

Re: Stop trading for the day after profit reached

Here is a function you can add to your chart signal to determine whether daily profit target or max loss is reached. Daily_PnL_Limit.pla It only works on a single symbol. It would not be productive if I provided more complex code to handle multiple symbols with multiple position entries. That would ...
by rrams
Jul 16 2022
Forum: MultiCharts
Topic: Stop trading for the day after profit reached
Replies: 5
Views: 1209

Re: Stop trading for the day after profit reached

Hello kingin Hong Kong?, 1. You can code a condition in your signal not to enter a new position until after a certain number of bars past the last closing trade using: if (BarsSinceExit(1)>2 or MarketPosition(1)=0) // means two bars after exit or a flat position 2. You can either add logic to every ...
by rrams
Jul 13 2022
Forum: MultiCharts
Topic: Please help with the script Power Language.
Replies: 1
Views: 533

Re: Please help with the script Power Language.

335, what you describe is called a ratchet stop. There are many ways to program it depending on if you are working with positions or entries, IOG or not, etc. George Pruitt has some good free lessons and books. I would do something like (untested): vars: PointAmount(-30); if MaxContractProfit>=40 th...
by rrams
Dec 10 2021
Forum: MultiCharts
Topic: Profitable week's open [SOLVED]
Replies: 3
Views: 1043

Re: Profitable week's open [SOLVED]

Not only do the holidays make the solution more difficult; you also need to code print statements to show that the exits are happening the way you want them to. In other words, proving you have it correct can be just as troublesome as writing the original code. Here is my attempt that just sells whe...
by rrams
Sep 27 2021
Forum: MultiCharts
Topic: ASCII Mapping - Cannot Map DJI Index [SOLVED]
Replies: 4
Views: 859

Re: ASCII Mapping - Cannot Map DJI Index [SOLVED]

When you import the ascii data, try changing the first field from "Unchanged Ticks" to "Date" using the yyyymmdd format and then set the resolution to 1 Day.
by rrams
Jun 13 2021
Forum: MultiCharts
Topic: intrabarpersist var doesn’t work in real time trade [SOLVED]
Replies: 8
Views: 1836

Re: intrabarpersist var doesn’t work in real time trade [SOLVED]

If you need to calculate something or place an order at the close of a bar then use BarStatus to test the bar condition. [IntrabarOrderGeneration=true]; var: IntraBarPersist mp(0); if BarStatus(1)=2 then begin // will calculate at end of bar sell("JobName") next bar at xxx limit; end; if m...
by rrams
Jun 08 2021
Forum: MultiCharts
Topic: Fake ticks form IB TWS
Replies: 21
Views: 4051

Re: Fake ticks form IB TWS

You're welcome Ima. Hopefully I can clarify what I meant by switching to a more liquid instrument. I am not referring to the total trading volume. Imagine hypothetically, a world where a broker gets paid to provide good fills to dark pools which hide orders and also that broker provides realtime quo...
by rrams
Jun 07 2021
Forum: MultiCharts
Topic: Fake ticks form IB TWS
Replies: 21
Views: 4051

Re: Fake ticks form IB TWS

Hello Ima, Yes, everybody who uses IB for realtime data will eventually encounter that same situation. Historical data from them is less terrible. Yes, there are ways to mitigate the problem: 1. Use a better data provider (IQFeed). 2. Trade a higher timeframe (daily). 3. Trade a different instrument...
by rrams
May 25 2021
Forum: MultiCharts
Topic: Possible to reference a variable's historical value based on higher data series?
Replies: 2
Views: 731

Re: Possible to reference a variable's historical value based on higher data series?

Hi McGeorge, What you did wrong was assign the current time of data1 to a variable and then try to reference it as if it was from data2. There is no data series associated with a variable other than the one you assign it to. If you want the time from data2 in a variable, then assign it to a differen...
by rrams
May 24 2021
Forum: MultiCharts
Topic: MC Portfolio, auto-trade, end of day, swing trade, IB MARKET ORDERS REJECTED !
Replies: 3
Views: 891

Re: MC Portfolio, auto-trade, end of day, swing trade, IB MARKET ORDERS REJECTED !

Hello quantum777, Unless you are extremely unlucky, there are other people who have experienced the same problem and are just afraid to ask. So please take the time and effort to collect enough information to properly identify and catagorize the issue for the benefit of everyone. That is the hard pa...
by rrams
May 24 2021
Forum: MultiCharts
Topic: Buy order doesn't fire
Replies: 2
Views: 553

Re: Buy order doesn't fire

Hello quod_erat, 1. The code: if marketposition=1 then var = 0; numentries = 1; is missing Begin and End statements which makes numentries = 1; ignore the if clause. 2. It is a crime against humanity to use the reserved word "var" as the name of a variable. (Also using numentries as a true...
by rrams
Apr 26 2021
Forum: MultiCharts
Topic: Equities universe
Replies: 22
Views: 4117

Re: Equities universe

Oh gosh Ben, that is probably a difficult thing to do with any charting platform. It's not just the lack of a programmable symbol import or hotkey that is the issue. MultiCharts is designed to work with streaming quote data. Instead; when you want to work with thousands of symbols, you normally requ...
by rrams
Apr 24 2021
Forum: MultiCharts
Topic: Micro Future EUREX in Quotemanager
Replies: 5
Views: 1477

Re: Micro Future EUREX in Quotemanager

bomberone1, I think Kate wants to know the data provider you are using and what symbol root they use for that product. She can add it if you specify. For instance, the data provider Interactive Brokers uses a symbol root of ESTX50 and it resides on the DTB exchange. https://contract.ibkr.info/v3.10/...
by rrams
Apr 14 2021
Forum: MultiCharts
Topic: Speed of Compiled Indicator/Strategy
Replies: 3
Views: 668

Re: Speed of Compiled Indicator/Strategy

2 is always faster than 1 in every computer language. However in practical terms it doesn't make much difference. For MC it matters more that you don't do heavy file I/O or large array processing or reference the whole dataset every incoming tick. Under 1, MC is doing the same calcuation each time t...
by rrams
Apr 13 2021
Forum: MultiCharts
Topic: Is there a check to return if the chart contains Data2 ?
Replies: 1
Views: 500

Re: Is there a check to return if the chart contains Data2 ?

Correct, there is still no way to programmatically check if additional data series are present on the chart. Querying Symbol_Length Data(N) will result in a run time error if no data series is found. Also, if a secondary data series is added and it doesn't have any data to load; then the primary dat...
by rrams
Feb 26 2021
Forum: MultiCharts
Topic: OANDA - UNABLE TO CONNECT TO NETWORK LOGON DEMO [SOLVED]
Replies: 13
Views: 3768

Re: OANDA - UNABLE TO CONNECT TO NETWORK LOGON DEMO [SOLVED]

Thank you MultiCharts development team for the quick fix for the Oanda logon change! The updater does allow correct connection to the broker and backfills for me. However; this fix causes MultiCharts version 12 to become unresponsive to window click requests. I get it that the file name has 14X64 bu...
by rrams
Jan 03 2021
Forum: MultiCharts
Topic: Bug in the EL core compiler/interpreter
Replies: 12
Views: 1800

Re: Bug in the EL core compiler/interpreter

Hi c0ntango, Hope you don't mind my opinion: I wouldn't technically call this a bug. This does give unexpected behavior, but a true software bug is if there is no way of producing an intended functionality. (Although in an academic setting there would be marks off for this design.) So the question b...
by rrams
Dec 26 2020
Forum: MultiCharts
Topic: How to identify place where linked contracts in continuous contract? [SOLVED]
Replies: 10
Views: 1772

Re: How to identify place where linked contracts in continuous contract? [SOLVED]

Hi Xurma, Please be aware that the CME settlement date is not the same as the rollover date that your data provider uses for continuous contracts. If you cannot backtest on each individual contract month in Portfolio Trader and must use a continuous contract, then you will have to construct your own...
by rrams
Dec 23 2020
Forum: MultiCharts
Topic: How to identify place where linked contracts in continuous contract? [SOLVED]
Replies: 10
Views: 1772

Re: How to identify place where linked contracts in continuous contract? [SOLVED]

Yes, the rollover date is important information to know if you are trading crude oil futures. Unfortunately that date is determined differently by each data vendor. Sometimes a fixed date and sometimes when more volume arrives in the next contract, or in the case of Interactive Brokers possibly just...
by rrams
Dec 04 2020
Forum: MultiCharts
Topic: Pattern scanner
Replies: 8
Views: 1508

Re: Pattern scanner

Yes, a function call uses a parenthesis and OpenS(0) is a valid function. The syntax of that part of your code is correct. Except HighD(o) is using the letter 'o' instead of the number zero '0'. You need to change that. Square brackets '[ ]' are used to reference array and series elements. You did t...
by rrams
Dec 03 2020
Forum: MultiCharts
Topic: Pattern scanner
Replies: 8
Views: 1508

Re: Pattern scanner

You forgot to add the input statement to the PtnBaseSA function:

Code: Select all

inputs: numeropattern(numericsimple);
by rrams
Sep 15 2020
Forum: MultiCharts
Topic: Micro Yen Futures Price scale Settings
Replies: 2
Views: 688

Re: Micro Yen Futures Price scale Settings

Hi Claude, by "out of whack" do you mean it doesn't look like BarChart.com?
BarChartYen.png
(14.95 KiB) Not downloaded yet
or it doesn't look like the CME?
CMEYen.png
(3.13 KiB) Not downloaded yet
I just use the settings that IB assigned upon adding through QuoteManager.
MJYQM.png
(5.23 KiB) Not downloaded yet
by rrams
Jul 03 2020
Forum: MultiCharts
Topic: Interactive Brokers
Replies: 6
Views: 2727

Re: Interactive Brokers

I am going to guess that this problem is caused by not having a Brazilian real currency to choose from when you add the BOVESPA exchange to the Exchanges & ECNs and/or Security Definition in QuoteManager. The API call to IB TWS needs to use BOVESPA as exchange name and BRL as currency, not USD, ...
by rrams
Apr 21 2020
Forum: MultiCharts
Topic: sort arrays but keeping track of the location
Replies: 2
Views: 964

Re: sort arrays but keeping track of the location

I encourage you to try writing your own 2 dimensional sort routine.
Maybe this can help you: https://www.usingeasylanguage.com/sksort/
by rrams
Apr 14 2020
Forum: MultiCharts
Topic: [AutoTrading] How to get initial margin & maintenance margin
Replies: 7
Views: 2274

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

Margin? That thing traders use which most determines their risk of ruin? If you're going to dream then dream big. Since you are unlikely to get those PowerLanguage keywords ever; why not submit a new request to have the current margin of your choice automatically filled in to the QuoteManager field ...
by rrams
Apr 12 2020
Forum: MultiCharts
Topic: Avoiding multiple entries.
Replies: 5
Views: 1647

Re: Avoiding multiple entries.

{ Keltner Channel bands appear above and below the market. Prices that are within these bands are said to be normal prices. A setup is established upon the breakout above the upper Keltner band. Once the breakout has occurred, a buy stop order is placed at the high of the bar on which the breakout ...
by rrams
Feb 21 2020
Forum: MultiCharts
Topic: !From Strat to Broker MP sync on paper
Replies: 3
Views: 1599

Re: !From Strat to Broker MP sync on paper

It could be from the !From Strat to Broker MP Sync. That was why I chose to only use the !From Broker to Strat MP Sync. It doesn't have any problems. However your strategy code can also cause that behaviour. Even the famous Art Collins Cups-Caps Overnight with Stops and Targets code from Beating the...
by rrams
Feb 20 2020
Forum: MultiCharts
Topic: last bar day
Replies: 6
Views: 1787

Re: last bar day

turbofib, what you are asking for is somewhat complicated. You can accomplish it with code something like this: variables: dayfraction(0), nextsession(0); switch(BarType_ex) begin case 2: dayfraction=BarInterval/1440; // minutes case 3: dayfraction=BarInterval/24; // hours case 9: dayfraction=BarInt...
by rrams
Feb 19 2020
Forum: MultiCharts
Topic: exit function with error
Replies: 2
Views: 1106

Re: exit function with error

Hello,
If you just want the function to exit without an error, you use the PowerLanguage keyword:

Code: Select all

#return;
If you want the function to abort with an error message you use the PowerLanguage keyword:

Code: Select all

RaiseRunTimeError("Message");
by rrams
Jan 09 2020
Forum: MultiCharts
Topic: Plot Time Line Drawing Object
Replies: 1
Views: 855

Re: Plot Time Line Drawing Object

No Object Oriented Easy Language available, thankfully. But yeah, it is a little kludgy that there isn't a function with an additional parameter to specify which subchart(s) to apply the drawing to. Not a big deal though; just make sure to replace in the code TL_New with TL_New_Self and add the indi...
by rrams
Dec 02 2019
Forum: MultiCharts
Topic: unable to use barssinceexit(1) but able to print it [SOLVED]
Replies: 12
Views: 3897

Re: unable to use barssinceexit(1) but able to print it [SOLVED]

There is no bug. You don't have a valid set of initial conditions to allow a first trade.
Just write it simply:

Code: Select all

if (MarketPosition=0 and BarsSinceExit(1)>3) or MarketPosition(1)=0 then buy next bar market;
by rrams
Nov 21 2019
Forum: MultiCharts
Topic: _Single At-Mrkt En pre-built strategy [SOLVED]
Replies: 1
Views: 831

Re: _Single At-Mrkt En pre-built strategy [SOLVED]

1. It's pre Y2k, uncommented, garbage code that is forced onto our system every time we do an update even after being deleted because a self managed code repository or even directory system with branches for anything other than signal, function and indicator has not been implemented yet. 2. The auth...
by rrams
Oct 28 2019
Forum: MultiCharts
Topic: Exit Discrepancy: Automated vs. BackTested [SOLVED]
Replies: 9
Views: 3007

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

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

Re: Order rejected after close

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

Re: PL-Code for Traders' Tips October 2019

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

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

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

Re: PL-Code for Traders' Tips October 2019

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

Re: Don't Use Multicharts with MBTrading

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

Re: Don't Use Multicharts with MBTrading

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

Re: Array copy and sort question

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

Re: How do I reference particular markets

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

Re: How do I reference particular markets

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

Re: MULTICHARTS 12.0 RELEASE 3

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

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

Re: Run a slideshow of charts?

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

Re: Rollover gap on backadjusted contract [SOLVED]

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

Re: countdown for contrats resolution [SOLVED]

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

Re: Percent Volume Oscillator (PVO)

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

Re: Percent Volume Oscillator (PVO)

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

Re: Auto Trading Questions

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

Re: save autotrading status [SOLVED]

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

Re: Portfolio trader with Exchange time

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

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

save autotrading status [SOLVED]

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

Re: Non Equidistant Candle Bars [SOLVED]

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

Re: Non Equidistant Candle Bars [SOLVED]

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

Re: Begin session and EndSession

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

Re: Begin session and EndSession

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

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

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

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

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

Re: Need other sets of eyes [SOLVED]

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

Re: Old TS Script [SOLVED]

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

Re: Can not get CBOE Index data from IB

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

Re: Coding a new hour ? [SOLVED]

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

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

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

Re: How to calculate margin? [SOLVED]

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

Re: Replace string [SOLVED]

Code: Select all

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

Re: Seasonal Day Trade

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

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

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

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

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

Re: SuperTrend [SOLVED]

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

Re: The Economic Events Collection for MultiCharts

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

Re: Problem with EntriesToday(Date)

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

Re: Problem with EntriesToday(Date)

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

Re: chart IB symbol help [SOLVED]

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

Re: The Economic Events Collection for MultiCharts

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

chart IB symbol help [SOLVED]

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

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

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

Re: MC chart latency issues

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

Symbol Dictionary - Daily Limit

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

Re: How do we stop "Connectivity error"

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

Re: CurrentSession Function

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

CurrentSession Function

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

Re: IB TICK-NYSE minute chart truncated

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

Re: IB TICK-NYSE minute chart truncated

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

IB TICK-NYSE minute chart truncated

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

Re: Multicharts 7.4 + Latest IB problem

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

Re: MBTrading, historical breadth data available?

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

Re: RAMDisk - might be useful to speed up MC

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

Re: charts stopped updating

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