Search found 718 matches

by ABC
18 Mar 2024
Forum: MultiCharts
Topic: OpenPositionProfit percentage value
Replies: 2
Views: 49

Re: OpenPositionProfit percentage value

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
06 Mar 2024
Forum: MultiCharts
Topic: Maxlist and MinList from 00:00 to 08:00
Replies: 2
Views: 90

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
06 Mar 2024
Forum: MultiCharts .NET
Topic: What is causing these extreme WICK ? [SOLVED]
Replies: 3
Views: 73

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 several o...
by ABC
28 Feb 2024
Forum: MultiCharts
Topic: Walmart (Free Quote) stock split 3:1 [SOLVED]
Replies: 2
Views: 79

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

Tibouss,

reloading your data in Multicharts should take care of that.

Regards,

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

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
07 Dec 2023
Forum: MultiCharts
Topic: plot smoothing on charts
Replies: 1
Views: 146

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
30 Nov 2023
Forum: MultiCharts
Topic: Coding a stop order at the last pivot point for stoploss [SOLVED]
Replies: 5
Views: 446

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
27 Nov 2023
Forum: MultiCharts
Topic: Coding a stop order at the last pivot point for stoploss [SOLVED]
Replies: 5
Views: 446

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
06 Sep 2023
Forum: MultiCharts
Topic: AllowSendOrdersAlways = true with IntrabarOrderGeneration = false
Replies: 3
Views: 347

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
05 Sep 2023
Forum: MultiCharts
Topic: AllowSendOrdersAlways = true with IntrabarOrderGeneration = false
Replies: 3
Views: 347

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
05 Sep 2023
Forum: MultiCharts
Topic: Draw left or right arrow (how to) [SOLVED]
Replies: 2
Views: 320

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
13 Jun 2023
Forum: MultiCharts
Topic: Problem with data2 [SOLVED]
Replies: 4
Views: 495

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" conditional branch s...
by ABC
30 May 2023
Forum: MultiCharts .NET
Topic: Paper Trading
Replies: 3
Views: 573

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
26 May 2023
Forum: MultiCharts .NET
Topic: Paper Trading
Replies: 3
Views: 573

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
12 May 2023
Forum: MultiCharts .NET
Topic: IOrderPriced Order Completion
Replies: 3
Views: 561

Re: IOrderPriced Order Completion

Hi lordsriram,

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

