Search found 726 matches

by ABC
Jul 10 2024
Forum: MultiCharts
Topic: There is a problem with the IntPortion in calctime func
Replies: 2
Views: 258

Re: There is a problem with the IntPortion in calctime func

Hi Samuel, this is likely caused by the precision of variables of type double. While you expect passing an input parameter of 540 to the function, MC might internally "see" this as 539.999999999999886. Based on that, the result you are receiving when using Intportion is expected. It would ...
by ABC
Jul 08 2024
Forum: MultiCharts
Topic: Portfolio_NetProfit between two dates
Replies: 4
Views: 300

Re: Portfolio_NetProfit between two dates

Tibouss, with pleasure. To account for situations where your Startdateforprofit date does not exist you might want to consider changing your expression to "if Date <= 1240102 then". Just keep in mind that in that case Startdateforprofit2 could hold values before the Startdateforprofit alre...
by ABC
Jul 01 2024
Forum: MultiCharts
Topic: Portfolio_NetProfit between two dates
Replies: 4
Views: 300

Re: Portfolio_NetProfit between two dates

Tibouss, it depends a bit on whether you want to obtain the value since a specific date and the last bar on a chart or between two dates. Either way you can start by saving the Portfolio_NetProfit in a variable based on your date requirement (for example once at a specific date or continuously while...
by ABC
May 13 2024
Forum: MultiCharts
Topic: call custom indicator from signal
Replies: 2
Views: 300

Re: call custom indicator from signal

Hi David, you could use the "Study on Study" feature as described here: https://www.multicharts.com/trading-software/index.php?title=Study_on_study In the long run it might be more convenient to add parts of the indicator logic to the strategy. Either using inline code or by moving parts o...
by ABC
May 06 2024
Forum: MultiCharts
Topic: EL Collections writing to a file in order
Replies: 3
Views: 397

Re: EL Collections writing to a file in order

jpartner, this is expected behavior since maps do not necessarily keep the order in which you added the values. Since you are using MapSC the keys are sorted in alphabetical order. Since it is not clear from your code why you are using the approach you choose it it is difficult to suggest a workarou...
by ABC
Apr 24 2024
Forum: MultiCharts
Topic: Best options to Import/Export Collected Study Data
Replies: 2
Views: 299

Re: Best options to Import/Export Collected Study Data

Hi jpartner, personally, I would look at EL Collections and replace the arrays with lists or maps. These can be written to text files and you can read text files back into the lists and maps. This might come in handy for your project. It is no direct connection between MC and Excel, though, but the ...
by ABC
Apr 24 2024
Forum: MultiCharts
Topic: Code issues [SOLVED]
Replies: 9
Views: 793

Re: Code issues [SOLVED]

Hi pitrader, try if removing the four "break;" statements in the function will let you compile the code. They are not required for the switch to work correctly and while including them works in TS it does not work in MC. Regards, ABC There is indeed a compiling error within the function. I...
by ABC
Apr 23 2024
Forum: MultiCharts
Topic: Code issues [SOLVED]
Replies: 9
Views: 793

Re: Code issues [SOLVED]

Hi pitrader,

check the code of the _gaverage function for any errors when you try to compile it.
For others to be able to say more you would have to include the function code and error messages you receive during the compilation of the function.

Regards,

ABC
by ABC
Mar 18 2024
Forum: MultiCharts
Topic: OpenPositionProfit percentage value [SOLVED]
Replies: 4
Views: 514

Re: OpenPositionProfit percentage value [SOLVED]

Mik72, as a rule of thumb it is good practice to check that a denominator is not zero before you perform a division in PowerLanguage. Otherwise, it is very likely to run into an error sooner or later. Not knowing if you evaluate your expression conditionally, one can only guess, but you should keep ...
by ABC
Mar 06 2024
Forum: MultiCharts
Topic: Maxlist and MinList from 00:00 to 08:00
Replies: 2
Views: 332

Re: Maxlist and MinList from 00:00 to 08:00

Lupomanu32, welcome to the Multicharts forum. One approach is tracking the values yourself within the time window. Assuming you are working with time based intraday bars with a minute resolution the indicator code below demonstrates how you can track the high and low. Variables: highUntil800 ( -9999...
by ABC
Mar 06 2024
Forum: MultiCharts .NET
Topic: What is causing these extreme WICK ? [SOLVED]
Replies: 3
Views: 588

Re: What is causing these extreme WICK ? [SOLVED]

eunos64, if this happens in realtime, you might be able to fix this in MultiCharts by disabling the “Include "Unreportable Last" Trades” box in the Interactive Brokers data feed settings in QuoteManager -> Tools -> Data Sources. Restart both MC and IB TWS to apply the changes. You can find...
by ABC
Feb 28 2024
Forum: MultiCharts
Topic: Walmart (Free Quote) stock split 3:1 [SOLVED]
Replies: 2
Views: 345

Re: Walmart (Free Quote) stock split 3:1 [SOLVED]

Tibouss,

reloading your data in Multicharts should take care of that.

Regards,

ABC
by ABC
Jan 16 2024
Forum: MultiCharts
Topic: volume up dwn in historical bars [SOLVED]
Replies: 5
Views: 601

Re: volume up dwn in historical bars [SOLVED]

Hi MAZINGUER,

the explanation might be that not all data providers provide historical up/down volume and therefore you only see the value on bars that were received in realtime.

Regards,

ABC
by ABC
Dec 07 2023
Forum: MultiCharts
Topic: plot smoothing on charts
Replies: 1
Views: 290

Re: plot smoothing on charts

Hi Helmut,

I might be mistaken, but this sounds like the plots used in indicators were smoothed to look more appealing on charts visually.

Regards,

ABC
by ABC
Nov 30 2023
Forum: MultiCharts
Topic: Coding a stop order at the last pivot point for stoploss [SOLVED]
Replies: 5
Views: 776

Re: Coding a stop order at the last pivot point for stoploss [SOLVED]

Hi Michael, the index for the array must be in square brackets and not parenthesis when you try to store or access values in the array. If you haven't done it, yet, check the free EasyLanguage Essentials PDF that you can find with your search engine of choice. Although written for TS, it is an excel...
by ABC
Nov 27 2023
Forum: MultiCharts
Topic: Coding a stop order at the last pivot point for stoploss [SOLVED]
Replies: 5
Views: 776

Re: Coding a stop order at the last pivot point for stoploss [SOLVED]

Hi Michael, the pivot function has an instance parameter that allows you to look back at prior pivots. From a programming point of view it is however a better approach to store the pivot points as they occur in an array or list as HellGhostEvocatorX has pointed out and use this to look at the prior ...
by ABC
Sep 06 2023
Forum: MultiCharts
Topic: AllowSendOrdersAlways = true with IntrabarOrderGeneration = false
Replies: 3
Views: 541

Re: AllowSendOrdersAlways = true with IntrabarOrderGeneration = false

Hello Vlada,

thank you for your reply. Would it be possible to update the wiki for AllowSendOrdersAlways to reflect that?

Thank you,

ABC
by ABC
Sep 05 2023
Forum: MultiCharts
Topic: AllowSendOrdersAlways = true with IntrabarOrderGeneration = false
Replies: 3
Views: 541

AllowSendOrdersAlways = true with IntrabarOrderGeneration = false

Hi Multicharts team, the combination of the attributes AllowSendOrdersAlways = true and IntrabarOrderGeneration = false inside a strategy will result in the code getting computed with every tick in real time. Is this intended behavior, as one might think IntrabarOrderGeneration = false would prevent...
by ABC
Sep 05 2023
Forum: MultiCharts
Topic: Draw left or right arrow (how to) [SOLVED]
Replies: 2
Views: 477

Re: Draw left or right arrow (how to) [SOLVED]

Kevin, I am not aware of left or right arrows being available arrow styles. You only have the following options: https://www.multicharts.com/trading-software/index.php?title=Arw_SetStyle As a workaround you might want to use a text drawing and you could draw the arrows like this: -> and <- Alternati...
by ABC
Jun 13 2023
Forum: MultiCharts
Topic: Problem with data2 [SOLVED]
Replies: 4
Views: 761

Re: Problem with data2 [SOLVED]

ATCOTrader, "if ... then..." statetements will only span until the end of the statement (next semicolon). Therefore, you are printing unconditionally and this might explain the results you are getting. Including your buy and sell statements with the prints in a "if...then begin" ...
by ABC
May 30 2023
Forum: MultiCharts .NET
Topic: Paper Trading
Replies: 3
Views: 844

Re: Paper Trading

clint454,

if I understand you correctly, this does not enable the automated trading. I would suggest to start with studying the respective sessions in the Wiki. This should get you going.

https://www.multicharts.com/trading-sof ... utoTrading

Regards,

ABC
by ABC
May 26 2023
Forum: MultiCharts .NET
Topic: Paper Trading
Replies: 3
Views: 844

Re: Paper Trading

clint454,

yes, it is using the built-in Paper Trader broker profile.

https://www.multicharts.com/trading-sof ... per_Trader

Regards,

ABC
by ABC
May 12 2023
Forum: MultiCharts .NET
Topic: IOrderPriced Order Completion
Replies: 3
Views: 800

Re: IOrderPriced Order Completion

Hi lordsriram,

this is the default behaviour, which can be changed by using the ExitFromOneEntryOnce attribute.

Regards,

ABC
by ABC
May 04 2023
Forum: MultiCharts
Topic: Carry Time Window Into Next Day
Replies: 3
Views: 591

Re: Carry Time Window Into Next Day

Hi AnotherTrader, can you post the code you tried? In general, you just need to wrap your head around the following concept (if we are using Time or Time_s): 1. If a time window starts and ends on the same time you check that the bar time is later than your start time, but not later than your end ti...
by ABC
Apr 05 2023
Forum: MultiCharts
Topic: where is the documents about string format [SOLVED]
Replies: 2
Views: 558

Re: where is the documents about string format [SOLVED]

gary1288, the documentation regarding the print reserved word should get you going: https://www.multicharts.com/trading-software/index.php?title=Print Regards, ABC I can guess and use the format below: print(date, " ", time, " CurDayTrds=", CurDayTrds:0:0); I know it will output ...
by ABC
Apr 05 2023
Forum: MultiCharts
Topic: "maximum number of bars study will reference"
Replies: 4
Views: 1007

Re: "maximum number of bars study will reference"

gary1288, the large max bars back number is limiting your range of data. Keep in mind that the max bars back setting must be fulfilled for all datastreams i.e. your settings will skip the first 25000 3 minute bars. Multicharts just re-acts to what your "code demands in terms of max bars back&qu...
by ABC
Mar 27 2023
Forum: MultiCharts
Topic: CoT Commitment of Traders Data
Replies: 8
Views: 3865

Re: CoT Commitment of Traders Data

tonyt,

that should be possible, although a direct exchange using ELCollections would not be possible. Please feel free to contact me outside of this forum or send me a PM, if you want to discuss this further.

Regards,

ABC
by ABC
Mar 22 2023
Forum: MultiCharts
Topic: Optimisation Report-stop saving [SOLVED]
Replies: 2
Views: 609

Re: Optimisation Report-stop saving [SOLVED]

SUPER,

you should be able to disable it on the Workspaces tab of the Preferences dialog: https://www.multicharts.com/trading-sof ... references

Regards,

ABC
by ABC
Mar 21 2023
Forum: MultiCharts
Topic: How to create a trend reversal chart based on FlexRenko chart?
Replies: 2
Views: 693

Re: How to create a trend reversal chart based on FlexRenko chart?

owleyes, I am not aware of a way to override the built-in bar type limitations. However, since you can create your own Custom Resolution, it should be possible to create a new bar type that follows your specifications. You can find a little bit more information here: https://www.multicharts.com/trad...
by ABC
Mar 07 2023
Forum: MultiCharts
Topic: Keeping SetStopLoss Static.
Replies: 5
Views: 880

Re: Keeping SetStopLoss Static.

Eric1704,

doing it in the same script should be fine, and the proper solution might depend a bit on your actual entry and exit code.

Regards,

ABC
by ABC
Mar 06 2023
Forum: MultiCharts
Topic: Keeping SetStopLoss Static.
Replies: 5
Views: 880

Re: Keeping SetStopLoss Static.

Eric1704,

one way could be using a variable to store the amount you use for SetStopLoss and only allow updating this variable when you are not long.
Then you use this variable in SetStopLoss.

Regards,

ABC
by ABC
Feb 23 2023
Forum: MultiCharts
Topic: Adjusting Default Alert Email Text
Replies: 5
Views: 846

Re: Adjusting Default Alert Email Text

Hi Anthony, at the moment you could consider handling the emails outside of MC. Since you can for example call a bat file from MC code this should be doable with a bit of development/setting up. This thread might give you a few ideas: https://www.multicharts.com/discussion/viewtopic.php?f=1&t=88...
by ABC
Feb 20 2023
Forum: MultiCharts .NET
Topic: Optimization Error
Replies: 3
Views: 886

Re: Optimization Error

clint454,

from the screenshot you posted the error message appears to be triggered by a signal, and I would suggest to discuss this further with your developer.

Regards,

ABC
by ABC
Feb 16 2023
Forum: MultiCharts
Topic: Pre-Processing
Replies: 11
Views: 1692

Re: Pre-Processing

joebone,

a good approach might be to test this and measure the performance difference. When things become complex even reading in text files with the results can give you a speed advantage compared to performing the calculations every time.

Regards,

ABC
by ABC
Feb 16 2023
Forum: MultiCharts
Topic: SetProfitTarget/SetStopLoss rejected in FOREX live trading at IB
Replies: 5
Views: 922

Re: SetProfitTarget/SetStopLoss rejected in FOREX live trading at IB

TraderJ, you could try if the situation is different when you use SetProfitTarget_pt and SetStopLoss_pt. Before that I would however double check your symbol settings, as they might be incorrect. According to the IB website the minimum increment for EUR.USD is 0.00005. For a CFD it might be differen...
by ABC
Feb 16 2023
Forum: MultiCharts
Topic: Pre-Processing
Replies: 11
Views: 1692

Re: Pre-Processing

joebone, a more practical question would be why you compute an array with 100 averages when each strategy only uses four? Computing just the four averages you need per strategy might already show a decent speed improvement (I realize that you might only post a generic example here, so this approach ...
by ABC
Feb 16 2023
Forum: MultiCharts
Topic: Pre-Processing
Replies: 11
Views: 1692

Re: Pre-Processing

joebone, one idea could be to compute everything once and store the results in Maps/Lists using EasyLanguage Collections. Then you can access these values during your optimization. If this really improves your performance will depend on the amount of values you need to access each bar, so I would tr...
by ABC
Feb 16 2023
Forum: MultiCharts
Topic: SetProfitTarget/SetStopLoss rejected in FOREX live trading at IB
Replies: 5
Views: 922

Re: SetProfitTarget/SetStopLoss rejected in FOREX live trading at IB

TraderJ,

SetProfitTarget expects a currency amount and you do not issue a stop loss with the code you posted. What you posted would translate to trying to issue a target for each unit of 0.0003 $.

Regards,
ABC
by ABC
Feb 16 2023
Forum: MultiCharts .NET
Topic: Optimization Error
Replies: 3
Views: 886

Re: Optimization Error

clint454,

check the code of the strategy that raised this error message. If the drawings are not used in the strategy logic itself, one idea could be to add code to only apply the drawings when the strategy is not optimized.

Regards,

ABC
by ABC
Feb 13 2023
Forum: MultiCharts .NET
Topic: Backtesting Results [SOLVED]
Replies: 2
Views: 808

Re: Backtesting Results [SOLVED]

clint454,

take a look at the "Periodical Analysis" section of the report and specifically the "Monthly Returns & Drawdowns". It might provide you with what you are looking for.

Regards,

ABC
by ABC
Feb 13 2023
Forum: MultiCharts
Topic: Problem with Portfolio_OpenPositionProfit
Replies: 5
Views: 988

Re: Problem with Portfolio_OpenPositionProfit

fltngpnt, some reserved words do not provide previous bar's values and this could cause your conditions not to become true either. You can check if this is the case for Portfolio_OpenPositionProfit and if you find this to be true assign the reserved word to a variable and use this variable within yo...
by ABC
Jan 18 2023
Forum: MultiCharts .NET
Topic: Global Variables compile error
Replies: 3
Views: 982

Re: Global Variables compile error

Vik, I was referring to the native GV functions that are included in the zip file. They are written in EasyLanguage and as far as I am aware the DLL is not included with MC.NET by default. The following thread should get you going: https://www.multicharts.com/discussion/viewtopic.php?f=19&t=1131...
by ABC
Jan 18 2023
Forum: MultiCharts .NET
Topic: Global Variables compile error
Replies: 3
Views: 982

Re: Global Variables compile error

Vik, you are posting in the MC.NET section of the forum. Are you trying to use the functions in Multicharts.NET? Additionally, it appears you are not using native functions that are provided with GlobalVariables, but 3rd party functions ( @ Multicharts: I am not sure why the wiki article suggest usi...
by ABC
Jan 06 2023
Forum: MultiCharts
Topic: Pre-built Signals.
Replies: 4
Views: 894

Re: Pre-built Signals.

Eric1704, Multicharts has reserved words that would compute a tick based target or stop - namely SetProfitTarget_PT and SetStopLoss_PT. You could create your own versions of Profit Target LX and SX by replacing SetProfitTarget. I would just suggest to do this a strategy with a different name, to avo...
by ABC
Jan 04 2023
Forum: MultiCharts
Topic: Error Message. [SOLVED]
Replies: 2
Views: 638

Re: Error Message. [SOLVED]

Eric1704, rejections are usually coming from the broker and from you screenshot it appears the account might not be correctly configured. You can configure the broker plugin on the "Auto Trading" tab of the "Strategy Properties" dialog window. The following links might be helpful...
by ABC
Dec 22 2022
Forum: MultiCharts
Topic: Error in study
Replies: 6
Views: 1281

Re: Error in study

Hi andreinvest and Multicharts Team, was this ever resolved and could you share what the problem was? If not, I would be interesting in hearing from Multicharts what is likely to trigger the error message (or could) as it is too unspecific to point towards a specific code problem. Maybe some specifi...
by ABC
Dec 05 2022
Forum: MultiCharts
Topic: Variable Declaration on MouseClickEvent [SOLVED]
Replies: 2
Views: 642

Re: Variable Declaration on MouseClickEvent [SOLVED]

Largo, declaring your variable as intrabarpersist should help in your case. Currently it will revert to the prior bar's value on the next code calculation, which might be what you observe as "this value resets". Regards, ABC Hello, out of despair I seek help here- I tried and searched a lo...
by ABC
Dec 02 2022
Forum: MultiCharts
Topic: Time per bar on tick chart
Replies: 3
Views: 671

Re: Time per bar on tick chart

joebone,

using the built-in function TimeToSeconds could be one idea.

Regards,

ABC
Thanks for reply ABC,

How would you convert to seconds?
by ABC
Dec 01 2022
Forum: MultiCharts
Topic: Time per bar on tick chart
Replies: 3
Views: 671

Re: Time per bar on tick chart

joebone, Time_s is in HHmmss format i.e. every new hour will add 10000 to the value. This causes the jump you are seeing. Depending on the chart settings you are working with you could consider converting Time_s to seconds and building the difference with that. Regards, ABC Hello, I have this indica...
by ABC
Oct 05 2022
Forum: MultiCharts
Topic: Daily Hi Low Lines
Replies: 5
Views: 1300

Re: Daily Hi Low Lines

LRP, the TS compiler is usually quite helpful with an error message that points you to the location to the error and a possible fix. In the case of this code it appears, it is missing a data stream reference within brackets following the BarStatus reserved word. Regards, ABC Great, thanks a lot rram...
by ABC
Sep 20 2022
Forum: MultiCharts .NET
Topic: "Bars.Close" event in IOG mode
Replies: 3
Views: 998

Re: "Bars.Close" event in IOG mode

lewisthegood,

you could for example compute parts of your logic depending on Bars.Status and only evaluate the code block for the closing tick.

Regards,

ABC
by ABC
Sep 19 2022
Forum: MultiCharts
Topic: Need EntryTime_s and ExitTime_s [SOLVED]
Replies: 5
Views: 1335

Re: Need EntryTime_s and ExitTime_s [SOLVED]

syswizard, check the respective reserved word in the help file. This should answer your questions. PosTradeExitDateTime Returns double-precision decimal DateTime for exit order. As an example see ComputerDateTime Usage PosTradeExitDateTime(PosAgo,TradeNumber) Where: PosAgo - a numerical expression, ...
by ABC
Sep 19 2022
Forum: MultiCharts
Topic: HI, want to add interval at time
Replies: 1
Views: 588

Re: HI, want to add interval at time

turbofib,

you can not directly add minutes to HHMM times and expect the result to be correct. One way to accomplish what you have in mind could be to use
TimeToMinutes to convert your time to minutes, perform the summation, and convert the result back to a time using MinutesToTime.

Regards,

ABC
by ABC
Sep 19 2022
Forum: MultiCharts
Topic: Need EntryTime_s and ExitTime_s [SOLVED]
Replies: 5
Views: 1335

Re: Need EntryTime_s and ExitTime_s [SOLVED]

syswizard,

in my opinion there is no need for these reserved words, as we can access a better granularity using PosTradeEntryDateTime and PosTradeExitDateTime already.

Regards,

ABC
by ABC
Sep 19 2022
Forum: MultiCharts .NET
Topic: "Bars.Close" event in IOG mode
Replies: 3
Views: 998

Re: "Bars.Close" event in IOG mode

lewisthegood,

Bars.Close[1] will always be the value of the closing tick for the previous bar - the behavior is the same whether or not IOG is enabled.

Regards,

ABC
by ABC
Aug 11 2022
Forum: MultiCharts
Topic: Custom 1 line indicator
Replies: 1
Views: 658

Re: Custom 1 line indicator

robz7575, mathematical operators have an order of operations (or operator precedence). High + Low + Close / 5 would not evaluate to the summation of High, Low, Close divided by 5, but adding the summation of High and Low to the result of the division of Close by 5. https://en.wikipedia.org/wiki/Orde...
by ABC
Jul 22 2022
Forum: MultiCharts
Topic: Indicator messing up my charts [SOLVED]
Replies: 11
Views: 2406

Re: Indicator messing up my charts [SOLVED]

Alton, please refer to the second sentence of the first reply in this thread. Checking the value before you plot should solve your problem. When you are dealing with static values like overbought/oversold values you could also save them in a variable once and then use this variable and not call i_Ge...
by ABC
Jul 20 2022
Forum: MultiCharts
Topic: Indicator messing up my charts [SOLVED]
Replies: 11
Views: 2406

Re: Indicator messing up my charts [SOLVED]

Alton,

this sounds like something you would have to address on the code level.

Regards,

ABC
by ABC
Jul 19 2022
Forum: MultiCharts .NET
Topic: Loading Historical Data
Replies: 4
Views: 1232

Re: Loading Historical Data

clint454, seeing that you are charting the continuous backadjusted contract from IQFeed, there is one thing you might want to keep in mind. The adjustment is done on the server side and not within MC. Having said that, you would have to reload your data for those symbols after each rollover to updat...
by ABC
Jul 19 2022
Forum: MultiCharts
Topic: Indicator messing up my charts [SOLVED]
Replies: 11
Views: 2406

Re: Indicator messing up my charts [SOLVED]

altoncrooks, probably, but without seeing the code one can only guess. The easiest approach might be plotting your values if they are not zero only. Unchecking the "Expand Scale to Indicators" box on the "Scaling" tab of the "Format Instrument" dialog can also be useful...
by ABC
Jul 18 2022
Forum: MultiCharts .NET
Topic: Loading Historical Data
Replies: 4
Views: 1232

Re: Loading Historical Data

clint454,

IQFeed limits the tick to 7 days during US market hours (RTH). Before and after that time you should be able to access 180 days of tick data.

Regards,

ABC
by ABC
Jun 29 2022
Forum: MultiCharts
Topic: PowerLanguage equivalent for PineScript na(x)?
Replies: 3
Views: 931

Re: PowerLanguage equivalent for PineScript na(x)?

fltngpnt,

you can usually walk around that and replace this functionality with custom code in PowerLanguage or even remove it completely. What approach to choose depends on the code you are trying to translate.

Regards,

ABC
by ABC
Jun 24 2022
Forum: MultiCharts
Topic: Declaring a boolean variable [SOLVED]
Replies: 1
Views: 663

Re: Declaring a boolean variable [SOLVED]

masber2000,

yes, your variable declaration is correct.

Regards,

ABC
by ABC
Jun 20 2022
Forum: MultiCharts .NET
Topic: Send emails via GMail
Replies: 1
Views: 875

Re: Send emails via GMail

Ingo,

you might have to disable access for less secure apps and create an App password according to the following post:

viewtopic.php?f=1&t=53621

Regards,

ABC
by ABC
Jun 17 2022
Forum: MultiCharts
Topic: Wrong Commission Calculation?
Replies: 1
Views: 560

Re: Wrong Commission Calculation?

LRP,

is it possible that some of your trades are reversals? In that case MC might not apply the commissions twice to the reversal.

Regards,

ABC
by ABC
Apr 25 2022
Forum: MultiCharts
Topic: Programmatically extending lines without specifying price
Replies: 4
Views: 996

Re: Programmatically extending lines without specifying price

I must admit I have not tried it, but it sounds like this could be a bug. At least it goes against the description from the help file (the bold part in my first reply). Can someone from Multicharts please comment if this is bug or intended behavior? Regards, ABC TL_GetValue_BN might do what you have...
by ABC
Apr 25 2022
Forum: MultiCharts
Topic: Programmatically extending lines without specifying price
Replies: 4
Views: 996

Re: Programmatically extending lines without specifying price

janus, TL_GetValue_BN might do what you have in mind. Returns a price value, at the specified bar number, of a trendline with the specified ID number; returns a value of -2 if the specified trendline ID number is invalid. If the trendline does not extend to the specified bar, a price value along the...
by ABC
Mar 23 2022
Forum: MultiCharts .NET
Topic: 5 mins chart with IOG enabled
Replies: 4
Views: 1375

Re: 5 mins chart with IOG enabled

lewisthegood, your script would get executed with every tick (if IOG is enabled), but using the bar status check you can make sure that certain parts of the code are only executed on bar close. I would suggest testing this and for example writing a message to the output on bar close. Regards, ABC th...
by ABC
Mar 22 2022
Forum: MultiCharts .NET
Topic: 5 mins chart with IOG enabled
Replies: 4
Views: 1375

Re: 5 mins chart with IOG enabled

lewisthegood ,

you can for example evaluate your conditions at the end of the bar by evaluating them dependent of the bar status.

Code: Select all

if (Bars.Status == EBarState.Close) { }
Regards,

ABC
by ABC
Mar 15 2022
Forum: MultiCharts
Topic: PowerLanguage Keyword Reference - page 814 [SOLVED]
Replies: 2
Views: 850

Re: PowerLanguage Keyword Reference - page 814 [SOLVED]

PaperoneJunior,

that is a typo. MarketPosition works exactly like described on page 792:
A value of 1 indicates a long position, -1 indicates a short position, and 0 is returned only if the current position is specified and indicates that the current position is flat.
Regards,

ABC
by ABC
Mar 02 2022
Forum: MultiCharts
Topic: Help understanding "Intra-bar Price Movement Assumptions"
Replies: 7
Views: 1642

Re: Help understanding "Intra-bar Price Movement Assumptions"

Hi ZaphodB,

are you using any order type other than market orders? If not, a market order would be filled at the next code calculation, which in your scenario (backtesting with IBOG on and Bar Magnifier off) is either Open, High, Low, or Close.

Regards,

ABC
by ABC
Feb 24 2022
Forum: MultiCharts .NET
Topic: Time zone, trading session hours, and holiday schedule
Replies: 8
Views: 5878

Re: Time zone, trading session hours, and holiday schedule

Barbo, most holidays follow a pattern that can be coded. You might even be able to find C# code in the net that does what you need. However, there will still be special events, that do not follow a pattern, that lead to an exchange being closed. So you would end up with a mix of code and list, too. ...
by ABC
Feb 16 2022
Forum: MultiCharts .NET
Topic: Pivot Price
Replies: 3
Views: 1272

Re: Pivot Price

Hi maxzhi,

you are welcome. It is of course the bar rightstrength bars to the left of the current bar and not to the right. I have edited my initial reply to avoid any confusion.

Regards,

ABC
by ABC
Feb 16 2022
Forum: MultiCharts .NET
Topic: Pivot Price
Replies: 3
Views: 1272

Re: Pivot Price

Hi maxzhi, you can do it similar to how it is done in the Pivot_High indicator. When a new pivot is detected the PivotHighVSBar function will return a value other than -1 (when there is no new pivot it will return -1). At that moment the pivot high is the bar rightstrength bars to the left of the cu...
by ABC
Feb 07 2022
Forum: MultiCharts
Topic: Calculate the distance in points from close to moving average [SOLVED]
Replies: 18
Views: 3923

Re: Calculate the distance in points from close to moving average [SOLVED]

tonyt,

your code measures the distance before you compute the average. Consequently, you are using the SMA value from the previous code calculation and not the most recent SMA value.

Regards,

ABC
by ABC
Jan 11 2022
Forum: MultiCharts
Topic: Portfolio Trader Flag [SOLVED]
Replies: 2
Views: 899

Re: Portfolio Trader Flag [SOLVED]

Hi Ido,

GetAppInfo( aiApplicationType ) appears to be what you are looking for.
Usage
GetAppInfo(Attribute)

Parameters
aiApplicationType - identifies the calling application:

0 = Unknown

1 = Chart

2 = Scanner

10 = Portfolio Trader
Regards,

ABC
by ABC
Nov 04 2021
Forum: MultiCharts
Topic: How to Skip Calculations or functions.
Replies: 2
Views: 734

Re: How to Skip Calculations or functions.

Barbo, this depends on the function type and is expected behavior. A function of the type series will be executed on every bar, even if your code calls the function conditionally only. Depending on the function code you might be able to change the storage type to "simple". This should not ...
by ABC
Oct 14 2021
Forum: MultiCharts
Topic: IQFeed Demo to Subscription, Can't Download Data
Replies: 5
Views: 1037

Re: IQFeed Demo to Subscription, Can't Download Data

Metzenovich,

try reloading the chart via CTRL+R to ensure Multicharts actually tries to download the data from IQ again.

Regards,

ABC
by ABC
Oct 08 2021
Forum: MultiCharts
Topic: Indicator to show the positon of a trading system
Replies: 2
Views: 731

Re: Indicator to show the positon of a trading system

Leo,

you could use the built-in Custom 1 Line indicator and use i_MarketPosition for the Formula input. This should display the Marketposition of a strategy applied to the same chart.

Regards,

ABC
by ABC
Oct 07 2021
Forum: MultiCharts
Topic: Rounding up to the nearest tick
Replies: 2
Views: 802

Re: Rounding up to the nearest tick

masber2000, there are multiple ways to accomplish what you have in mind. It depends a bit on what you want to do in case your value is already ending at the nearest tick i.e. would 1025.25 still be rounded up to 1025.50. One way to always round up would be: 1. Dividing the value by one tick and addi...
by ABC
Sep 16 2021
Forum: MultiCharts
Topic: Chart prices don't match real prices
Replies: 1
Views: 605

Re: Chart prices don't match real prices

gpw797, what symbol are you charting and what are you using for the symbol mapping? Is it possible that you are charting the new front month and your symbol mapping is still using the prior contract? If that is not the case it might make sense to demonstrate the issue to Multicharts support via help...
by ABC
Aug 23 2021
Forum: MultiCharts
Topic: Help with ListN Plotting
Replies: 1
Views: 653

Re: Help with ListN Plotting

olobay, you could loop through the contents of your list and use a switch statement to pass an entry to a respective plot number. However, you would still have to add X different plots where X is the number of rows you read into the list. It might look more elegant, but it will likely not be less co...
by ABC
Jul 16 2021
Forum: MultiCharts
Topic: variable D
Replies: 2
Views: 809

Re: variable D

chipeur_le_renard,

if you are referring to D used for example in D=D[1], this is a reserved word and not a variable. Some reserved words (providing bar information) have one letter short forms like D for Date, T for Time, or C for Close for example.

Regards,

ABC
by ABC
Jun 25 2021
Forum: MultiCharts
Topic: QCG data into MC ?
Replies: 3
Views: 960

Re: QCG data into MC ?

Salzburg, while I cannot help you with your CQG questions, one workaround for the situation you describe is loading second charts using IQFeed. Instead of 1 minute you would load 60 seconds etc. and up and down ticks are available for historical bars (on real time bars the data should be available a...
by ABC
Nov 13 2020
Forum: MultiCharts
Topic: Referencing previous Data2 calculated values [SOLVED]
Replies: 2
Views: 881

Re: Referencing previous Data2 calculated values [SOLVED]

kagein, this could be caused by a typo in your code. When you declare "mavg" the variable is initialized with "(0 data2);". This would not tie the variable to data2 as you are missing a comma between 0 and data2. "0 Data2" is just a value like Close Data2 for example. R...
by ABC
Oct 12 2020
Forum: MultiCharts
Topic: What is going on with the license server?
Replies: 21
Views: 5512

Re: What is going on with the license server?

Same here.

Regards,

ABC
by ABC
Sep 10 2020
Forum: MultiCharts
Topic: Avoid Placing orders out of my trading session
Replies: 12
Views: 2912

Re: Avoid Placing orders out of my trading session

Sallymeow, take a look at the "Price Order Emulation" feature as it might do what you have in mind: https://www.multicharts.com/trading-software/index.php/Auto_Trading#Price_Order_Emulation Regards, ABC It seems that I have a misunderstanding that stop orders are pending at Multicharts and...
by ABC
May 11 2020
Forum: MultiCharts
Topic: an incomprehensible problem
Replies: 11
Views: 2932

Re: an incomprehensible problem

turbofib, this is expected behavior for functions of the type series. Multicharts will call them with every code calculation, even if your code seemingly calls them conditionally only. You might have the function type set to auto detect and when you remove the following line the function becomes sim...
by ABC
Apr 24 2020
Forum: MultiCharts
Topic: Daten Feed Aktien
Replies: 5
Views: 1508

Re: Daten Feed Aktien

Jimmyrakete,

TS data will work in Multicharts, it is just not supported as a broker.

Regards,

ABC
by ABC
Nov 13 2019
Forum: MultiCharts
Topic: Maxbarsback and trailing stop
Replies: 6
Views: 2042

Re: Maxbarsback and trailing stop

champski,

the problem is likely not coming from the code snippet you posted and there might be other parts causing the issue.

Regards,

ABC
by ABC
Nov 13 2019
Forum: MultiCharts
Topic: Maxbarsback and trailing stop
Replies: 6
Views: 2042

Re: Maxbarsback and trailing stop

champski,

by "yourself" I meant write code to do that. You can for example reset a tracking variable when you are flat or directly after the entry and every time a high is higher than the value stored in the variable you update this variable's value to that high.

Regards,

ABC
by ABC
Nov 12 2019
Forum: MultiCharts
Topic: Maxbarsback and trailing stop
Replies: 6
Views: 2042

Re: Maxbarsback and trailing stop

champski, you introduced a variable length with BarsSinceEntry. This can become quite large depending on how many bars ago this happened and in turn this will affect the required max bars back. It might make sense to avoid that and to track the highest high during your position yourself. Regards, ABC
by ABC
Oct 30 2019
Forum: MultiCharts
Topic: GetAppInfo in correct parameter [SOLVED]
Replies: 2
Views: 1150

Re: GetAppInfo in correct parameter [SOLVED]

Pipscalper, the code below returns the first bar on the visible portion of the chart for me and not the first bar of the data series in MC 12.0 Release (Build 18184). Print( DateTimeToString( GetAppInfo( aiLeftDispDateTime ) ) ) ; The value changes when I scroll the chart and have a different bar as...
by ABC
Oct 23 2019
Forum: MultiCharts
Topic: MaxBarsBack - Help needed [SOLVED]
Replies: 17
Views: 4501

Re: MaxBarsBack - Help needed [SOLVED]

Mydesign, from glancing at your code the problem is likely coming from the variable lookback you introduce here: if HSwing then begin LastSwingHighBN = BarNumber[Strength] ; TLRef = TL_New_BN( LastSwingLowBN, Close[CurrentBar-LastSwingLowBN], LastSwingHighBN, Close[CurrentBar-LastSwingHighBN] ) ; en...
by ABC
Oct 14 2019
Forum: MultiCharts
Topic: Backetest is working only from the past 5 days and misteriously dosn't before that date [SOLVED]
Replies: 7
Views: 2109

Re: Backetest is working only from the past 5 days and misteriously dosn't before that date [SOLVED]

David, can you elaborate why Max Bars back is not the problem here? How many bars do you have on the chart in total and was is the bar number of the first signal? In fact with 10 minute bars for the Dax and starting on the 6th of September it's not unlikely that the high Max bars setting you are usi...
by ABC
Sep 25 2019
Forum: MultiCharts
Topic: Floor Povit Point not inline with the exchange open time [SOLVED]
Replies: 5
Views: 1636

Re: Floor Povit Point not inline with the exchange open time [SOLVED]

Aaron,

the code is designed to track from date change to date change and would have to be re-written to allow the tracking from session start to session end.

Regards,

ABC
by ABC
Sep 06 2019
Forum: MultiCharts
Topic: Adding equity to increase capital in portfolio backtest
Replies: 2
Views: 1031

Re: Adding equity to increase capital in portfolio backtest

Hi smhuggins, you might be able to walk around this by having your Money Management size the trades based on the equity which you could compute using the starting equity (you might want to use an input here instead of the reserved word) plus the net profit and another variable that you increment by ...
by ABC
Aug 05 2019
Forum: MultiCharts
Topic: ELCollections compile error [SOLVED]
Replies: 5
Views: 1898

Re: ELCollections compile error [SOLVED]

Hi masber2000,

you are welcome. This error message is likely not related to the code or EasyLanguage Collections, but could for example come up again after a windows update.

Regards,

ABC
by ABC
Aug 05 2019
Forum: MultiCharts
Topic: ELCollections compile error [SOLVED]
Replies: 5
Views: 1898

Re: ELCollections compile error [SOLVED]

Hi masber2000, you can find several similar cases in the forum, like here for example: https://www.multicharts.com/discussion/viewtopic.php?f=1&t=52079 Check if the error still comes up after a reboot. If it does it might make sense to contact the helpdesk so they can fix it for you via remote s...
by ABC
Jul 16 2019
Forum: MultiCharts
Topic: Global Variables - How to make them work on hystoric chart and not only in real time [SOLVED]
Replies: 4
Views: 2810

Re: Global Variables - How to make them work on hystoric chart and not only in real time [SOLVED]

David, the design of Global Variables makes them suited for real time use. While what you have in mind might be doable with Global Variables, it would require storing each bar with a value using a differently named Global Variable. This could become hard to manage and depending on the amount of bars...
by ABC
Jul 12 2019
Forum: MultiCharts .NET
Topic: Is that have any limitation under 2-D array? [SOLVED]
Replies: 8
Views: 3281

Re: Is that have any limitation under 2-D array? [SOLVED]

~Zola~,

you are welcome. I am glad to hear that you have got it working.

Regards,

ABC
by ABC
Jul 12 2019
Forum: MultiCharts .NET
Topic: Is that have any limitation under 2-D array? [SOLVED]
Replies: 8
Views: 3281

Re: Is that have any limitation under 2-D array? [SOLVED]

~Zola~, when you declare an array in C# the number within brackets is the number of elements. The first element however is at index 0. That's why int[,] array2Da = new int[4, 2 ] creates a two dimensional array with four rows and two columns, but int[,] Score = new int[24001, 1 ] is not really two d...
by ABC
Jul 12 2019
Forum: MultiCharts .NET
Topic: Is that have any limitation under 2-D array? [SOLVED]
Replies: 8
Views: 3281

Re: Is that have any limitation under 2-D array? [SOLVED]

Thanks for your reply.
I declared "private int[,] Score = new int[24001,1];", anything I still missing?
~Zola~,

check out the link I posted.

Regards,

ABC
by ABC
Jul 12 2019
Forum: MultiCharts .NET
Topic: Is that have any limitation under 2-D array? [SOLVED]
Replies: 8
Views: 3281

Re: Is that have any limitation under 2-D array? [SOLVED]

~Zola~, your code declares a 2-D array with one row only and consequently you receive an error when you try to access the second row. Take a look at the link below for examples on how to create multi dimensional arrays in C#: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/arrays/mu...
by ABC
Jul 11 2019
Forum: MultiCharts
Topic: Swing levels [SOLVED]
Replies: 5
Views: 1833

Re: Swing levels [SOLVED]

Samuel187, the built-in Pivot function does pretty much what you describe and you can take a look at the code for ideas. However it might be more efficient to go bar by bar as the chart progresses and check if your conditions are fulfilled (i.e. count bars with lower lows etc. in variables). You mig...
by ABC
Jul 10 2019
Forum: MultiCharts
Topic: Swing levels [SOLVED]
Replies: 5
Views: 1833

Re: Swing levels [SOLVED]

Samuel187,

an indicator might make sense to visualize the levels and see if your code detects the levels you have in mind, but to keep the strategy simple I would put the logic inside the strategy code, too.

Regards,

ABC
by ABC
Jul 10 2019
Forum: MultiCharts
Topic: how to get volatility of last bar
Replies: 5
Views: 1849

Re: how to get volatility of last bar

martingale, vVolatility is a variable and you can back reference previous bar's values for variables using a number in square brackets. vVolatility[0] is the value on the current bar (although [0] is usually omitted), vVolatility[1] is the value one bar to the left of the current bar etc.. Regards, ...
by ABC
Jul 05 2019
Forum: MultiCharts
Topic: StrToBool question
Replies: 1
Views: 877

Re: StrToBool question

Ben,

you could write your own StrToBool function, pass a string to it, evaluate it and return a Boolean.

Regards,

ABC
by ABC
Jul 03 2019
Forum: MultiCharts
Topic: how to get volatility of last bar
Replies: 5
Views: 1849

Re: how to get volatility of last bar

martingale,

you can store the function's return value in a variable and use this variable within your code.

Code: Select all

Input: Length( 14 ) ; Variable: vVolatility( 0 ); vVolatility = Volatility( Length ) ; Plot1( vVolatility, "Volatility" ) ;
Regards,

ABC
by ABC
Jun 26 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2917

Re: NetProfit montly average;

gioakino, it might make sense to take one step back to familiarize yourself with the basics of arrays a bit more as this should make it a lot easier later. The free EasyLanguage Essentials PDF contains a brief section about arrays that provides a good first start. In general your code will have to k...
by ABC
Jun 25 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2917

Re: NetProfit montly average;

gioakino,

where do you store the values from the prior months?

Regards,

ABC
by ABC
Jun 25 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2917

Re: NetProfit montly average;

gioakino,

what are the results of your checks using the print reserved word?

Regards,

ABC
by ABC
Jun 24 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2917

Re: NetProfit montly average;

gioakino, I wouldn't suggest using the average function with the array, but to compute the average yourself over the desired length within your array. The print reserved word is a good way to find out what values are currently stored within your array, if you correctly update them etc.. Regards, ABC
by ABC
Jun 24 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2917

Re: NetProfit montly average;

gioakino, a list would work, too if you want your code to be able to be flexible and allow varying average length settings. You could probably even use variables, but this would require a lot more coding and be a lot less flexible. Your idea sounds like a perfect opportunity to become more familiar ...
by ABC
Jun 21 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2917

Re: NetProfit montly average;

gioakino, when you apply the study to anything but monthly bars, the average will be computed using the value of montlyprofit over the last avglen number of bars and not the last avglen monthly values. One approach to get the average over the last X month would be by using an array where you store o...
by ABC
Jun 21 2019
Forum: MultiCharts
Topic: can i specify lastbar date on weekly chart?
Replies: 1
Views: 807

Re: can i specify lastbar date on weekly chart?

rokanten,

one way to accomplish this could be a simple paint bar script that has update on every tick disabled or only gets updated at the end of a bar.

Regards,

ABC
by ABC
Jun 18 2019
Forum: MultiCharts
Topic: PortfolioEntriesPriority [SOLVED]
Replies: 2
Views: 1379

Re: PortfolioEntriesPriority [SOLVED]

Riccardo, your setup doesn't utilize a Portfolio Money Management Signal (PMMS) that would be required to effectively control the number of entries. In your setup all symbols are allowed to enter (according to your code) and while the one with the highest priority might receive the largest amounts o...
by ABC
Jun 05 2019
Forum: MultiCharts
Topic: Help with Global Variables [SOLVED]
Replies: 3
Views: 1612

Re: Help with Global Variables [SOLVED]

kagein, if GVSetDouble returns the element location the value was stored. Otherwise it would return -1. To retrieve a value at an specific location you can use the corresponding GVGet... functions. You might find the Global Variable documentation and examples helpful (it should be available here in ...
by ABC
Jun 05 2019
Forum: MultiCharts
Topic: Help with Global Variables [SOLVED]
Replies: 3
Views: 1612

Re: Help with Global Variables [SOLVED]

kagein,

the return value of GVSetDouble is the element location and not the value you stored.

Regards,

ABC
by ABC
May 27 2019
Forum: MultiCharts
Topic: How to get Scanner windows row number
Replies: 1
Views: 804

Re: How to get Scanner windows row number

Hi maison6579,

yes, this should be possible via GetAppInfo and aiRow.

Regards,

ABC
by ABC
May 22 2019
Forum: MultiCharts
Topic: Using the reserved word “TL_New” [SOLVED]
Replies: 14
Views: 3654

Re: Using the reserved word “TL_New” [SOLVED]

~Zola~, the code is designed to create the drawings only once when the study gets executed i.e. it will apply them on the first bar after your max bars back settings. Having said that you should be able to find the drawings close to the start of your chart. Regards, ABC Scaling should be "Same ...
by ABC
May 21 2019
Forum: MultiCharts
Topic: Using the reserved word “TL_New” [SOLVED]
Replies: 14
Views: 3654

Re: Using the reserved word “TL_New” [SOLVED]

Hi ~Zola~, can you post a screenshot of the chart with the study applied, as this might help us in understanding the cause. Regards, ABC What is your chart resolution? ie the chart type and interval? I have tried the "Bar Chart" and "Hollow Candlestick Chart" with 1 minute or 1 d...
by ABC
Apr 26 2019
Forum: MultiCharts .NET
Topic: Volume Delta charts colours shading
Replies: 6
Views: 3675

Re: Volume Delta charts colours shading

Al3cs, again I agree and that's why I wrote that it would be great to have it built in. My post was merely pointing out that MC.NET gives you the control and flexibility to implement it yourself in case your suggestions is not picked up. In terms of getting more feedback you might want to post the l...
by ABC
Apr 25 2019
Forum: MultiCharts .NET
Topic: Volume Delta charts colours shading
Replies: 6
Views: 3675

Re: Volume Delta charts colours shading

Hi Al3cs, while I agree that it would be great to have more control over the coloring options that Multicharts offers for the Delta, with MC.NET you have access to the volume profile values and can display your own Delta values for each bar (preferable using GDI+ due to the performance advantage) an...
by ABC
Apr 08 2019
Forum: MultiCharts .NET
Topic: Quotes database folder [SOLVED]
Replies: 2
Views: 1880

Re: Quotes database folder [SOLVED]

Hi Patrick, yes, this is the correct folder and you can find more information about moving the folder and have MC access it under a different location here: https://www.multicharts.com/trading-software/index.php/How_to_Move_MultiCharts_Database,_Studies_and_Logs_from_C_Drive_(Starting_from_8.7_Versi...
by ABC
Apr 08 2019
Forum: MultiCharts
Topic: scoring a basket of stock pick [SOLVED]
Replies: 1
Views: 1076

Re: scoring a basket of stock pick [SOLVED]

Hi my2108, this sounds like something that is best implemented within the Portfolio Trader. https://www.multicharts.com/trading-software/index.php/Portfolio_Trader The Rank Strategy should give you an idea about how to implement your idea: https://www.multicharts.com/trading-software/index.php/Portf...
by ABC
Apr 05 2019
Forum: MultiCharts
Topic: Dynamic MaxBarsBack ? [SOLVED]
Replies: 6
Views: 1983

Re: Dynamic MaxBarsBack ? [SOLVED]

hbscreener,

you have to avoid looking back at previous bars values, like you do within the highest function. One way to deal with that could be to keep an array of the last 250 bar values and find your highest value within the array.

Regards,

ABC
by ABC
Apr 02 2019
Forum: MultiCharts
Topic: Publish Hotfixes
Replies: 1
Views: 812

Publish Hotfixes

Hi Multicharts Team, would it be possible to publish any current hotfixes that you created for a known problem and MC release within one sticky thread? This could spare your users from running into already fixed problems and in turn could even save you some time as it could reduce the support requir...
by ABC
Mar 12 2019
Forum: MultiCharts
Topic: Ehlers Deviation-Scaled Moving Average (TASC July 2018) [SOLVED]
Replies: 2
Views: 1525

Re: Ehlers Deviation-Scaled Moving Average (TASC July 2018) [SOLVED]

Hi LRP, you should be able to get this code working in Multicharts by changing the conflicting (i.e. not recognized) reserved words/functionalty within the function. Indicator and strategy should work fine already. 1. Remove the using declaration near the top of the function code 2. Change throw Exc...
by ABC
Mar 06 2019
Forum: MultiCharts
Topic: Entry at exact time different with tick or minute bar
Replies: 29
Views: 11330

Re: Entry at exact time different with tick or minute bar

Hello Anna, if possible these keywords should also be available in real time i.e. we need the ability to access the current time of a tick within a real time bar (regardless of the bar type). Regards, ABC Hello, McGeorge! Our developers have considered this feature request and new keywords for retur...
by ABC
Feb 20 2019
Forum: MultiCharts
Topic: side of the last trade [SOLVED]
Replies: 3
Views: 1466

Re: side of the last trade [SOLVED]

Hi mav3r1c55,

you could utilize an additional 1 tick cumulative delta data stream and monitor advances/declines in the cumulative delta.

Regards,

ABC
by ABC
Feb 18 2019
Forum: MultiCharts
Topic: disappear the new signal in language editor [SOLVED]
Replies: 2
Views: 1165

Re: disappear the new signal in language editor [SOLVED]

matthewting,

this can happen if for example Multicharts is run as administrator, but PL Editor is not (or vice versa). I would suggest making sure that you run both PL Editor and Multicharts with administrator privileges.

Regards,

ABC
by ABC
Feb 15 2019
Forum: MultiCharts
Topic: mail alert with stocks information
Replies: 4
Views: 1553

Re: mail alert with stocks information

no erocla, you should be able to do that for the stocks that are within your portfolio by having either the money management or the entry signal on one symbol collect all the information and send the email. You will likely require a timer though as the markets might be closed by the time you execute...
by ABC
Feb 04 2019
Forum: MultiCharts .NET
Topic: Draw a rectangle within an indicator [SOLVED]
Replies: 7
Views: 3795

Re: Draw a rectangle within an indicator [SOLVED]

Hi pdemontferrier,

check your usage of DrwRectangle.Create. The onSameSubchart flag is still set to false:

BK_L1 = DrwRectangle.Create(new ChartPoint(BK_START,0), new ChartPoint(BK_FINISH,20), false);

Regards,

ABC
by ABC
Feb 04 2019
Forum: MultiCharts .NET
Topic: Draw a rectangle within an indicator [SOLVED]
Replies: 7
Views: 3795

Re: Draw a rectangle within an indicator [SOLVED]

Hi pdemontferrier, you would have to post your code, as the SameAsSymbol attribute is not related to your problem. The onSameSubchart flag is part of DrwRectangle.Create and in the snippet you posted you have set it to false. Regards, ABC Hi ABC, Thank you very much for your contribution but it didn...
by ABC
Feb 04 2019
Forum: MultiCharts .NET
Topic: Draw a rectangle within an indicator [SOLVED]
Replies: 7
Views: 3795

Re: Draw a rectangle within an indicator [SOLVED]

Hi pdemontferrier,

your code sets the onSameSubchart flag to false i.e. the rectangle will be placed on the price chart. Setting it to true should display it on the indicator subchart.

Regards,

ABC
by ABC
Jan 02 2019
Forum: MultiCharts
Topic: Up Down Volume Indicator
Replies: 2
Views: 1878

Re: Up Down Volume Indicator

Deenius,

take a look at the built-in "Volume Avg" indicator, you can adjust the inputs of it to accomplish what you have in mind.

Regards,

ABC
by ABC
Dec 19 2018
Forum: MultiCharts
Topic: Why in 2018 still so difficult to access values from other DataN/indicators
Replies: 10
Views: 3552

Re: Why in 2018 still so difficult to access values from other DataN/indicators

dvdkite, according to Note 1 in the wiki (https://www.multicharts.com/trading-software/index.php/I_setplotvalue) " i_setplotvalue can be used in signals, functions and indicators if any signal is applied to the main chart ." Check if it works if you apply any of the default signals to your...
by ABC
Dec 13 2018
Forum: MultiCharts
Topic: CLOSE WHEN PROFIT OR LOSS IS REACH.
Replies: 11
Views: 4189

Re: CLOSE WHEN PROFIT OR LOSS IS REACH.

Hi RedBerlin,

you will have to track down why the exit isn't triggering when you think it should and the print reserved word can be useful here to evaluate your variable values on every bar.

Regards,

ABC
by ABC
Dec 13 2018
Forum: MultiCharts
Topic: CLOSE WHEN PROFIT OR LOSS IS REACH.
Replies: 11
Views: 4189

Re: CLOSE WHEN PROFIT OR LOSS IS REACH.

Hi RedBerlin, it might make sense for you to use the Print reserved word to check the values of todaynet and see why an order was or wasn't closed. Your strategy is evaluated end of bar, so this should be kept in mind as it will not issue orders when the conditions are met intrabar. The code snippet...
by ABC
Dec 12 2018
Forum: MultiCharts
Topic: CLOSE WHEN PROFIT OR LOSS IS REACH.
Replies: 11
Views: 4189

Re: CLOSE WHEN PROFIT OR LOSS IS REACH.

Hi RedBerlin, the code you posted already tracks the profit you could use this within your exit conditions, too. For example modifying your exit checks from ...and time >endtrade then... to ...and ( time >endtrade or todaynet >= dailyprofit ) then... might work for you. Regards, ABC
by ABC
Nov 28 2018
Forum: MultiCharts .NET
Topic: Custom Column in Market Scanner
Replies: 2
Views: 1642

Re: Custom Column in Market Scanner

Hi orad, you can create an indicator and have it plot the Price Vol according to your formula. This would then appear a column in the Scanner just like other indicators would do - for example add one of the built-in indicators to the Scanner (like one of the moving averages) to see what I mean. Rega...
by ABC
Nov 22 2018
Forum: MultiCharts
Topic: Need help on Power Editor Appearance [SOLVED]
Replies: 4
Views: 1719

Re: Need help on Power Editor Appearance [SOLVED]

Wapi,

the last two posts in this thread might get you going: viewtopic.php?f=1&t=5061

Regards,

ABC
by ABC
Nov 20 2018
Forum: MultiCharts .NET
Topic: Feature Request: Open None Workspaces [SOLVED]
Replies: 2
Views: 1551

Re: Feature Request: Open None Workspaces [SOLVED]

Hi Johannes,

wouldn't unchecking the "Open Workspaces On Start" accomplish that i.e. the result would be no workspaces would be opened on startup.

Regards,

ABC
by ABC
Oct 22 2018
Forum: MultiCharts
Topic: H=L in the last 10 bars [SOLVED]
Replies: 11
Views: 4218

Re: H=L in the last 10 bars [SOLVED]

Hi Split, your code appears to miss an ending statement for the for loop. Apart from that you might be able to accomplish what you have by simply storing the value for CurrentBar in a variable when ever High = Low. Then you can check if the difference between CurrentBar (on the current bar) and the ...
by ABC
Oct 11 2018
Forum: MultiCharts .NET
Topic: Creating a Flag with the bar number
Replies: 1
Views: 1826

Re: Creating a Flag with the bar number

Tartalognion, both are fine. You need an additional variable and whenever Bars.CurrentBar is different than what you have stored in your variable, you update the value stored in your variable. However when you operate on 1 tick charts and only compute your code with incoming ticks, you might not eve...
by ABC
Oct 04 2018
Forum: MultiCharts
Topic: Duplication of Stoploss in Easy Language Automated Trading [SOLVED]
Replies: 8
Views: 3081

Re: Duplication of Stoploss in Easy Language Automated Trading [SOLVED]

sternbergleonel, then this is likely the explanation, as both strategies issue a stop. In general these build in exit reserved words are best used unconditionally and you could have them once within a separate exit strategy. You might also wan to explore the "Optimize Order Flow" feature, ...
by ABC
Oct 04 2018
Forum: MultiCharts
Topic: Duplication of Stoploss in Easy Language Automated Trading [SOLVED]
Replies: 8
Views: 3081

Re: Duplication of Stoploss in Easy Language Automated Trading [SOLVED]

sternbergleonel,

is it possible that you have more than one strategy applied to the same chart that uses the setstoploss reserved word?

Regards,

ABC
by ABC
Oct 04 2018
Forum: MultiCharts
Topic: Assignment is allowed only for variables or array elements
Replies: 8
Views: 3066

Re: Assignment is allowed only for variables or array elements

Splint,

is Maxtradeclose a function on your end? Where does the code starting with "//-----Functions Used in the Code---------" reside, is it in a system or in a separate function?

Regards,

ABC
by ABC
Oct 01 2018
Forum: MultiCharts
Topic: How access to DOM bid and ask data from easylanguage and DTN IQFEED
Replies: 1
Views: 961

Re: How access to DOM bid and ask data from easylanguage and DTN IQFEED

David,

unfortunately DOM data is only available for broker feeds and therefore you can't access the values using IQFeed.

Regards,

ABC
by ABC
Sep 26 2018
Forum: MultiCharts
Topic: New functions, please advise. [SOLVED]
Replies: 9
Views: 2980

Re: New functions, please advise. [SOLVED]

wilkinsw, they are likely functions for a 3rd party add-on indicator or strategy and are closed code. If that is the case they are automatically installed with Multicharts. The vendor has likely created separate functions of existing ones (you would have to contact the vendor to find out what they d...
by ABC
Sep 12 2018
Forum: MultiCharts
Topic: TL_NEW ID is always 1? [SOLVED]
Replies: 13
Views: 4427

Re: TL_NEW ID is always 1? [SOLVED]

gianluca71, the value of your plot changes when a new trend line is drawn. The line is not created on the bar of the low/high (although it uses this point as the line's starting point for the drawing), but usually a few bars later when a new swing in the opposite direction is detected. That's what T...
by ABC
Sep 11 2018
Forum: MultiCharts .NET
Topic: Managing text + getting Cumulative Delta value [SOLVED]
Replies: 3
Views: 2250

Re: Managing text + getting Cumulative Delta value [SOLVED]

Al3cs,

you could update the text location of your text with every new bar.

Regards,

ABC
by ABC
Sep 10 2018
Forum: MultiCharts
Topic: Max Bars Back & 2 Instruments [SOLVED]
Replies: 1
Views: 9648

Re: Max Bars Back & 2 Instruments [SOLVED]

TrendFirst, it applies to both data streams. In other words you should see no trades until the max bars back are sufficient for the highest time frame you are using in your code and you will run into the error message when any of the length inputs in your code that require a look back (even if it's ...
by ABC
Sep 07 2018
Forum: MultiCharts
Topic: Managing codes with multiple resolution (time frame)
Replies: 2
Views: 1380

Re: Managing codes with multiple resolution (time frame)

Hi gianluca71, Multicharts doesn't allow loading of other timeframes within the code. Therefore your best option will likely be using additional data streams on the chart. Alternatively you could look into computing the additional time frames out of the underlying chart time frame, but this might no...
by ABC
Sep 05 2018
Forum: MultiCharts .NET
Topic: How to access Imbalance Delta Bars value?
Replies: 2
Views: 2138

Re: How to access Imbalance Delta Bars value?

Hi Al3cs,

you can access the data via the volume profile collection and you can find an example in the WIKI here:
https://www.multicharts.com/trading-sof ... me_Profile

Regards,

ABC
by ABC
Aug 28 2018
Forum: MultiCharts
Topic: Using print for signals
Replies: 6
Views: 2351

Re: Using print for signals

Hi odrk, when prints appear depends on when the conditions for the prints are valid and when your code gets executed. If your strategy only computes end of bar, the prints could only appear at the end of the bar. You can take a look at the IntrabarOrderGeneration attribute for a way of executing str...
by ABC
Aug 22 2018
Forum: MultiCharts
Topic: Maybe I miss something....
Replies: 1
Views: 816

Re: Maybe I miss something....

Hi BBurnout,

you might find the Study on Study feature useful:
https://www.multicharts.com/trading-sof ... y_on_study

Regards,

ABC
by ABC
Aug 22 2018
Forum: MultiCharts
Topic: Using print for signals
Replies: 6
Views: 2351

Re: Using print for signals

Hi odrk, you wrote your code to print when "MarketPosition = -1" i.e. short and when "MarketPosition = 0" i.e. flat.. The best way to tackle this will depend a bit on how your systems trades, for example if it only evaluates trades at the end of the bar and never exits on the sam...
by ABC
Aug 16 2018
Forum: MultiCharts
Topic: Scaling an indicator and its moving average in the same subchart [SOLVED]
Replies: 3
Views: 1491

Re: Scaling an indicator and its moving average in the same subchart [SOLVED]

Hi Automeq,

since you are already using the study on study feature, you could for example use the Custom 2 Lines indicator and have it plot both indicators.

Regards,

ABC
by ABC
Jul 30 2018
Forum: User Contributed Studies
Topic: MACD_color
Replies: 5
Views: 6663

Re: MACD_color

BogeyGolfer, the code works fine and you can get it to work by either creating a new indicator within Multicharts.NET calling it MACD_color and overwriting all (!) of the code in it with the code posted by TJ in the first post. After that you can compile the code without any error message. Alternati...
by ABC
Jul 27 2018
Forum: MultiCharts
Topic: ADE implementation [SOLVED]
Replies: 9
Views: 3351

Re: ADE implementation [SOLVED]

Hi waveslider, ELCollections2 is a 32bit TS DLL and I am not sure it would even work with Multicharts 32bit. You should make sure to use the code and DLL you can obtain in the forum here (in case you are running MC 32bit you will need to use the 32bit version of the ELCollections.DLL): https://www.m...
by ABC
Jul 18 2018
Forum: MultiCharts .NET
Topic: Bars.FullSymbolData.Count
Replies: 6
Views: 3352

Re: Bars.FullSymbolData.Count

Wish I only knew what to replace NumberOfBars with. This would do something on the last 34 bars. :P Hi Jobauma, you can use Bars.FullSymbolData.Count and Bars.FullSymbolData.Current. Bars.FullSymbolData.Count gives you the total number of bars on the chart and Bars.FullSymbolData.Current gives you ...
by ABC
Jul 10 2018
Forum: MultiCharts
Topic: percentile/quantile in PowerLanguage
Replies: 4
Views: 2178

Re: percentile/quantile in PowerLanguage

birdman3000,

you might want to take a look at the build in Percentile function.

Regards,

ABC
It's pretty basic statistics. Can I request it gets added?
by ABC
Jul 09 2018
Forum: MultiCharts
Topic: In a Spread Diff chart, can you show the symbols used on the chart? [SOLVED]
Replies: 9
Views: 2750

Re: In a Spread Diff chart, can you show the symbols used on the chart? [SOLVED]

Hi synonym, you might have to enable the indicator value display in the status line. Your code is showing the symbol names fine on my end. Regards, ABC Hi ABC have tried your suggestion, please see attached code. It make no difference, it still plots, but the status line still simply says, "Spr...
by ABC
Jul 09 2018
Forum: MultiCharts
Topic: In a Spread Diff chart, can you show the symbols used on the chart? [SOLVED]
Replies: 9
Views: 2750

Re: In a Spread Diff chart, can you show the symbols used on the chart? [SOLVED]

Hi synonym, you would use Plot5 and Plot6 for example (instead of Plot2 and Plot3 from Svetlana's code). The reason being that PlotPaintBar will use the Plot numbers 1-4 in your code. Regards, ABC HI Svetlana Thank you for your reply. How would i do this when i am plotting the spread as a bar and no...
by ABC
Jul 02 2018
Forum: MultiCharts
Topic: Determining sub-chart an arrow is placed on [SOLVED]
Replies: 5
Views: 2302

Re: Determining sub-chart an arrow is placed on [SOLVED]

bowlesj3, your code misses the ProcessMouseEvents attribute and this might explain why it's not working. https://www.multicharts.com/trading-software/index.php/ProcessMouseEvents Regards, ABC I created a script with the MouseClickEvent (shown below). I used the RecalcLastBarAfter(1); to force the co...
by ABC
Jun 27 2018
Forum: MultiCharts
Topic: Issue with Global Variables [SOLVED]
Replies: 7
Views: 2717

Re: Issue with Global Variables [SOLVED]

Hi Parker,

there should be sample indicators in the zip file that can be used to check if everything is working correctly.

Regards,

ABC
by ABC
Jun 26 2018
Forum: MultiCharts
Topic: Read Last Row From File with EL Collections [SOLVED]
Replies: 2
Views: 1704

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

Hi Parker,

since you have the entire file in lists already, you can use ListX.Count (where X is the type of list) to determine the size of a list and then read the specific entry.

Regards,

ABC
by ABC
Jun 14 2018
Forum: MultiCharts
Topic: Support for a Feature Request i think many will love.
Replies: 3
Views: 1431

Re: Support for a Feature Request i think many will love.

Syn,

you can accomplish something similar with trendlines already. Simply draw a trendline between your two points and click on the line. It will show you the difference in time and price in a popup window when you click on it:
MCTrendlines.PNG
(7.81 KiB) Downloaded 395 times
Regards,

ABC
by ABC
Jun 12 2018
Forum: MultiCharts
Topic: CoT Commitment of Traders Data
Replies: 8
Views: 3865

Re: CoT Commitment of Traders Data

Hi Parker, I am afraid directly accessing the fundamental data TS provides is not possible via code in Multicharts. Besides importing the data into MC manually it might also be possible to exchange the data between TS and MC with custom code (for example via text files, Custom DLLs or Excel). Regard...
by ABC
Jun 11 2018
Forum: MultiCharts
Topic: If not(X) then return;
Replies: 6
Views: 2471

Re: If not(X) then return;

turbofib,

take a look at the build in --- Market Depth on Chart --- indicator as it demonstrates different ways of flow control within an indicator.

Regards,

ABC
hi

Is it possible to use an output condition without using if then?

(in c# it's : If not(X) then return )
by ABC
Jun 11 2018
Forum: MultiCharts
Topic: If not(X) then return;
Replies: 6
Views: 2471

Re: If not(X) then return;

JoshM, you can use the #return statement to accomplish that. Print( "A CurrentBar = ", CurrentBar ) ; if CurrentBar < 100 then #return ; Print( "B CurrentBar = ", CurrentBar ) ; The print starting with B will only start to appear with bar 100 in the output. Regards, ABC Is it pos...
by ABC
Jun 07 2018
Forum: MultiCharts
Topic: Scaling of MA on RSI [SOLVED]
Replies: 10
Views: 4016

Re: Scaling of MA on RSI [SOLVED]

synonym,

thank you for you kind words, I am glad to hear that my answer was helpful to you.

Regards,

ABC
by ABC
Jun 07 2018
Forum: MultiCharts
Topic: Scaling of MA on RSI [SOLVED]
Replies: 10
Views: 4016

Re: Any user solved the problems i outlined in my post on indicator scaling? [SOLVED]

synonym, one solution would be to do it within one study. Either write your own or use the Custom 4 Line indicator to display the RSI, the average of it and the two threshold lines. Regards, ABC Hi All forgive me posting this, but i felt that many would not look at my post on the end of the thread &...
by ABC
Jun 01 2018
Forum: MultiCharts .NET
Topic: Bars.Volume Returning Incorrect Value ?? [SOLVED]
Replies: 1
Views: 1766

Re: Bars.Volume Returning Incorrect Value ?? [SOLVED]

Gann_Man,

this is intended and you can get the correct volume using Bars.TrueVolume.
You can find some more information here: viewtopic.php?t=45347

Regards,

ABC
by ABC
May 10 2018
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 168574

Re: MULTICHARTS 11.0 RELEASE

Henry, it appears MaxBarsForward and Getappinfo( aiSpaceToRight ) are static and don't reflect changes to the "Chart Shift" settings of a chart i.e. changing the number of bars for the chart will not change what MaxBarsForward and Getappinfo( aiSpaceToRight ) return for a study already app...
by ABC
May 09 2018
Forum: MultiCharts
Topic: trade closed in the same bar .. was it long or short?
Replies: 6
Views: 2479

Re: trade closed in the same bar .. was it long or short?

shivax, what is your rational for setting TradeNumber to 1? Regards, ABC are you sure PosTradeislong run correctly? i try this example : .... if Time=1000 then sellshort next bar at open; print(Date,time," ",PosTradeislong(0,1)); i see all print =True https://gyazo.com/6da22860acd84ee78125...
by ABC
May 09 2018
Forum: MultiCharts
Topic: trade closed in the same bar .. was it long or short?
Replies: 6
Views: 2479

Re: trade closed in the same bar .. was it long or short?

shivax,,

TradeNumber is the (zero based) number of individual entries into the position for the specific trade and you can use PosTradeCount to retrieve it.
If you don't scale in and out of trades, it should always be 0.

Regards,

ABC
by ABC
May 09 2018
Forum: MultiCharts
Topic: trade closed in the same bar .. was it long or short?
Replies: 6
Views: 2479

Re: trade closed in the same bar .. was it long or short?

shivax,

take a look at the strategy position trades keywords:
https://www.multicharts.com/trading-sof ... ion_Trades

PosTradeIsLong could for example tell you if a trade was long or short.

Regards,

ABC
by ABC
Apr 18 2018
Forum: MultiCharts .NET
Topic: VAValue
Replies: 5
Views: 2902

Re: VAValue

Hello Maxzhi, you can programmatically access the volume within the value area for a bar using the Volume Profile collection: https://www.multicharts.com/trading-software/index.php/4.7.6_Volume_Profile. You can also display the Volume Profile for a session/bar and have it display the value area by c...
by ABC
Apr 10 2018
Forum: MultiCharts
Topic: MULTICHARTS 12.0 BETA 1
Replies: 38
Views: 16860

Re: MULTICHARTS 12.0 BETA 1

Henry, it would be great if the reloading feature could be expanded to the Portfolio Trader, too. If for example you are running a large portfolio of stocks in the Portfolio Trader missing data might go unnoticed (by the user) and create problems. The same goes for data feeds that adjust the data af...
by ABC
Mar 29 2018
Forum: MultiCharts
Topic: max value in array [SOLVED]
Replies: 5
Views: 2576

Re: max value in array [SOLVED]

I agree, when you are looking for code performance the for loop will be faster. Depending on how the array is filled (and as you know the values you use to fill it), you might even save more time by just performing the loop in case the value that drops out is equal to the current highest value in th...
by ABC
Mar 29 2018
Forum: MultiCharts
Topic: max value in array [SOLVED]
Replies: 5
Views: 2576

Re: max value in array [SOLVED]

turbofib,

using Array_Sort you can sort the array in descending order. If you need to keep the original order in the array make a copy first with Array_Copy and then sort the copy.

Regards,

ABC
by ABC
Mar 22 2018
Forum: MultiCharts
Topic: Data Feed Ts in multichart is not egual to TS Feed
Replies: 8
Views: 2331

Re: Data Feed Ts in multichart is not egual to TS Feed

turbofib, TS does the backadjustment on their end. Once you have the data loaded in MC and stored in your database, this data will not be affected by what TS changes on their end anymore. That's why you have to reload this data in order to obtain the changes. Regards, ABC ok...but i don't understand...
by ABC
Mar 21 2018
Forum: MultiCharts
Topic: Data Feed Ts in multichart is not egual to TS Feed
Replies: 8
Views: 2331

Re: Data Feed Ts in multichart is not egual to TS Feed

turbofib, this won't necessarily reload the data in case you have the option to store TS data in Quotemanager enabled. You can read more about reloading data here: https://www.multicharts.com/trading-software/index.php/Reloading_Charts As an alternative you can delete the entire data for the particu...
by ABC
Mar 21 2018
Forum: MultiCharts
Topic: Data Feed Ts in multichart is not egual to TS Feed
Replies: 8
Views: 2331

Re: Data Feed Ts in multichart is not egual to TS Feed

turbofib,

did you reload the data in Multicharts since roll over? Otherwise you might not see the back adjustment in the continuous contracts.

Regards,

ABC
by ABC
Jan 29 2018
Forum: MultiCharts .NET
Topic: TrendLines disappear on Live Data (Indicator) [SOLVED]
Replies: 4
Views: 2603

Re: TrendLines disappear on Live Data (Indicator) [SOLVED]

Jobauma,

take a look at the "RecoverDrawings" attribute. This will prevent trendlines from disappearing in case they are created intrabar.

Regards,

ABC
by ABC
Jan 22 2018
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 168574

Re: MULTICHARTS 11.0 RELEASE

Hello Henry, thank you for letting me know. The help file using MultiCharts64 Version 11.0 Release (Build 15566) shows these examples for PositionProfit on my end: Example PositionProfit (0) will return a value of 5 if the value of the open position has increased by ¤5 since it was entered PositionP...
by ABC
Jan 15 2018
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 168574

Re: MULTICHARTS 11.0 RELEASE

Hello Henry,

it's what the build in help file in MultiCharts64 Version 11.0 Release (Build 15566) shows, this might require an update.

So it's intended behavior that this reserved word behaves differently than in TS?

Regards,

ABC
by ABC
Jan 12 2018
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 168574

Re: MULTICHARTS 11.0 RELEASE

Hello Multicharts, it appears there is a bug with the reserved word PositionProfit, at least in MultiCharts64 Version 11.0 Release (Build 15566). The help file states: PositionProfit (0) will return a value of 5 if the value of the open position has increased by ¤5 since it was entered However Posit...
by ABC
Jan 11 2018
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 168574

Re: MULTICHARTS 11.0 RELEASE

Order name length in MultiCharts = 32. We will have the performance report support the same length in MultiCharts 12 Beta 1. Hello Henry, great, thank you for the update. Not that it really matters, the chart appears to only show a length of 31 strings for me in MultiCharts64 Version 11.0 Release (...
by ABC
Jan 09 2018
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 168574

Re: MULTICHARTS 11.0 RELEASE

Hi Multicharts team, it appears there is a limitation for the length of an order name that MC displays and uses internally. However it seems that these limitations are different for what is shown on the chart versus what is shown on in performance report. 1. Could this limitation be removed? 2. Eith...
by ABC
Dec 30 2017
Forum: MultiCharts
Topic: Perform calculation when my position changes [SOLVED]
Replies: 4
Views: 1577

Re: Perform calculation when my position changes [SOLVED]

monick, check this link and Henry's reply: https://www.multicharts.com/discussion/viewtopic.php?f=1&t=51048&p=127428#p127415 You can find out if CurrentContracts and CurrentContracts[1] are giving you the value that you expect when positions are opened, changed or reversed by using the print...
by ABC
Dec 28 2017
Forum: MultiCharts
Topic: Signal Input Parameter Change in Real-Time
Replies: 3
Views: 1281

Re: Signal Input Parameter Change in Real-Time

jrgmak, you could assign the broker position to your strategy (https://www.multicharts.com/trading-software/index.php/Auto_Trading#Assign_the_Initial_Market_Position_at_the_Broker_Settings) or change the inputs via an indicator that could for example send the input values to your strategy via Global...
by ABC
Dec 19 2017
Forum: MultiCharts
Topic: Erase a previous plotted dot [SOLVED]
Replies: 7
Views: 2799

Re: Erase a previous plotted dot [SOLVED]

Al3cs,

Powerlanguage allows displacing NoPlot, too.

Code: Select all

Plot1( Close ) ;
NoPlot[10]( 1 ) ;
Regards,

ABC
Well, now I know what the problem is.
What about the solution?
by ABC
Dec 13 2017
Forum: MultiCharts
Topic: Limiting the number of entries in Portfolio Backtester ? [SOLVED]
Replies: 9
Views: 4984

Re: Limiting the number of entries in Portfolio Backtester ? [SOLVED]

waveslider, from your code snippet it appears you are trying to control the number of entries in the entry strategy. This will most likely not work, as too many entries on different symbols at the same time could go beyond your position limits. Take a look at how the build in "Portfolio Rank MM...
by ABC
Nov 24 2017
Forum: MultiCharts
Topic: Plotpaintbar [SOLVED]
Replies: 8
Views: 2692

Re: Plotpaintbar [SOLVED]

tradingest,

you are welcome and thanks for posting the solution as it might help others, too.

Regards,

ABC
by ABC
Nov 23 2017
Forum: MultiCharts
Topic: Plotpaintbar [SOLVED]
Replies: 8
Views: 2692

Re: Plotpaintbar [SOLVED]

tradingest,,

if you have to displace the plot, then use the values for that bar, too. Just displacing the plot will not automatically use the displaced prices.

Regards,

ABC
by ABC
Nov 23 2017
Forum: MultiCharts
Topic: Plotpaintbar [SOLVED]
Replies: 8
Views: 2692

Re: Plotpaintbar [SOLVED]

tradingest,

you displace your paintbar by one bar, but use the current bar's values. This way you don't necessarily have a full overlap.

Regards,

ABC
by ABC
Nov 23 2017
Forum: MultiCharts
Topic: Plotpaintbar [SOLVED]
Replies: 8
Views: 2692

Re: Plotpaintbar [SOLVED]

tradingest,

what are you trying to accomplish exactly? The result on the chart is what I'd expect to see from the code you posted, but without knowing what you are expecting one could only guess what needs to be changed.

Regards,

ABC
by ABC
Nov 14 2017
Forum: MultiCharts
Topic: Limiting the number of entries in Portfolio Backtester ? [SOLVED]
Replies: 9
Views: 4984

Re: Limiting the number of entries in Portfolio Backtester ? [SOLVED]

waveslider,

the "Portfolio Rank MM Signal" and documentation should get you going.

Regards,

ABC
by ABC
Nov 14 2017
Forum: MultiCharts
Topic: Limiting the number of entries in Portfolio Backtester ? [SOLVED]
Replies: 9
Views: 4984

Re: Limiting the number of entries in Portfolio Backtester ? [SOLVED]

waveslider, you can accomplish this using a portfolio money management signal and only let the number of entry orders pass that you want to allow. Regards, ABC I am aware of "Portfolio_CurrentEntries", but this will not limit the strategy from entering 10 new entries on one day. For exampl...
by ABC
Nov 01 2017
Forum: MultiCharts
Topic: keep orders open for set number of bars
Replies: 8
Views: 2806

Re: keep orders open for set number of bars

kagein,

according to your code anytime long_condition is true (even while you are in a trade), trade_on will become true and could allow an order.

Regards,

ABC
by ABC
Nov 01 2017
Forum: MultiCharts
Topic: keep orders open for set number of bars
Replies: 8
Views: 2806

Re: keep orders open for set number of bars

TJ, as far as I can tell from the code snippet posted, the trade_on reset to false is not done within the "if long_condition then begin" conditional statement. So for the snippet posted the code has a routine to "to turn trade_on = False" in case long_condition = False. However o...
by ABC
Oct 18 2017
Forum: MultiCharts
Topic: sessionLastBar and sessionLastBar[1] is egual [SOLVED]
Replies: 2
Views: 2042

Re: sessionLastBar and sessionLastBar[1] is egual [SOLVED]

shivax, not all reserved words can be back referenced (maybe the Multicharts support can provide a list of the reserved words that you can back reference), in that case the references provide the same value as the current bar does. You can overcome this by storing the reserved word in a variable and...
by ABC
Oct 12 2017
Forum: MultiCharts
Topic: How to set price scale to display 3 decimal places in chart [SOLVED]
Replies: 2
Views: 1630

Re: How to set price scale to display 3 decimal places in chart [SOLVED]

LMC1,

if you just want to change the visual appearance, you can change the number of decimal spaces on the "Scaling" tab under "Format Instruments".
MCPricescale.PNG
(16.31 KiB) Downloaded 468 times
Regards,

ABC
by ABC
Sep 20 2017
Forum: MultiCharts
Topic: MC 64 to execute a shell command [SOLVED]
Replies: 6
Views: 3680

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

Martin,

for the shell32.dll there is in fact a 64bit version in case you are running a 64bit OS, so the function should not be the problem here.

Regards,

ABC
by ABC
Sep 20 2017
Forum: MultiCharts
Topic: MC 64 to execute a shell command [SOLVED]
Replies: 6
Views: 3680

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

Martin,

in case the DLL is a 32bit DLL, calling it with MC 64bit will not work. That's a guess though as it's hard to tell without knowing what "cause an error to my indicator" exactly means.

Regards,

ABC
by ABC
Aug 15 2017
Forum: MultiCharts .NET
Topic: Portfolio trader and dynamic list of instruments
Replies: 4
Views: 3138

Re: Portfolio trader and dynamic list of instruments

rst,

depending on the number of possible symbols you could also create a portfolio with all symbols and then read the number of symbols "into your code" and only allow trading on the specific ones.

Regards,

ABC
by ABC
Aug 15 2017
Forum: MultiCharts
Topic: ELcollection , files commands
Replies: 2
Views: 1205

Re: ELcollection , files commands

Smoky,

as far as I am aware WriteFile will create a new file and you can't append to an existing file with it. You could loop through your list and use FileAppend or read the contents of your file into the list first and then write it back together with your other list values.

Regards,

ABC
by ABC
Aug 14 2017
Forum: MultiCharts
Topic: Detecting a script is running on chart or scanner [SOLVED]
Replies: 2
Views: 1457

Re: Detecting a script is running on chart or scanner [SOLVED]

John,

yes, you can detect if a study is running in the Scanner or on a chart via GetAppInfo( aiApplicationType ).

Regards,

ABC
by ABC
Aug 11 2017
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 168574

Re: MULTICHARTS 11.0 RELEASE

yoyotrader, while this is usually the case, you still might want to do a backup of your studies before installing a new version of Multicharts. Simply export all studies, this doesn't take more than a minute and it's better to be save than sorry when it comes to your studies. Regards, ABC If I downl...
by ABC
Jul 18 2017
Forum: MultiCharts
Topic: Can GVs be used in the MC stock scanner? [SOLVED]
Replies: 4
Views: 1684

Re: Can GVs be used in the MC stock scanner? [SOLVED]

John,

the documentation and everything is available on the TS forum. I am not sure if you can find it somewhere on the net, but it might be possible.

Regards,

ABC
by ABC
Jul 18 2017
Forum: MultiCharts
Topic: Can GVs be used in the MC stock scanner? [SOLVED]
Replies: 4
Views: 1684

Re: Can GVs be used in the MC stock scanner? [SOLVED]

bowlesj3,

Global Variables 2.3 works in the scanner. I don't recall testing it with 2.2, but I don't see why it shouldn't work.
I never tried it with Access, though.

Regards,

ABC
by ABC
Jul 17 2017
Forum: MultiCharts
Topic: bar countdown off by 30 seconds [SOLVED]
Replies: 12
Views: 4066

Re: bar countdown off by 30 seconds [SOLVED]

plaforte,

you might want to consider contacting the Multicharts support via helpdesk directly to demonstrate the situation. The support team does a great job and is surely able to help you.

Regards,

ABC
by ABC
Jun 27 2017
Forum: MultiCharts
Topic: execute trade in Tuesday open of daily bar
Replies: 1
Views: 966

Re: execute trade in Tuesday open of daily bar

dingmanhoe123, one way to accomplish that is to detect the next trading day. For that you'd require a list of the holidays for your respective market most likely. This would allow you to check every day if the next trading day is a Tuesday and in case it is, issue an order using your conditions. You...
by ABC
Jun 20 2017
Forum: MultiCharts
Topic: Number of DAY from a certain data range [SOLVED]
Replies: 2
Views: 1790

Re: Number of DAY from a certain data range [SOLVED]

No Erocla,

you could convert the EasyLanguage date into a Julian Date using the DateToJulian reserved word first and then compute the difference.

Regards,

ABC
by ABC
Jun 07 2017
Forum: MultiCharts
Topic: Any way of opening old TS indicators ?
Replies: 2
Views: 1276

Re: Any way of opening old TS indicators ?

Automeq,

isn't orw the extension for a workspace in 2000i i.e. they don't contain code of the studies (similar to MC workspaces)?

Regards,

ABC
by ABC
May 31 2017
Forum: MultiCharts
Topic: Floating error [SOLVED]
Replies: 7
Views: 2381

Re: Floating error [SOLVED]

I should add 0.000001 then? stefanols, what if Value2 = -0.000001? I would suggest to check if the denominator of a division is different than 0 (for every division that you perform within a code). If it is, do the division otherwise you can do something else (optional). For example: if denominator...
by ABC
May 24 2017
Forum: MultiCharts
Topic: ELExcel.dll: Any info on how to get it? [SOLVED]
Replies: 13
Views: 7314

Re: ELExcel.dll: Any info on how to get it? [SOLVED]

I would like to use ELExcel.dll with MultiCharts64 (Version: MultiCharts64 Version 10.0 Release (Build 14322)) and Windows 10.
gillesc,

do you have a 64bit version of the ELExcel.dll? I am not sure if one exists, but it would be required to use it with Multicharts64.

Regards,

ABC
by ABC
May 18 2017
Forum: MultiCharts
Topic: Rounding problem?
Replies: 3
Views: 1613

Re: Rounding problem?

Rick, you can either print the values to the output and add the required decimal spaces as described here: https://www.multicharts.com/trading-software/index.php/Print Or you can change the number of decimals a plot will show on a chart. You'll find the setting under General (No. of digits after the...
by ABC
May 06 2017
Forum: MultiCharts
Topic: PL code execution time - strange behavior
Replies: 12
Views: 4738

Re: PL code execution time - strange behavior

Zheka,

I have noticed something similar and it appeared that MC was executing the function, although it shouldn't have. You could add print statements to the function to check if it gets executed.

Regards,

ABC
by ABC
May 05 2017
Forum: MultiCharts
Topic: What are: // Bamboo DLLs and TicToc DLL [SOLVED]
Replies: 7
Views: 2861

Re: What are: // Bamboo DLLs and TicToc DLL [SOLVED]

Martin, it's for regular MC and a DLL that you can download here https://www.multicharts.com/discussion/viewtopic.php?f=16&t=10094&p=51526&hilit=TicToc#p51526, but it appears it's just the DLL without the demo code. It's used as a performance timer to see how long certain code or code bl...
by ABC
May 05 2017
Forum: MultiCharts
Topic: What are: // Bamboo DLLs and TicToc DLL [SOLVED]
Replies: 7
Views: 2861

Re: What are: // Bamboo DLLs and TicToc DLL [SOLVED]

Martin,

Bamboo is the TS forum user name the creator of EasyLanguage Collections, ADE etc. goes by.
As far as I am aware there is no Bamboo.DLL and it probably just means Bamboo's DLLs.

Regards,

ABC
by ABC
Apr 27 2017
Forum: MultiCharts
Topic: How to get the barnumber of the first displayed bar on the screen [SOLVED]
Replies: 6
Views: 3024

Re: How to get the barnumber of the first displayed bar on the screen [SOLVED]

Hi Martin, you could get the bar number with a workaround. Draw a text at aiLeftDispDateTime and ask for its bar number. txtID = Text_New_DT( getappinfo( aiLeftDispDateTime ), 0, "" ) ; Print( DateTimeToString( getappinfo( aiLeftDispDateTime ) ), "; Bar Number = ", text_getbarnum...
by ABC
Apr 24 2017
Forum: MultiCharts
Topic: External inputs / values into strategies? e.g. csv lookup? [SOLVED]
Replies: 11
Views: 5182

Re: External inputs / values into strategies? e.g. csv lookup? [SOLVED]

Shahram,

there is no need to do that. Simply import the ELD with the functions, read the documentation and study the examples on how to use the functions.

Regards,

ABC
by ABC
Apr 22 2017
Forum: MultiCharts
Topic: trade one symbol by using data from a different symbol
Replies: 3
Views: 1693

Re: trade one symbol by using data from a different symbol

Hi Angelina, based on Henry's reply here: https://www.multicharts.com/discussion/posting.php?mode=quote&f=1&p=120907 and from past experience I was under the impression that this wouldn't work due to the instruments having different parameters. Did this change recently? Regards, ABC Hello gu...
by ABC
Apr 19 2017
Forum: MultiCharts
Topic: Problem with input parameter of type true/false [SOLVED]
Replies: 2
Views: 1449

Re: Problem with input parameter of type true/false [SOLVED]

Trader M,

while what you experience doesn't sound like it is intended behavior, as a workaround you can
make the inputs numeric - 0 for false, 1 for true.

Regards,

ABC
by ABC
Apr 04 2017
Forum: MultiCharts
Topic: .rld command after 2 minutes from the firts daily bar in IOB script [SOLVED]
Replies: 27
Views: 7075

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

auoto, you might want to look into the reserved word recalcpersist (https://www.multicharts.com/trading-software/index.php/RecalcPersist) and apply it to your code here: https://www.multicharts.com/discussion/viewtopic.php?t=50624#p125429 You might also need to reset the variable at a later time. Re...
by ABC
Apr 04 2017
Forum: MultiCharts
Topic: Entry at exact time different with tick or minute bar
Replies: 29
Views: 11330

Re: Entry at exact time different with tick or minute bar

Hi Angelina, as your are currently looking into this, can you please explain the questions raised in here: https://www.multicharts.com/discussion/viewtopic.php?t=50519#p125102. As the difference is only in using "Enable access to intra-bar time..." once and one time testing without that (e...
by ABC
Mar 31 2017
Forum: MultiCharts
Topic: Entry Price Question [SOLVED]
Replies: 5
Views: 1984

Re: Entry Price Question [SOLVED]

mcjohn,

EntryPrice doesn't return values from the Order & Position Tracker, it just returns the entry price of a signal on that chart.

Regards,

ABC
by ABC
Mar 29 2017
Forum: MultiCharts
Topic: I want to insert "Bollinger Bands Width" [SOLVED]
Replies: 2
Views: 2309

Re: I want to insert "Bollinger Bands Width" [SOLVED]

cktsui888, as far as I am aware there is no build in study for the Bollinger Width, but you can accomplish this with a quick modification of the build in Bollinger Bands indicator. inputs: BollingerPrice ( Close ), Length ( 20 ), NumDevsUp ( 2 ), NumDevsDn ( -2 ), Displace ( 0 ) ; variables: midLine...
by ABC
Mar 20 2017
Forum: MultiCharts
Topic: Dynamic Arrays, Functions, Lists
Replies: 5
Views: 2518

Re: Dynamic Arrays, Functions, Lists

You can pass dynamic arrays to functions. Check out page 109 of the EL Essentials PDF and the examples there.
You'll have to check out what happens when you change the array size within the function.

Regards,

ABC
by ABC
Mar 20 2017
Forum: MultiCharts
Topic: Dynamic Arrays, Functions, Lists
Replies: 5
Views: 2518

Re: Dynamic Arrays, Functions, Lists

If you got the doc from the original zip file, it also contains the functions ELD that you'll have to import before you can use the DLL. You can probably find them here, although I didn't check it: viewtopic.php?=&p=8189

Regards,

ABC
by ABC
Mar 20 2017
Forum: MultiCharts
Topic: Dynamic Arrays, Functions, Lists
Replies: 5
Views: 2518

Re: Dynamic Arrays, Functions, Lists

I also considered using Lists. I downloaded the ELCollections DLL to the correct folder but statements such "ListID = ListN.New; " indicate it isn't recognized. Another question - what is the scope of those lists? can a function access a list? I don't see how can a list be passed to a fun...
by ABC
Mar 09 2017
Forum: MultiCharts
Topic: Entry at exact time different with tick or minute bar
Replies: 29
Views: 11330

Re: Entry at exact time different with tick or minute bar

Hi Angelina,

is there an update to the questions raised in viewtopic.php?t=50519#p125102 and viewtopic.php?t=50519#p125124?

Thank you,

ABC
by ABC
Feb 24 2017
Forum: MultiCharts
Topic: Entry at exact time different with tick or minute bar
Replies: 29
Views: 11330

Re: Entry at exact time different with tick or minute bar

Angelina, can you please elaborate the differences that occur in the above example, when "Enable access to intra-bar time..." is checked versus when it's unchecked (everything else is the same i.e. IOG enabled, bar magnifier with 1 tick resolution, the code, the data etc.)? Why is the exec...
by ABC
Feb 16 2017
Forum: MultiCharts
Topic: Entry at exact time different with tick or minute bar
Replies: 29
Views: 11330

Re: Entry at exact time different with tick or minute bar

evdl, this appears to happen only when you check "Enable access to intra-bar time..." in the backtest. In my opinion this shouldn't be expected behavior as this results in the code behaving different in a backtest compared to the same code in realtime and that can be a problem. Can someone...
by ABC
Feb 14 2017
Forum: MultiCharts
Topic: portfolio trader windows detached [SOLVED]
Replies: 2
Views: 1349

Re: portfolio trader windows detached [SOLVED]

Hi waldem,

I had the same a few days ago. Following the steps described by Henry here cured it for me:

viewtopic.php?f=1&t=50407&p=124545#p124545

Regards,

ABC
by ABC
Feb 09 2017
Forum: MultiCharts
Topic: "First 5 trading days of the year"
Replies: 8
Views: 2756

Re: "First 5 trading days of the year"

Jonny473, if I understand you correctly it should be enough to compare the open of a year to the close on day 5 and then buy/sell according to that. You can get the new year with: "if Year( Date ) <> Year( Date[1] )" Then you can use a counter to increment on each day until day 5, where yo...
by ABC
Feb 02 2017
Forum: MultiCharts
Topic: Using Forms Classes [SOLVED]
Replies: 1
Views: 1105

Re: Using Forms Classes [SOLVED]

tradingest,

Forms are not available in regular Multicharts like in TS (it might be doable via external DLLs), but this should be doable in Multicharts.NET.

Regards,

ABC
by ABC
Jan 28 2017
Forum: MultiCharts
Topic: Write the letter at the end [SOLVED]
Replies: 2
Views: 1441

Re: Write the letter at the end [SOLVED]

tradingest,

if you want to do this via code look into "Text_New" and the related reserved words.

Regards,

ABC
by ABC
Jan 08 2017
Forum: MultiCharts
Topic: IOG strategy optimization
Replies: 3
Views: 1590

Re: IOG strategy optimization

To clarify what I wrote above, when I say "to get results that are as close as the tick by tick behavior as possible", this means as close as you can get with MC. Historic testing will always be different to live trading as there is only so much you can simulate. JoshM makes a good point a...
by ABC
Jan 08 2017
Forum: MultiCharts
Topic: IOG strategy optimization
Replies: 3
Views: 1590

Re: IOG strategy optimization

kernel, in general it's possible and practical to optimize code that uses IOG (although there can be exceptions, if your code uses values that are only available realtime for example). When you backtest/optimize code that uses IOG I'd suggest to use the Bar Magnifier with the highest possible resolu...
by ABC
Jan 05 2017
Forum: MultiCharts
Topic: Open/Close Indicator
Replies: 6
Views: 2788

Re: Open/Close Indicator

BC_Trading,

you can't accomplish this with keywords, but you can set it up with the plot styles under the indicator properties.
Simply set the Open to "Left Tick", the High to "Bar High", Low to "Bar Low" and Close to "Right Tick".

Regards,

ABC
by ABC
Jan 04 2017
Forum: MultiCharts
Topic: Open/Close Indicator
Replies: 6
Views: 2788

Re: Open/Close Indicator

BC_Trading, do you get the result you want when you don't limit the plotting to the date change? //OpenCloseIndicator Variables: OpenCloseIndicator (0); OpenCloseIndicator = close-openD(0) ; plot1(OpenCloseIndicator,"OC",Red,Default,5); You can probably polish it a bit more and have it dis...
by ABC
Dec 27 2016
Forum: MultiCharts
Topic: Scanning very slow
Replies: 4
Views: 1704

Re: Scanning very slow

Do you refer to the time it takes on startup until the data is loaded and the results are computed? If so, do you store the TS data in QM's database or does MC have to download it every time from scratch? If it's the latter see if changing that (https://www.multicharts.com/trading-software/index.php...
by ABC
Dec 27 2016
Forum: MultiCharts
Topic: Equity Curve on a Chart
Replies: 5
Views: 3373

Re: Equity Curve on a Chart

TraderWalrus, you can make use of some of the reserved words starting with I_ to plot strategy metrics in an indicator that is applied to the same chart as the strategy. You could also use I_SetPlotValue and I_GetPlotValue to make any value from your strategy available to an indicator and plot it. T...