Search found 50 matches

by lingwuchung
10 Jul 2021
Forum: MultiCharts
Topic: Fake ticks form IB TWS
Replies: 21
Views: 3367

Re: Fake ticks form IB TWS

Thank you Svetlana, With turn OFF Include "Unreportable Last" Trades in IB data feed settings , it has worked well for the past 3 days. May be this should also be default setting , and with documentation that it also solves the block trades inclusion issue, which would not be known by the name and ...
by lingwuchung
10 Jul 2021
Forum: MultiCharts
Topic: Fixed position drawing
Replies: 1
Views: 507

Fixed position drawing

Hi, Is there a way to draw text at fixed position, e.g. 5% or 10 pixel of screen height from bottom of chart on a bar? It seems all the drawing "setLocation" functions are relative to price only. I want to draw indicators at fixed position of the chart, not flunctuating up and down with prices. Than...
by lingwuchung
25 Jun 2021
Forum: MultiCharts
Topic: [Feature Request] - "Apply this input combinations to the strategy"
Replies: 2
Views: 475

Re: [Feature Request] - "Apply this input combinations to the strategy"

Tammy, Thank you for the reply. I know what u said. That’s why I am raising this as “feature request”, if you think this could be beneficial to us. Hello lingwuchung, It is only possible to apply the strategy inputs from the latest Optimization Report opened through main MultiCharts menu > View > St...
by lingwuchung
25 Jun 2021
Forum: MultiCharts
Topic: Fake ticks form IB TWS
Replies: 21
Views: 3367

Re: Fake ticks form IB TWS

Thanks Svetlana. If this is the case, I think MC should uncheck this setting by default for IB data feed. :)
Hi lingwuchung,

IB may send such updates as shown in the screenshot.phantom tick.jpg
According to IB support this is the high of the day due to the ticket type (6, see here).
by lingwuchung
23 Jun 2021
Forum: MultiCharts
Topic: Fake ticks form IB TWS
Replies: 21
Views: 3367

Re: Fake ticks form IB TWS

Hi Svetlana, "When this option is disabled, the discrepancy between DailyHigh (DailyLow) and IB real time data is possible." -> so the resolution is to make "the discrepancy possible" rather than "impossible"? Why would IB need to send such tick to align the DailyHigh? To rectify their previous data...
by lingwuchung
23 Jun 2021
Forum: MultiCharts
Topic: GetAppInfo(aioptimizing) doesn't work?
Replies: 7
Views: 1248

Re: GetAppInfo(aioptimizing) doesn't work?

OK and thanks. At least you're telling me I am not missing something obvoius or stupid. :P Attached images are another test: 1. original without comments out takes 3m20s to complete 216 iterations. 2. comment out everything inside "GetAppInfo(aioptimizing) = 0" only takes 2m4s - 1/3 faster! Let me t...
by lingwuchung
23 Jun 2021
Forum: MultiCharts
Topic: Fake ticks form IB TWS
Replies: 21
Views: 3367

Re: Fake ticks form IB TWS

Please uncheck Include "Unreportable Last" Trades. Restart all MultiCharts components to apply the changes. If it does not help, uncheck Generate a new Tick with Zero Volume upon DailyHigh (DailyLow) update too. I used to have the same problem. I received similar advice from previous post and I thi...
by lingwuchung
23 Jun 2021
Forum: MultiCharts
Topic: [Feature Request] - "Apply this input combinations to the strategy"
Replies: 2
Views: 475

[Feature Request] - "Apply this input combinations to the strategy"

Hi, Is this a right forum to raise feature request? Well, at least I can see if there is anyone else who would want the same feature ...... After optimization, I can click on the individual result row and MC will prompt "Do you want to apply this input combination to the strategy?" (attached image)....
by lingwuchung
21 Jun 2021
Forum: MultiCharts
Topic: GetAppInfo(aioptimizing) doesn't work?
Replies: 7
Views: 1248

Re: GetAppInfo(aioptimizing) doesn't work?

Correct. That's my intention. This is a print log function. I only want to do it while NOT in optimization. Quote: "aiOptimizing — returns a value of 1 if the calling application is currently performing an optimization, and a value of 0 in all other cases." https://www.multicharts.com/trading-softwa...
by lingwuchung
20 Jun 2021
Forum: MultiCharts
Topic: GetAppInfo(aioptimizing) doesn't work?
Replies: 7
Views: 1248