Regards,

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

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
05 Apr 2023
Forum: MultiCharts
Topic: where is the documents about string format [SOLVED]
Replies: 2
Views: 383

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 an integer. I want t...
by ABC
05 Apr 2023
Forum: MultiCharts
Topic: "maximum number of bars study will reference"
Replies: 4
Views: 589

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". If th...
by ABC
27 Mar 2023
Forum: MultiCharts
Topic: CoT Commitment of Traders Data
Replies: 8
Views: 2952

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
22 Mar 2023
Forum: MultiCharts
Topic: Optimisation Report-stop saving [SOLVED]
Replies: 2
Views: 416

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
21 Mar 2023
Forum: MultiCharts
Topic: How to create a trend reversal chart based on FlexRenko chart?
Replies: 2
Views: 424

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
07 Mar 2023
Forum: MultiCharts
Topic: Keeping SetStopLoss Static.
Replies: 5
Views: 605

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
06 Mar 2023
Forum: MultiCharts
Topic: Keeping SetStopLoss Static.
Replies: 5
Views: 605

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
23 Feb 2023
Forum: MultiCharts
Topic: Adjusting Default Alert Email Text
Replies: 5
Views: 620

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=8895 R...
by ABC
20 Feb 2023
Forum: MultiCharts .NET
Topic: Optimization Error
Replies: 3
Views: 654

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
16 Feb 2023
Forum: MultiCharts
Topic: Pre-Processing
Replies: 11
Views: 1021

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
16 Feb 2023
Forum: MultiCharts
Topic: SetProfitTarget/SetStopLoss rejected in FOREX live trading at IB
Replies: 5
Views: 594

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
16 Feb 2023
Forum: MultiCharts
Topic: Pre-Processing
Replies: 11
Views: 1021

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
16 Feb 2023
Forum: MultiCharts
Topic: Pre-Processing
Replies: 11
Views: 1021

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
16 Feb 2023
Forum: MultiCharts
Topic: SetProfitTarget/SetStopLoss rejected in FOREX live trading at IB
Replies: 5
Views: 594

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
16 Feb 2023
Forum: MultiCharts .NET
Topic: Optimization Error
Replies: 3
Views: 654

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
13 Feb 2023
Forum: MultiCharts .NET
Topic: Backtesting Results [SOLVED]
Replies: 2
Views: 569

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
13 Feb 2023
Forum: MultiCharts
Topic: Problem with Portfolio_OpenPositionProfit
Replies: 5
Views: 606

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
18 Jan 2023
Forum: MultiCharts .NET
Topic: Global Variables compile error
Replies: 3
Views: 706

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=11315 Re...
by ABC
18 Jan 2023
Forum: MultiCharts .NET
Topic: Global Variables compile error
Replies: 3
Views: 706

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
06 Jan 2023
Forum: MultiCharts
Topic: Pre-built Signals.
Replies: 4
Views: 526

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
04 Jan 2023
Forum: MultiCharts
Topic: Error Message. [SOLVED]
Replies: 2
Views: 439

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 for you: https://ww...
by ABC
22 Dec 2022
Forum: MultiCharts
Topic: Error in study
Replies: 6
Views: 981

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
05 Dec 2022
Forum: MultiCharts
Topic: Variable Declaration on MouseClickEvent [SOLVED]
Replies: 2
Views: 454

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 lot. I decla...
by ABC
02 Dec 2022
Forum: MultiCharts
Topic: Time per bar on tick chart
Replies: 3
Views: 481

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
01 Dec 2022
Forum: MultiCharts
Topic: Time per bar on tick chart
Replies: 3
Views: 481

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
05 Oct 2022
Forum: MultiCharts
Topic: Daily Hi Low Lines
Replies: 5
Views: 837

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
20 Sep 2022
Forum: MultiCharts .NET
Topic: "Bars.Close" event in IOG mode
Replies: 3
Views: 816

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
19 Sep 2022
Forum: MultiCharts
Topic: Need EntryTime_s and ExitTime_s [SOLVED]
Replies: 5
Views: 984

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
19 Sep 2022
Forum: MultiCharts
Topic: HI, want to add interval at time
Replies: 1
Views: 463

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
19 Sep 2022
Forum: MultiCharts
Topic: Need EntryTime_s and ExitTime_s [SOLVED]
Replies: 5
Views: 984

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
19 Sep 2022
Forum: MultiCharts .NET
Topic: "Bars.Close" event in IOG mode
Replies: 3
Views: 816

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
11 Aug 2022
Forum: MultiCharts
Topic: Custom 1 line indicator
Replies: 1
Views: 505

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
22 Jul 2022
Forum: MultiCharts
Topic: Indicator messing up my charts [SOLVED]
Replies: 11
Views: 1526

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
20 Jul 2022
Forum: MultiCharts
Topic: Indicator messing up my charts [SOLVED]
Replies: 11
Views: 1526

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
19 Jul 2022
Forum: MultiCharts .NET
Topic: Loading Historical Data
Replies: 4
Views: 1005

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
19 Jul 2022
Forum: MultiCharts
Topic: Indicator messing up my charts [SOLVED]
Replies: 11
Views: 1526

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 for some studies. Regards, ABC
by ABC
18 Jul 2022
Forum: MultiCharts .NET
Topic: Loading Historical Data
Replies: 4
Views: 1005

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
29 Jun 2022
Forum: MultiCharts
Topic: PowerLanguage equivalent for PineScript na(x)?
Replies: 3
Views: 747

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
24 Jun 2022
Forum: MultiCharts
Topic: Declaring a boolean variable [SOLVED]
Replies: 1
Views: 518

Re: Declaring a boolean variable [SOLVED]

masber2000,

yes, your variable declaration is correct.

Regards,

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

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
17 Jun 2022
Forum: MultiCharts
Topic: Wrong Commission Calculation?
Replies: 1
Views: 428

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
25 Apr 2022
Forum: MultiCharts
Topic: Programmatically extending lines without specifying price
Replies: 4
Views: 729

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
25 Apr 2022
Forum: MultiCharts
Topic: Programmatically extending lines without specifying price
Replies: 4
Views: 729

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
23 Mar 2022
Forum: MultiCharts .NET
Topic: 5 mins chart with IOG enabled
Replies: 4
Views: 1148

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
22 Mar 2022
Forum: MultiCharts .NET
Topic: 5 mins chart with IOG enabled
Replies: 4
Views: 1148

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
15 Mar 2022
Forum: MultiCharts
Topic: PowerLanguage Keyword Reference - page 814 [SOLVED]
Replies: 2
Views: 660

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
02 Mar 2022
Forum: MultiCharts
Topic: Help understanding "Intra-bar Price Movement Assumptions"
Replies: 7
Views: 1215

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
24 Feb 2022
Forum: MultiCharts .NET
Topic: Time zone, trading session hours, and holiday schedule
Replies: 8
Views: 5464

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
16 Feb 2022
Forum: MultiCharts .NET
Topic: Pivot Price
Replies: 3
Views: 1036

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
16 Feb 2022
Forum: MultiCharts .NET
Topic: Pivot Price
Replies: 3
Views: 1036

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
07 Feb 2022
Forum: MultiCharts
Topic: Calculate the distance in points from close to moving average [SOLVED]
Replies: 18
Views: 2892

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
11 Jan 2022
Forum: MultiCharts
Topic: Portfolio Trader Flag [SOLVED]
Replies: 2
Views: 658

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
04 Nov 2021
Forum: MultiCharts
Topic: How to Skip Calculations or functions.
Replies: 2
Views: 570

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 execute th...
by ABC
14 Oct 2021
Forum: MultiCharts
Topic: IQFeed Demo to Subscription, Can't Download Data
Replies: 5
Views: 845

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
08 Oct 2021
Forum: MultiCharts
Topic: Indicator to show the positon of a trading system
Replies: 2
Views: 584

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
07 Oct 2021
Forum: MultiCharts
Topic: Rounding up to the nearest tick
Replies: 2
Views: 648

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
16 Sep 2021
Forum: MultiCharts
Topic: Chart prices don't match real prices
Replies: 1
Views: 476

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
23 Aug 2021
Forum: MultiCharts
Topic: Help with ListN Plotting
Replies: 1
Views: 527

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
16 Jul 2021
Forum: MultiCharts
Topic: variable D
Replies: 2
Views: 662

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
25 Jun 2021
Forum: MultiCharts
Topic: QCG data into MC ?
Replies: 3
Views: 785

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
13 Nov 2020
Forum: MultiCharts
Topic: Referencing previous Data2 calculated values [SOLVED]
Replies: 2
Views: 699

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. Regards, ABC On a chart with da...
by ABC
12 Oct 2020
Forum: MultiCharts
Topic: What is going on with the license server?
Replies: 21
Views: 4445

Re: What is going on with the license server?

Same here.

Regards,

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

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 will be s...
by ABC
11 May 2020
Forum: MultiCharts
Topic: an incomprehensible problem
Replies: 11
Views: 2479

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
24 Apr 2020
Forum: MultiCharts
Topic: Daten Feed Aktien
Replies: 5
Views: 1334

Re: Daten Feed Aktien

Jimmyrakete,

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

Regards,

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

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
13 Nov 2019
Forum: MultiCharts
Topic: Maxbarsback and trailing stop
Replies: 6
Views: 1800

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
12 Nov 2019
Forum: MultiCharts
Topic: Maxbarsback and trailing stop
Replies: 6
Views: 1800

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
30 Oct 2019
Forum: MultiCharts
Topic: GetAppInfo in correct parameter [SOLVED]
Replies: 2
Views: 1014

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
23 Oct 2019
Forum: MultiCharts
Topic: MaxBarsBack - Help needed [SOLVED]
Replies: 17
Views: 3857

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
14 Oct 2019
Forum: MultiCharts
Topic: Backetest is working only from the past 5 days and misteriously dosn't before that date [SOLVED]
Replies: 7
Views: 1811

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
25 Sep 2019
Forum: MultiCharts
Topic: Floor Povit Point not inline with the exchange open time [SOLVED]
Replies: 5
Views: 1457

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
06 Sep 2019
Forum: MultiCharts
Topic: Adding equity to increase capital in portfolio backtest
Replies: 2
Views: 921

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
05 Aug 2019
Forum: MultiCharts
Topic: ELCollections compile error [SOLVED]
Replies: 5
Views: 1641

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
05 Aug 2019
Forum: MultiCharts
Topic: ELCollections compile error [SOLVED]
Replies: 5
Views: 1641

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 suppo...
by ABC
16 Jul 2019
Forum: MultiCharts
Topic: Global Variables - How to make them work on hystoric chart and not only in real time [SOLVED]
Replies: 4
Views: 2433

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
12 Jul 2019
Forum: MultiCharts .NET
Topic: Is that have any limitation under 2-D array? [SOLVED]
Replies: 8
Views: 2807

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
12 Jul 2019
Forum: MultiCharts .NET
Topic: Is that have any limitation under 2-D array? [SOLVED]
Replies: 8
Views: 2807

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
12 Jul 2019
Forum: MultiCharts .NET
Topic: Is that have any limitation under 2-D array? [SOLVED]
Replies: 8
Views: 2807

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
12 Jul 2019
Forum: MultiCharts .NET
Topic: Is that have any limitation under 2-D array? [SOLVED]
Replies: 8
Views: 2807

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
11 Jul 2019
Forum: MultiCharts
Topic: Swing levels [SOLVED]
Replies: 5
Views: 1549

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
10 Jul 2019
Forum: MultiCharts
Topic: Swing levels [SOLVED]
Replies: 5
Views: 1549

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
10 Jul 2019
Forum: MultiCharts
Topic: how to get volatility of last bar
Replies: 5
Views: 1553

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
05 Jul 2019
Forum: MultiCharts
Topic: StrToBool question
Replies: 1
Views: 765

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
03 Jul 2019
Forum: MultiCharts
Topic: how to get volatility of last bar
Replies: 5
Views: 1553

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
26 Jun 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2503

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
25 Jun 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2503