Re: GetAppInfo(aioptimizing) doesn't work?

Hi TJ, Thanks for the reply. I see that all codes within the first begin/end, including the two "GVGetName" should not be executed during optimization (when GetAppInfo(aioptimizing) = 0). Sorry, I don't know what you are trying to point out. I have formated your code for easy reading. You should ind...
by lingwuchung
20 Jun 2021
Forum: MultiCharts
Topic: GetAppInfo(aioptimizing) doesn't work?
Replies: 7
Views: 1248

GetAppInfo(aioptimizing) doesn't work?

Hi all, I execute the following code and time one iteration of normal chart display and optimization (the optmizing variables are dummy and won't affect the strategy execution). I know that GVGetNamedXXX is slow, that's why I want to skip it during optimization. However the result is unexpected: As ...
by lingwuchung
11 Jun 2021
Forum: MultiCharts
Topic: Multicharts on AWS
Replies: 4
Views: 977

Re: Multicharts on AWS

MultiCharts works on Windows 8.1 and 10. It is possible to use the software on a virtual machine that corresponds to those operating systems.
Thanks. Any plan to make the optimization or portfolio manager to be distributed across multiple VM on cloud?
by lingwuchung
11 Jun 2021
Forum: MultiCharts
Topic: Multicharts on AWS
Replies: 4
Views: 977

Re: Multicharts on AWS

Hi, I am already running i9-10900k - 20 cores with 3700 base frequency. I am not asking how to increase my local computer power, but whether I can simply deploy MC on AWS to make it much more scalable. I assume u mean NO. Hello lingwuchung, You can increase the speed of strategies calculation/optimi...
by lingwuchung
10 Jun 2021
Forum: MultiCharts
Topic: Multicharts on AWS
Replies: 4
Views: 977

Multicharts on AWS

Can I run MC on AWS and make use of its scalability to run optimization faster? My i9 with 20 CPUs is still too slow. :?
by lingwuchung
29 Mar 2021
Forum: MultiCharts
Topic: Missing ticks?
Replies: 1
Views: 360

Missing ticks?

Hi,

I see that MC is not capturing quick enough. Or IB not feeding quick enough? Is it expected during violatile split of seconds?

Attached images:
Interactive Broker High 612.77 at 15:50
MC High 611.74 at 15:50
by lingwuchung
12 Mar 2021
Forum: MultiCharts
Topic: Up Down Volume Indicator
Replies: 2
Views: 1734

Re: Up Down Volume Indicator

Anyway this can be built up for historical data so that I can use it for backtesting?
by lingwuchung
06 Mar 2021
Forum: MultiCharts
Topic: No Playback buttons
Replies: 1
Views: 390

No Playback buttons

Hi MC,

Whenever I connect MC from a remote session and logon back to the original session on the primary main machin, the plaback buttons are lost and I have to restart MC. Please check.
by lingwuchung
01 Mar 2021
Forum: MultiCharts
Topic: Error optimizing trendline (TL) strategy
Replies: 20
Views: 5143

Re: Error optimizing trendline (TL) strategy

Few thousands bars and few minutes optimizing... but nevermind my issue was about being able to optimize TLs, not about how long it would take. the TLValue() function does the trick. ok, few thousands bars and few minutes shouldn't make a big difference. Mine is talking about 100K bars, 10K optimiz...
by lingwuchung
22 Feb 2021
Forum: MultiCharts
Topic: Error optimizing trendline (TL) strategy
Replies: 20
Views: 5143

Re: Error optimizing trendline (TL) strategy

Not surprisng to me at all and I am actually grateful if it does. I found that TL is adding unnecessary burden in optimizatin. You don't need to plot and see any every line in optimization. Therefore my signal will automatically switch off TL within my code by using: if GetAppInfo(aioptimizing) = 1...
by lingwuchung
19 Feb 2021
Forum: MultiCharts
Topic: Error optimizing trendline (TL) strategy
Replies: 20
Views: 5143

Re: Error optimizing trendline (TL) strategy

Hi, I have a signal that draws TLs and trades based on associated logic. The signal itself draws the TLs and trades them fine ... until I attempt to optimize it. All attempts at optimization immediately produce a TL_New failure. Example error: http://www.multicharts.com/discussion/download/file.php...
by lingwuchung
19 Feb 2021
Forum: MultiCharts
Topic: Error optimizing trendline (TL) strategy
Replies: 20
Views: 5143

Re: Error optimizing trendline (TL) strategy

MC ignores Trendlines in the optimization. Intentionally? This is very surprising to me. Not surprisng to me at all and I am actually grateful if it does. I found that TL is adding unnecessary burden in optimizatin. You don't need to plot and see any every line in optimization. Therefore my signal ...
by lingwuchung
15 Feb 2021
Forum: MultiCharts
Topic: Is there a "lot size" properties? [SOLVED]
Replies: 1
Views: 469

Is there a "lot size" properties? [SOLVED]

Hi,

Is there a way to retrieve the lot size of a stock? Or is it always 100 for US stocks? (It's not in some other markets)
by lingwuchung
09 Jan 2021
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 3103

Re: When should SetStopLoss be placed?

Well, well, well....based on your feedback, it seems as though conditional execution of SetStopLoss is not really supported. Also, you insist on using MarketPosition WHEN IN FACT YOU DON'T NEED IT. SetStopLoss and the other internal stops "know" when there is a marketposition <> 0. I think it’s not...
by lingwuchung
03 Jan 2021
Forum: MultiCharts
Topic: Setstoploss do not work correct
Replies: 7
Views: 1402

Re: Setstoploss do not work correct

Is this real/paper trade or backtesting? This is backtest Then I am not sure if you are having the same issue as me: https://www.multicharts.com/discussion/viewtopic.php?t=52924 Try to call the setstoploss(10) at EVERY BAR (unconditionally, say at top of the main iteration) and see if that makes a ...
by lingwuchung
03 Jan 2021
Forum: MultiCharts
Topic: Buy this bar at close, buys next bar at open? [SOLVED]
Replies: 17
Views: 11321

Re: Buy this bar at close, buys next bar at open? [SOLVED]

Hi, I've developed a strategy which triggers a long entry when a certain set of conditions is met. In back-testing and forward-testing the code executes as expected. However, when I run the following code live it appears to be executing orders at the price of the open of the next bar, instead of th...
by lingwuchung
03 Jan 2021
Forum: MultiCharts
Topic: Setstoploss do not work correct
Replies: 7
Views: 1402

Re: Setstoploss do not work correct

Is this real/paper trade or backtesting?
by lingwuchung
01 Jan 2021
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 3103

Re: When should SetStopLoss be placed?

So you are saying that the SetStoploss is working in real time, but not in back-test mode ? You should post your code again. And make sure you show your IntrabarOrderGeneration(IOG) statement. Yes. My code look like this: mp = MarketPosition; if mp[0] <> 0 and mp[1] <> mp[0] then begin // new posit...
by lingwuchung
01 Jan 2021
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 3103

Re: When should SetStopLoss be placed?

Please correct if I am wrong. Thanks.
Dude, you're not just wrong, you're stupid.
We keep asking what is your IOG setting (IntrabarOrderGeneration) ..with no response ?
I said "I don't have IOG enabled in the signal properties". Let me capture some screen shots in next post.
by lingwuchung
01 Jan 2021
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 3103

Re: When should SetStopLoss be placed?

ps. you can use the papertrading account to do a real time test. Yes, I did a real test test yesterday, hence my deduction: 1. In real-time mode, setstoploss() does trigger to broker immediately within the same bar/tick iteration, no matter you call it under a condition or not. The stoploss exit wi...
by lingwuchung
01 Jan 2021
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 3103

Re: When should SetStopLoss be placed?

So you are saying that the SetStoploss is working in real time, but not in back-test mode ? You should post your code again. And make sure you show your IntrabarOrderGeneration(IOG) statement. Yes. My code look like this: mp = MarketPosition; if mp[0] <> 0 and mp[1] <> mp[0] then begin // new posit...
by lingwuchung
31 Dec 2020
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 3103

Re: When should SetStopLoss be placed?

Check this out....right from tech support: Lots of rule to be aware of ..... When the special order is not under an IF statement- it is evaluated intra-bar (even if IOG is off). The special order will be placed and remain active while position is open automatically without additional programming. W...
by lingwuchung
31 Dec 2020
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 3103

Re: When should SetStopLoss be placed?

Thanks! I am using IB and so all are supported at broker side. But I am just doing local backtesting/playback only now. I will verify the broker later. But about my puzzle around "logical error". I do place my OCO inside a IF as you can see above (and another bigger "if within trading hours"). Does...
by lingwuchung
31 Dec 2020
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 3103

Re: When should SetStopLoss be placed?

[snip] . . . If not inside a condition, does it mean that the SetStopLoss call has to be appeared at the top level of the code - meaning it will be called at every bar/tick? Isn't this ineffective and will MC trigger this to Broker at every bar/tick too? I wonder if broker will block me by generati...
by lingwuchung
31 Dec 2020
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 3103

Re: When should SetStopLoss be placed?

Hi, I thought I should execute it right after an order is made, so that the Multicharts or broker will trigger the stop loss once the stoploss price is matched. Here is my previous code which works ok: if MarketPosition <> 0 then begin SetStopPosition; SetStopLoss(StopLossAmt); end; however when I ...
by lingwuchung
31 Dec 2020
Forum: MultiCharts
Topic: Stop loss calculated vs broker fill or chart entry price [SOLVED]
Replies: 9
Views: 2821

Re: Stop loss calculated vs broker fill or chart entry price [SOLVED]

CAGMAD, When you use setstoploss in AA mode then it is calculated both vs chart prices and vs broker prices. So as per your example: 1) on the chart stop loss would be 12314 2) at the broker stop loss would be 12317 To avoid this please use SA mode or write your own stop order for AA mode that will...
by lingwuchung
30 Dec 2020
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 3103