Re: NetProfit montly average;

gioakino,

where do you store the values from the prior months?

Regards,

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

Re: NetProfit montly average;

gioakino,

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

Regards,

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

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
24 Jun 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2503

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
21 Jun 2019
Forum: MultiCharts
Topic: NetProfit montly average;
Replies: 12
Views: 2503

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
21 Jun 2019
Forum: MultiCharts
Topic: can i specify lastbar date on weekly chart?
Replies: 1
Views: 720

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
18 Jun 2019
Forum: MultiCharts
Topic: PortfolioEntriesPriority [SOLVED]
Replies: 2
Views: 1211

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
05 Jun 2019
Forum: MultiCharts
Topic: Help with Global Variables [SOLVED]
Replies: 3
Views: 1399

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
05 Jun 2019
Forum: MultiCharts
Topic: Help with Global Variables [SOLVED]
Replies: 3
Views: 1399

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
27 May 2019
Forum: MultiCharts
Topic: How to get Scanner windows row number
Replies: 1
Views: 712

Re: How to get Scanner windows row number

Hi maison6579,

yes, this should be possible via GetAppInfo and aiRow.

Regards,

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

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 as In...
by ABC
21 May 2019
Forum: MultiCharts
Topic: Using the reserved word “TL_New” [SOLVED]
Replies: 14
Views: 3175

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 day resolution.
by ABC
26 Apr 2019
Forum: MultiCharts .NET
Topic: Volume Delta charts colours shading
Replies: 6
Views: 3184

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
25 Apr 2019
Forum: MultiCharts .NET
Topic: Volume Delta charts colours shading
Replies: 6
Views: 3184

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
08 Apr 2019
Forum: MultiCharts .NET
Topic: Quotes database folder [SOLVED]
Replies: 2
Views: 1693

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
08 Apr 2019
Forum: MultiCharts
Topic: scoring a basket of stock pick [SOLVED]
Replies: 1
Views: 957

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
05 Apr 2019
Forum: MultiCharts
Topic: Dynamic MaxBarsBack ? [SOLVED]
Replies: 6
Views: 1720

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
02 Apr 2019
Forum: MultiCharts
Topic: Publish Hotfixes
Replies: 1
Views: 733

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
12 Mar 2019
Forum: MultiCharts
Topic: Ehlers Deviation-Scaled Moving Average (TASC July 2018) [SOLVED]
Replies: 2
Views: 1365

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
06 Mar 2019
Forum: MultiCharts
Topic: Entry at exact time different with tick or minute bar
Replies: 29
Views: 10357

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
20 Feb 2019
Forum: MultiCharts
Topic: side of the last trade [SOLVED]
Replies: 3
Views: 1319

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
18 Feb 2019
Forum: MultiCharts
Topic: disappear the new signal in language editor [SOLVED]
Replies: 2
Views: 1030

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
15 Feb 2019
Forum: MultiCharts
Topic: mail alert with stocks information
Replies: 4
Views: 1370

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
04 Feb 2019
Forum: MultiCharts .NET
Topic: Draw a rectangle within an indicator [SOLVED]
Replies: 7
Views: 3405

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
04 Feb 2019
Forum: MultiCharts .NET
Topic: Draw a rectangle within an indicator [SOLVED]
Replies: 7
Views: 3405

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
04 Feb 2019
Forum: MultiCharts .NET
Topic: Draw a rectangle within an indicator [SOLVED]
Replies: 7
Views: 3405

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
02 Jan 2019
Forum: MultiCharts
Topic: Up Down Volume Indicator
Replies: 2
Views: 1699

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
19 Dec 2018
Forum: MultiCharts
Topic: Why in 2018 still so difficult to access values from other DataN/indicators
Replies: 10
Views: 3194

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 chart. Fo...
by ABC
13 Dec 2018
Forum: MultiCharts
Topic: CLOSE WHEN PROFIT OR LOSS IS REACH.
Replies: 11
Views: 3823

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
13 Dec 2018
Forum: MultiCharts
Topic: CLOSE WHEN PROFIT OR LOSS IS REACH.
Replies: 11
Views: 3823

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
12 Dec 2018
Forum: MultiCharts
Topic: CLOSE WHEN PROFIT OR LOSS IS REACH.
Replies: 11
Views: 3823

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