Re: When should SetStopLoss be placed?

See post #5 https://www.multicharts.com/discussion/viewtopic.php?t=10811 Don't quite understand - "To avoid logical errors, DO NOT place these keywords inside a condition". I do try to apply exit on the entire strategy. If not inside a condition, does it mean that the SetStopLoss call has to be app...
by lingwuchung
30 Dec 2020
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 3103

Re: When should SetStopLoss be placed?

See post #5 https://www.multicharts.com/discussion/viewtopic.php?t=10811 Don't quite understand - "To avoid logical errors, DO NOT place these keywords inside a condition". I do try to apply exit on the entire strategy. If not inside a condition, does it mean that the SetStopLoss call has to be app...
by lingwuchung
30 Dec 2020
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 3103

Re: When should SetStopLoss be placed?

Check this out....right from tech support: Lots of rule to be aware of ..... When the special order is not under an IF statement- it is evaluated intra-bar (even if IOG is off). The special order will be placed and remain active while position is open automatically without additional programming. W...
by lingwuchung
29 Dec 2020
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 3103

When should SetStopLoss be placed?

Hi, I thought I should execute it right after an order is made, so that the Multicharts or broker will trigger the stop loss once the stoploss price is matched. Here is my previous code which works ok: if MarketPosition <> 0 then begin SetStopPosition; SetStopLoss(StopLossAmt); end; however when I s...
by lingwuchung
21 Dec 2020
Forum: MultiCharts
Topic: Maximum number of parameters in a signal
Replies: 2
Views: 439