Code: Select all

...and time >endtrade then...
to

Code: Select all

...and ( time >endtrade or todaynet >= dailyprofit ) then...
might work for you.

Regards,

ABC
by ABC
28 Nov 2018
Forum: MultiCharts .NET
Topic: Custom Column in Market Scanner
Replies: 2
Views: 1470

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
22 Nov 2018
Forum: MultiCharts
Topic: Need help on Power Editor Appearance [SOLVED]
Replies: 4
Views: 1524

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
20 Nov 2018
Forum: MultiCharts .NET
Topic: Feature Request: Open None Workspaces [SOLVED]
Replies: 2
Views: 1355

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
22 Oct 2018
Forum: MultiCharts
Topic: H=L in the last 10 bars [SOLVED]
Replies: 11
Views: 3827

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
11 Oct 2018
Forum: MultiCharts .NET
Topic: Creating a Flag with the bar number
Replies: 1
Views: 1702

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
04 Oct 2018
Forum: MultiCharts
Topic: Duplication of Stoploss in Easy Language Automated Trading [SOLVED]
Replies: 8
Views: 2727

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, as this wi...
by ABC
04 Oct 2018
Forum: MultiCharts
Topic: Duplication of Stoploss in Easy Language Automated Trading [SOLVED]
Replies: 8
Views: 2727

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
04 Oct 2018
Forum: MultiCharts
Topic: Assignment is allowed only for variables or array elements
Replies: 8
Views: 2751

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
01 Oct 2018
Forum: MultiCharts
Topic: How access to DOM bid and ask data from easylanguage and DTN IQFEED
Replies: 1
Views: 872

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
26 Sep 2018
Forum: MultiCharts
Topic: New functions, please advise. [SOLVED]
Replies: 9
Views: 2589

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
12 Sep 2018
Forum: MultiCharts
Topic: TL_NEW ID is always 1? [SOLVED]
Replies: 13
Views: 4108

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
11 Sep 2018
Forum: MultiCharts .NET
Topic: Managing text + getting Cumulative Delta value [SOLVED]
Replies: 3
Views: 2012

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
10 Sep 2018
Forum: MultiCharts
Topic: Max Bars Back & 2 Instruments [SOLVED]
Replies: 1
Views: 9303

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
07 Sep 2018
Forum: MultiCharts
Topic: Managing codes with multiple resolution (time frame)
Replies: 2
Views: 1237

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
05 Sep 2018
Forum: MultiCharts .NET
Topic: How to access Imbalance Delta Bars value?
Replies: 2
Views: 1942

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
28 Aug 2018
Forum: MultiCharts
Topic: Using print for signals
Replies: 6
Views: 2137

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
22 Aug 2018
Forum: MultiCharts
Topic: Maybe I miss something....
Replies: 1
Views: 719

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
22 Aug 2018
Forum: MultiCharts
Topic: Using print for signals
Replies: 6
Views: 2137

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 same bar as an entry yo...
by ABC
16 Aug 2018
Forum: MultiCharts
Topic: Scaling an indicator and its moving average in the same subchart [SOLVED]
Replies: 3
Views: 1334

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
30 Jul 2018
Forum: User Contributed Studies
Topic: MACD_color
Replies: 5
Views: 6145

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
27 Jul 2018
Forum: MultiCharts
Topic: ADE implementation [SOLVED]
Replies: 9
Views: 2977

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
18 Jul 2018
Forum: MultiCharts .NET
Topic: Bars.FullSymbolData.Count
Replies: 6
Views: 3014

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
10 Jul 2018
Forum: MultiCharts
Topic: percentile/quantile in PowerLanguage
Replies: 4
Views: 1976

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
09 Jul 2018
Forum: MultiCharts
Topic: In a Spread Diff chart, can you show the symbols used on the chart? [SOLVED]
Replies: 9
Views: 2488

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, "Spread D...
by ABC
09 Jul 2018
Forum: MultiCharts
Topic: In a Spread Diff chart, can you show the symbols used on the chart? [SOLVED]
Replies: 9
Views: 2488

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
02 Jul 2018
Forum: MultiCharts
Topic: Determining sub-chart an arrow is placed on [SOLVED]
Replies: 5
Views: 2029

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
27 Jun 2018
Forum: MultiCharts
Topic: Issue with Global Variables [SOLVED]
Replies: 7
Views: 2477

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
26 Jun 2018
Forum: MultiCharts
Topic: Read Last Row From File with EL Collections [SOLVED]
Replies: 2
Views: 1548

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
14 Jun 2018
Forum: MultiCharts
Topic: Support for a Feature Request i think many will love.
Replies: 3
Views: 1293

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
12 Jun 2018
Forum: MultiCharts
Topic: CoT Commitment of Traders Data
Replies: 8
Views: 2952

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
11 Jun 2018
Forum: MultiCharts
Topic: If not(X) then return;
Replies: 6
Views: 2188

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
11 Jun 2018
Forum: MultiCharts
Topic: If not(X) then return;
Replies: 6
Views: 2188

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 possible to use an outp...
by ABC
07 Jun 2018
Forum: MultiCharts
Topic: Scaling of MA on RSI [SOLVED]
Replies: 10
Views: 3703

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
07 Jun 2018
Forum: MultiCharts
Topic: Scaling of MA on RSI [SOLVED]
Replies: 10
Views: 3703

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
01 Jun 2018
Forum: MultiCharts .NET
Topic: Bars.Volume Returning Incorrect Value ?? [SOLVED]
Replies: 1
Views: 1595

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
10 May 2018
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 161048

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 applied to a ...
by ABC
09 May 2018
Forum: MultiCharts
Topic: trade closed in the same bar .. was it long or short?
Replies: 6
Views: 2259

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/6da22860acd84ee78125b0597a4ff6...
by ABC
09 May 2018
Forum: MultiCharts
Topic: trade closed in the same bar .. was it long or short?
Replies: 6
Views: 2259

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
09 May 2018
Forum: MultiCharts
Topic: trade closed in the same bar .. was it long or short?
Replies: 6
Views: 2259

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
18 Apr 2018
Forum: MultiCharts .NET
Topic: VAValue
Replies: 5
Views: 2616

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
10 Apr 2018
Forum: MultiCharts
Topic: MULTICHARTS 12.0 BETA 1
Replies: 38
Views: 15303

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
29 Mar 2018
Forum: MultiCharts
Topic: max value in array [SOLVED]
Replies: 5
Views: 2303

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
29 Mar 2018
Forum: MultiCharts
Topic: max value in array [SOLVED]
Replies: 5
Views: 2303

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
22 Mar 2018
Forum: MultiCharts
Topic: Data Feed Ts in multichart is not egual to TS Feed
Replies: 8
Views: 2060

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
21 Mar 2018
Forum: MultiCharts
Topic: Data Feed Ts in multichart is not egual to TS Feed
Replies: 8
Views: 2060

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
21 Mar 2018
Forum: MultiCharts
Topic: Data Feed Ts in multichart is not egual to TS Feed
Replies: 8
Views: 2060

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
29 Jan 2018
Forum: MultiCharts .NET
Topic: TrendLines disappear on Live Data (Indicator) [SOLVED]
Replies: 4
Views: 2235

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
22 Jan 2018
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 161048

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
15 Jan 2018
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 161048

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
12 Jan 2018
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 161048

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
11 Jan 2018
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 161048

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
09 Jan 2018
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 161048

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
30 Dec 2017
Forum: MultiCharts
Topic: Perform calculation when my position changes [SOLVED]
Replies: 4
Views: 1387

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 reserve...
by ABC
28 Dec 2017
Forum: MultiCharts
Topic: Signal Input Parameter Change in Real-Time
Replies: 3
Views: 1130

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
19 Dec 2017
Forum: MultiCharts
Topic: Erase a previous plotted dot [SOLVED]
Replies: 7
Views: 2509

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
13 Dec 2017
Forum: MultiCharts
Topic: Limiting the number of entries in Portfolio Backtester ? [SOLVED]
Replies: 9
Views: 4602

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 Sign...
by ABC
24 Nov 2017
Forum: MultiCharts
Topic: Plotpaintbar [SOLVED]
Replies: 8
Views: 2385