Re: Maximum number of parameters in a signal

Hello lingwuchung, There is no specific limit to the number of parameters. But we recommend to build up your setup gradually and check how the changes affect the performance of your machine. Thank you Kate. Everything is working ok as I gradually increase the parms. Now I think I have more than 40....
by lingwuchung
17 Dec 2020
Forum: MultiCharts
Topic: Maximum number of parameters in a signal
Replies: 2
Views: 439

Maximum number of parameters in a signal

Hi,

What's the max no. of parameters a signal can support? I am having 30 now but don't know how much more I continue to add. I want to know if there is a max that I won't be able to reach in the near future, before I decide to continue to develop the signal in the way I am designing. Thanks!
by lingwuchung
11 Dec 2020
Forum: MultiCharts
Topic: Real-time price spike
Replies: 1
Views: 457

Real-time price spike

Hi, I got fake price spikes during real time mode. See attached photos. I read some past posts that this could be resolved by some settings in QuoteManager but those posts ( https://www.multicharts.com/discussion/viewtopic.php?t=45296 ) were > 7 years ago and those options do not exist in v14 anymor...
by lingwuchung
10 Dec 2020
Forum: MultiCharts
Topic: Portfolio Trader Optimization - CPU core [SOLVED]
Replies: 8
Views: 1641

Re: Portfolio Trader Optimization - CPU core [SOLVED]

Hello lingwuchung, In one of the future releases we are planning to add a new optimization manager in Portfolio Trader. It’s going to be the same as the one in MultiCharts, it’ll allow controlling the number of engaged cores on the run with a slider. Excellent! I have changed to i9 with 20 cores no...
by lingwuchung
10 Dec 2020
Forum: MultiCharts
Topic: Portfolio Trader Optimization - CPU core [SOLVED]
Replies: 8
Views: 1641

Re: Portfolio Trader Optimization - CPU core [SOLVED]

Excellent! I have changed to i9 with 20 cores now. As expected all cores are still 100% during portfolio manager optimization but somehow I still manage to do some simple tasks like browser. Guess that’s due to improvement of the i9 processor’s architecture.
by lingwuchung
25 Oct 2020
Forum: MultiCharts
Topic: Portfolio Trader Optimization - CPU core [SOLVED]
Replies: 8
Views: 1641

Re: Portfolio Trader Optimization - CPU core [SOLVED]

I always recommend people to use a separate machine for testing, backtesting and optimization. Computers are not that expensive nowadays. There is no reason not to dedicate a computer for development purpose. That's how professional do it. I do have 2 machines (going to buy a 3rd one) but I still w...
by lingwuchung
24 Oct 2020
Forum: MultiCharts
Topic: Portfolio Trader Optimization - CPU core [SOLVED]
Replies: 8
Views: 1641

Re: Portfolio Trader Optimization - CPU core [SOLVED]

You can do this yourself by creating a .BAT file to start Portfolio Trader using the /AFFINITY option to restrict which cores you want used for this app. Here is a thread explaining this in more detail: https://www.tenforums.com/performance-maintenance/47607-affinity-command-cmd.html Thanks. I can ...
by lingwuchung
19 Oct 2020
Forum: MultiCharts
Topic: Portfolio Trader Optimization - CPU core [SOLVED]
Replies: 8
Views: 1641

Re: Portfolio Trader Optimization - CPU core [SOLVED]

You can do this yourself by creating a .BAT file to start Portfolio Trader using the /AFFINITY option to restrict which cores you want used for this app. Here is a thread explaining this in more detail: https://www.tenforums.com/performance-maintenance/47607-affinity-command-cmd.html Thanks. I can ...
by lingwuchung
10 Oct 2020
Forum: MultiCharts
Topic: Portfolio Trader Optimization - CPU core [SOLVED]
Replies: 8
Views: 1641

Portfolio Trader Optimization - CPU core [SOLVED]

Hi, I am running MC v12 with 4 cores and 8 threads (Intel i7) machine. Whenever I run optimization in Portfolio Trader, all 8 threads are being 100% used up and I cannot do anything else. Is there a way to limit the no. of cores (e.g. to 3 cores in my case) in Portfolio Trader optimization like the ...
by lingwuchung
27 Mar 2016
Forum: MultiCharts
Topic: Detect Optimization in a Signal [SOLVED]
Replies: 1
Views: 875

Detect Optimization in a Signal [SOLVED]

Hi everybody,

Is there a way a signal can tell whether it is run under optimization? I want to disable some codes during optimization to make it run faster. Currently I need to manually specify this in one signal input which is quite troublesome.

Many thanks!
by lingwuchung
26 Jun 2014
Forum: MultiCharts
Topic: Multicharts cannot display AM data?
Replies: 1
Views: 817

Multicharts cannot display AM data?

Hi, I am using Interactive Broker as datafeed. When I load HSI Future "HSIM14", I can see real-time data since 9am but Multicharts can only start showing from 13:30-16:15 only. Why? Is there any setting in Multicharts that prevents IB from feeding data into it for specific period? I don't have this ...

Go to advanced search