Re: Plotpaintbar [SOLVED]

tradingest,

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

Regards,

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

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
23 Nov 2017
Forum: MultiCharts
Topic: Plotpaintbar [SOLVED]
Replies: 8
Views: 2385

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
23 Nov 2017
Forum: MultiCharts
Topic: Plotpaintbar [SOLVED]
Replies: 8
Views: 2385

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
14 Nov 2017
Forum: MultiCharts
Topic: Limiting the number of entries in Portfolio Backtester ? [SOLVED]
Replies: 9
Views: 4602

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
14 Nov 2017
Forum: MultiCharts
Topic: Limiting the number of entries in Portfolio Backtester ? [SOLVED]
Replies: 9
Views: 4602

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 example if it go...
by ABC
01 Nov 2017
Forum: MultiCharts
Topic: keep orders open for set number of bars
Replies: 8
Views: 2490

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
01 Nov 2017
Forum: MultiCharts
Topic: keep orders open for set number of bars
Replies: 8
Views: 2490

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 one could only guess ...
by ABC
18 Oct 2017
Forum: MultiCharts
Topic: sessionLastBar and sessionLastBar[1] is egual [SOLVED]
Replies: 2
Views: 1817

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
12 Oct 2017
Forum: MultiCharts
Topic: How to set price scale to display 3 decimal places in chart [SOLVED]
Replies: 2
Views: 1427

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
20 Sep 2017
Forum: MultiCharts
Topic: MC 64 to execute a shell command [SOLVED]
Replies: 6
Views: 3320

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
20 Sep 2017
Forum: MultiCharts
Topic: MC 64 to execute a shell command [SOLVED]
Replies: 6
Views: 3320

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
15 Aug 2017
Forum: MultiCharts .NET
Topic: Portfolio trader and dynamic list of instruments
Replies: 4
Views: 2948

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
15 Aug 2017
Forum: MultiCharts
Topic: ELcollection , files commands
Replies: 2
Views: 1080

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
14 Aug 2017
Forum: MultiCharts
Topic: Detecting a script is running on chart or scanner [SOLVED]
Replies: 2
Views: 1225

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
11 Aug 2017
Forum: MultiCharts
Topic: MULTICHARTS 11.0 RELEASE
Replies: 85
Views: 161048

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
18 Jul 2017
Forum: MultiCharts
Topic: Can GVs be used in the MC stock scanner? [SOLVED]
Replies: 4
Views: 1433

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
18 Jul 2017
Forum: MultiCharts
Topic: Can GVs be used in the MC stock scanner? [SOLVED]
Replies: 4
Views: 1433

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
17 Jul 2017
Forum: MultiCharts
Topic: bar countdown off by 30 seconds [SOLVED]
Replies: 12
Views: 3680

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
27 Jun 2017
Forum: MultiCharts
Topic: execute trade in Tuesday open of daily bar
Replies: 1
Views: 877

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
20 Jun 2017
Forum: MultiCharts
Topic: Number of DAY from a certain data range [SOLVED]
Replies: 2
Views: 1604

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
07 Jun 2017
Forum: MultiCharts
Topic: Any way of opening old TS indicators ?
Replies: 2
Views: 1101

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
31 May 2017
Forum: MultiCharts
Topic: Floating error [SOLVED]
Replies: 7
Views: 2140

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
24 May 2017
Forum: MultiCharts
Topic: ELExcel.dll: Any info on how to get it? [SOLVED]
Replies: 13
Views: 6830

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
18 May 2017
Forum: MultiCharts
Topic: Rounding problem?
Replies: 3
Views: 1471

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
06 May 2017
Forum: MultiCharts
Topic: PL code execution time - strange behavior
Replies: 12
Views: 4195

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
05 May 2017
Forum: MultiCharts
Topic: What are: // Bamboo DLLs and TicToc DLL [SOLVED]
Replies: 7
Views: 2548

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 blocks take to...
by ABC
05 May 2017
Forum: MultiCharts
Topic: What are: // Bamboo DLLs and TicToc DLL [SOLVED]
Replies: 7
Views: 2548

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
27 Apr 2017
Forum: MultiCharts
Topic: How to get the barnumber of the first displayed bar on the screen [SOLVED]
Replies: 6
Views: 2722

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_getbarnumber( txtID ), "; Cur...
by ABC
24 Apr 2017
Forum: MultiCharts
Topic: External inputs / values into strategies? e.g. csv lookup? [SOLVED]
Replies: 11
Views: 4654

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
22 Apr 2017
Forum: MultiCharts
Topic: trade one symbol by using data from a different symbol
Replies: 3
Views: 1533

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 guantum, I...
by ABC
19 Apr 2017
Forum: MultiCharts
Topic: Problem with input parameter of type true/false [SOLVED]
Replies: 2
Views: 1297

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
04 Apr 2017
Forum: MultiCharts
Topic: .rld command after 2 minutes from the firts daily bar in IOB script [SOLVED]
Replies: 27
Views: 6290

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

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
04 Apr 2017
Forum: MultiCharts
Topic: Entry at exact time different with tick or minute bar
Replies: 29
Views: 10357

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 (everything ...
by ABC
31 Mar 2017
Forum: MultiCharts
Topic: Entry Price Question [SOLVED]
Replies: 5
Views: 1801

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
29 Mar 2017
Forum: MultiCharts
Topic: I want to insert "Bollinger Bands Width" [SOLVED]
Replies: 2
Views: 2153

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
20 Mar 2017
Forum: MultiCharts
Topic: Dynamic Arrays, Functions, Lists
Replies: 5
Views: 2272

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
20 Mar 2017
Forum: MultiCharts
Topic: Dynamic Arrays, Functions, Lists
Replies: 5
Views: 2272

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
20 Mar 2017
Forum: MultiCharts
Topic: Dynamic Arrays, Functions, Lists
Replies: 5
Views: 2272

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 function.. Tr...
by ABC
09 Mar 2017
Forum: MultiCharts
Topic: Entry at exact time different with tick or minute bar
Replies: 29
Views: 10357

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
24 Feb 2017
Forum: MultiCharts
Topic: Entry at exact time different with tick or minute bar
Replies: 29
Views: 10357

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 execution occu...
by ABC
16 Feb 2017
Forum: MultiCharts
Topic: Entry at exact time different with tick or minute bar
Replies: 29
Views: 10357

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 from Mult...
by ABC
14 Feb 2017
Forum: MultiCharts
Topic: portfolio trader windows detached [SOLVED]
Replies: 2
Views: 1218

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
09 Feb 2017
Forum: MultiCharts
Topic: "First 5 trading days of the year"
Replies: 8
Views: 2510

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 you compare ...
by ABC
02 Feb 2017
Forum: MultiCharts
Topic: Using Forms Classes [SOLVED]
Replies: 1
Views: 990

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
28 Jan 2017
Forum: MultiCharts
Topic: Write the letter at the end [SOLVED]
Replies: 2
Views: 1313

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
08 Jan 2017
Forum: MultiCharts
Topic: IOG strategy optimization
Replies: 3
Views: 1414

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 about pessi...
by ABC
08 Jan 2017
Forum: MultiCharts
Topic: IOG strategy optimization
Replies: 3
Views: 1414

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
05 Jan 2017
Forum: MultiCharts
Topic: Open/Close Indicator
Replies: 6
Views: 2589

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
04 Jan 2017
Forum: MultiCharts
Topic: Open/Close Indicator
Replies: 6
Views: 2589

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 display actua...
by ABC
27 Dec 2016
Forum: MultiCharts
Topic: Scanning very slow
Replies: 4
Views: 1527

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
27 Dec 2016
Forum: MultiCharts
Topic: Equity Curve on a Chart
Replies: 5
Views: 3113

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...
by ABC
26 Dec 2016
Forum: MultiCharts
Topic: Scanner wrong
Replies: 13
Views: 3351

Re: Scanner wrong

Follow the correct usage of "NoPlot" as described here and it should work:
https://www.multicharts.com/trading-sof ... php/NoPlot
by ABC
26 Dec 2016
Forum: MultiCharts
Topic: Scanner wrong
Replies: 13
Views: 3351

Re: Scanner wrong

You might want to read about the NoPlot reserved word in the help file and wiki. If you are still having troubles after that, post the code modifications you made and I am sure someone is able to point you into the right direction.

Regards,

ABC
by ABC
26 Dec 2016
Forum: MultiCharts
Topic: Scanner wrong
Replies: 13
Views: 3351

Re: Scanner wrong

Yes, follow either of the two suggestions I posted here: viewtopic.php?p=124496#p124487
by ABC
26 Dec 2016
Forum: MultiCharts
Topic: Scanner wrong
Replies: 13
Views: 3351

Re: Scanner wrong

Because you set it when your condition is true, but never reset it. If you set the value of a variable within your conditional check "if Condition12 then begin..." it would keep this value until you change it again, too. It's similar for the plots in the Scanner, they will simply keep the last value...
by ABC
26 Dec 2016
Forum: MultiCharts
Topic: Scanner wrong
Replies: 13
Views: 3351

Re: Scanner wrong

tradingest, the scanner is not wrong, it does exactly what your code tells it to do. When you set plot values they will be kept until you update them again. This means you will have to either remove them (using NoPlot) or set them to a different value when your Condition12 is no longer present. Rega...
by ABC
09 Dec 2016
Forum: MultiCharts
Topic: Submitting orders with mouse clicks in PowerLanguage [SOLVED]
Replies: 9
Views: 2885

Re: Submitting orders with mouse clicks in PowerLanguage [SOLVED]

Helmut,

what is the result of your code?

You have IntrabarOrderGeneration enabled, but your variables are not intrabarpersist. This might be an explanation, but not knowing what actually happens with your code this is just a guess.

Regards,

ABC
by ABC
09 Dec 2016
Forum: MultiCharts
Topic: Multitimeframe Signals ADE, EL_Collections, etc.
Replies: 21
Views: 6544

Re: Multitimeframe Signals ADE, EL_Collections, etc.

Jonny473, it appears you are not using the correct code for what you want and in turn use values internally that are different from what you expect them to be. Just because you feed the price of data 2 to a function doesn't mean the function is only computed on data2. It usually helps to print and p...

Go to advanced search