Search found 7755 matches

by TJ
21 Jun 2024
Forum: MultiCharts
Topic: Need MC code snipit: Hide/Delete 1000/100 place in price
Replies: 2
Views: 79

Re: Need MC code snipit: Hide/Delete 1000/100 place in price

Try this:

Code: Select all

FracPortion( Close/100 ) * 100 ;
by TJ
19 Jun 2024
Forum: MultiCharts
Topic: Parentheses
Replies: 1
Views: 74

Re: Parentheses

Image
by TJ
17 Jun 2024
Forum: MultiCharts
Topic: Signal Format
Replies: 5
Views: 162

Re: Signal Format

If this is a coding question, you have to post the codes.
by TJ
13 Jun 2024
Forum: MultiCharts
Topic: Saving Current Bar
Replies: 8
Views: 248

Re: Saving Current Bar

I am not sure.
You can give that a try.
by TJ
12 Jun 2024
Forum: MultiCharts
Topic: Saving Current Bar
Replies: 8
Views: 248

Re: Saving Current Bar

BarNumber is a function BarNumber (Function) The BarNumber series function assigns a reference number to each bar after MaxBarsBack is satisfied. Syntax BarNumber Returns (Integer) A positive numeric reference value for each bar on the chart. Parameters None Remarks MaxBarsBack is the minimum numbe...
by TJ
12 Jun 2024
Forum: MultiCharts
Topic: Plot a dot above/below a bar.
Replies: 3
Views: 136

Re: Plot a dot above/below a bar.

The setting is applied to the chart as it is drawn on the screen.
by TJ
12 Jun 2024
Forum: MultiCharts
Topic: Plot a dot above/below a bar.
Replies: 3
Views: 136

Re: Plot a dot above/below a bar.

First, you need to decide the "Offset" -- the distance between the H and the dot.

Try this:

Code: Select all

var: offset(1); if H > H[1] then PLOT1 ( H + offset, "NewHigh") // set plot type to POINT ELSE Noplot(1);

ps. This is a start; I have not verified the code.
by TJ
12 Jun 2024
Forum: MultiCharts
Topic: Saving Current Bar
Replies: 8
Views: 248

Re: Saving Current Bar

If there is a will, there is a way.

You need to articulate your idea with step-by-step descriptions, flowcharts, diagrams, examples and mock-up illustrations.
by TJ
10 Jun 2024
Forum: MultiCharts
Topic: Renko ATR
Replies: 1
Views: 134

Re: Renko ATR

See posts #1 & #2
viewtopic.php?t=11713
by TJ
18 May 2024
Forum: MultiCharts
Topic: AWS EC2 Instance Types for automated Trading
Replies: 1
Views: 282

Re: AWS EC2 Instance Types for automated Trading

If you search the forum for AWS, you will find a few past discussions.
by TJ
10 May 2024
Forum: MultiCharts
Topic: Swing/Pivot Points
Replies: 9
Views: 651

Re: Swing/Pivot Points

First, you have to define what is a swing/pivot?

Do you have an indicator calculating the swing/pivot?
If you do, then it is a matter of creating a variable to store the high/lows so that you can recall them later.
by TJ
22 Apr 2024
Forum: MultiCharts
Topic: Code issues [SOLVED]
Replies: 9
Views: 525

Re: Code issues [SOLVED]

You should post a screen shot of the error message.
by TJ
13 Apr 2024
Forum: MultiCharts
Topic: Strategy not producing same values as indicators putting out .
Replies: 9
Views: 730

Re: Strategy not producing same values as indicators putting out .

If this is a coding question, you have to post the codes.

Indicators are calculated in real time. ie similar to IOG.
Strategies are calculated at End of Bar (EOB).
by TJ
09 Apr 2024
Forum: MultiCharts
Topic: Orders Partial Take Profit
Replies: 4
Views: 353

Re: Orders Partial Take Profit

See Posts #1 & #2
viewtopic.php?t=11713
by TJ
26 Mar 2024
Forum: MultiCharts
Topic: Counting Bars on Chart
Replies: 3
Views: 286

Re: Counting Bars on Chart

First, you need to create a VARIABLE to store the count value. As soon as the event is triggered (eg crossover), you can add 1 to the variable for every new bar. Try this: Var: Bar.Count(0); Bar.Count = BarCount +; if (MA1 > MA2 and MA1[1] <= to MA2[1]) or (MA1 < MA2 and MA1[1] >= to MA2[1]) then Ba...
by TJ
14 Mar 2024
Forum: MultiCharts
Topic: Alert -- If Realtime Data is Disconnected between time
Replies: 3
Views: 370

Re: Alert -- If Realtime Data is Disconnected between time

Why are you using intrabarpersist ?
by TJ
25 Feb 2024
Forum: MultiCharts
Topic: Is it possible to access indicator values across chart windows and workspaces in MC (PowerLanguage version)
Replies: 4
Views: 368

Re: Is it possible to access indicator values across chart windows and workspaces in MC (PowerLanguage version)

To transfer data between indicators within the same chart,
you can use

i_getplotvalue
i_setplotvalue


Please see the wiki for details.
by TJ
17 Feb 2024
Forum: MultiCharts
Topic: PC Autotrading
Replies: 4
Views: 403

Re: PC Autotrading

What fell asleep?

Your computer?

or the IB account timed out?
by TJ
19 Jan 2024
Forum: MultiCharts
Topic: send text message telegram channel
Replies: 13
Views: 1688

Re: send text message telegram channel

Well that is not a proper solution. Why is it that complicated to implement a feature to call a browser page? Even 'old' applications like AB can handle this.
Why is that NOT a proper solution?
by TJ
18 Jan 2024
Forum: MultiCharts
Topic: Use python to compile C++ DLL that is usable by Multicharts
Replies: 14
Views: 1772

Re: Use python to compile C++ DLL that is usable by Multicharts

[Advanced Topic] MultiCharts 64 bit Resources (3rd Party)
viewtopic.php?t=10094
by TJ
25 Dec 2023
Forum: MultiCharts
Topic: Data loading speed improvement
Replies: 11
Views: 3234

Re: Data loading speed improvement

Simple solution -- keep your trading computer for trading only, then you do not need to use anti-virus.
Computers are so cheap these days, get another box for non-trading purposes. You can also surf the net with a tablet or even your phone.
by TJ
24 Dec 2023
Forum: MultiCharts
Topic: MA Extension
Replies: 2
Views: 298

Re: MA Extension

See post #1 & #2
viewtopic.php?t=11713
by TJ
24 Dec 2023
Forum: MultiCharts
Topic: Array Error
Replies: 1
Views: 258

Re: Array Error

This is a coding question.
by TJ
13 Dec 2023
Forum: MultiCharts
Topic: signal arrows above each bar as long as the condition is true [SOLVED]
Replies: 2
Views: 361

Re: signal arrows above each bar as long as the condition is true [SOLVED]

Try this?

Code: Select all

condition1 = var0 > var1; condition2 = var0 < var1;

ps. bear in mind you will be drawing A LOT of arrow objects. It will slow down your computer.
by TJ
12 Dec 2023
Forum: MultiCharts
Topic: help with vert TrendLine/Timeline coding question [SOLVED]
Replies: 4
Views: 548

Re: help with vert TrendLine/Timeline coding question [SOLVED]

LastBarOnChart (Function) The LastBarOnChart function is used to determine if the current bar being evaluated is the last bar on the chart. Syntax LastBarOnChart Returns (Boolean) True if LastBarOnChart is the last charted bar. False if not. Parameters None Example In order to play a wave (sound) f...
by TJ
11 Dec 2023
Forum: MultiCharts
Topic: SetStopLoss [SOLVED]
Replies: 5
Views: 570

Re: SetStopLoss [SOLVED]

What I have provided is an example . . . you can take it from there and add whatever is needed. It will take a few trial and error to iron out the bugs.

Good trading to you.
by TJ
10 Dec 2023
Forum: MultiCharts
Topic: SetStopLoss [SOLVED]
Replies: 5
Views: 570

Re: SetStopLoss [SOLVED]

You have to "freeze" the high and low values for your stop calculation. eg: var: mm.h(0) , mm.L(0); If MarketPosition = 0 and EntCondS and EntCondL = false then begin Sell short("EnMark-S") NShares shares next bar at market; mm.h = h; mm.L = Lowest(L, NMM1); end; SetStopShare; SetStopLoss(( mm.h - m...
by TJ
10 Dec 2023
Forum: MultiCharts
Topic: SetStopLoss [SOLVED]
Replies: 5
Views: 570

Re: SetStopLoss [SOLVED]

This is a coding question. You need to post your codes.
by TJ
04 Dec 2023
Forum: MultiCharts
Topic: help with vert TrendLine/Timeline coding question [SOLVED]
Replies: 4
Views: 548

Re: help with vert TrendLine/Timeline coding question [SOLVED]

Trying to figure out how to place a single vertical line on each bar starting from the data playback point i pick. You need to elaborate on your thoughts. This ONE-LINE can be interpreted in many ways. Please draw a diagram to illustrate your view. Please give some examples with different scenarios.
by TJ
04 Dec 2023
Forum: MultiCharts
Topic: renko chart ma cross not matching up [SOLVED]
Replies: 2
Views: 445

Re: renko chart ma cross not matching up [SOLVED]

You have a non-time-based chart.
You have to use the keywords with the "_s" suffix.

eg.
TL_new_s
TL_SetBegin_s
TL_SetEnd_s

https://www.multicharts.com/trading-sof ... ne_Drawing
by TJ
04 Dec 2023
Forum: MultiCharts
Topic: multicharts/powerlanguage tutor?
Replies: 1
Views: 336

Re: multicharts/powerlanguage tutor?

You can start here:
FAQ
viewforum.php?f=16

[FAQ] EasyLanguage / PowerLanguage
viewtopic.php?t=6929

[FAQ] Autotrade / Backtest / Optimization
viewtopic.php?t=10811
by TJ
23 Nov 2023
Forum: MultiCharts
Topic: New Bar appearing as a dot [SOLVED]
Replies: 2
Views: 358

Re: New Bar appearing as a dot [SOLVED]

The fastest way to solve this problem is to use LiveChat and let techsupport check it for you.
by TJ
13 Nov 2023
Forum: MultiCharts
Topic: Divide by zero exception during the portfolio backtesting [SOLVED]
Replies: 4
Views: 663

Re: Divide by zero exception during the portfolio backtesting [SOLVED]

GIGO

The only variable is the input data.
If the input has a zero, or the resultant of your logic calculation returns a zero, you will get a "Divide by Zero" error.

The solution is simple -- go through your code with a fine-tooth comb.
by TJ
06 Nov 2023
Forum: MultiCharts
Topic: How to add to an open position
Replies: 8
Views: 1680

Re: How to add to an open position

I tried the following code, but it does not work. NumContracts = 5;//The amount of contracts in a position MyPosition = MarketPosition_at_Broker; Myentryprice=entryprice_checked; Condition5 = MyPosition>0 and barstatus=1 and MyPosition< NumContracts and C<Myentryprice;//Long positions Condition6 = ...
by TJ
26 Oct 2023
Forum: MultiCharts
Topic: Coding Gap down strategy
Replies: 1
Views: 427

Re: Coding Gap down strategy

See posts #1 & #2
viewforum.php?f=16
by TJ
20 Oct 2023
Forum: MultiCharts
Topic: 2 set of strategies for Profit target
Replies: 1
Views: 360

Re: 2 set of strategies for Profit target

SetProfitTarget and SetStopLoss are Global Exits. They are applied to the account instead of individual trades.

If you need to manage trades individually, you will need to code the management individually.
by TJ
20 Oct 2023
Forum: MultiCharts
Topic: Multiple Positions + Multiple exit targets [SOLVED]
Replies: 2
Views: 508

Re: Multiple Positions + Multiple exit targets [SOLVED]

SetProfitTarget and SetStopLoss are Global Exits. They are applied to the account instead of individual trades.

If you need to manage trades individually, you will need to code the management individually.
by TJ
19 Oct 2023
Forum: MultiCharts
Topic: LINE GRAPH BUT BASED ON HIGH/LOW INSTEAD OF CLOSE [SOLVED]
Replies: 7
Views: 859

Re: LINE GRAPH BUT BASED ON HIGH/LOW INSTEAD OF CLOSE [SOLVED]

Go to Wiki
Look under
7 PowerLanguage Keyword Reference
Plotting‎ (15 P)

Look up SetPlotColor
by TJ
17 Oct 2023
Forum: MultiCharts
Topic: HIGH CPU LOAD
Replies: 4
Views: 656

Re: HIGH CPU LOAD

Do you have any drawing objects in your indicators?


It is possible you have a coding error -- eg an infinite loop doing nothing.
by TJ
16 Oct 2023
Forum: MultiCharts
Topic: VWAP Bands Problem with Exception Floating-point division by zero
Replies: 11
Views: 1308

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

See posts #1 & #2
1. [FAQ] How to Post Codes ... so that people can read.
viewtopic.php?t=11713
by TJ
11 Oct 2023
Forum: MultiCharts
Topic: When the profit target is reached, I would like auto-trading automatically stop [SOLVED]
Replies: 5
Views: 740

Re: When the profit target is reached, I would like auto-trading automatically stop [SOLVED]

And finally, is there a corresponding function, and thus code, to stop the entire system if expected losses are equal to or exceeded instead? For example, a condition called -I am inventing - 'Loss.Reached'? If so, could I simply replicate the same code, modifying it where necessary, and add it bel...
by TJ
11 Oct 2023
Forum: MultiCharts
Topic: When the profit target is reached, I would like auto-trading automatically stop [SOLVED]
Replies: 5
Views: 740

Re: When the profit target is reached, I would like auto-trading automatically stop [SOLVED]

the correct modification?
Sharp eyes and sharp mind ! Yes that is the correct way to specify "Larger or Equal" !
by TJ
11 Oct 2023
Forum: MultiCharts
Topic: When the profit target is reached, I would like auto-trading automatically stop [SOLVED]
Replies: 5
Views: 740

Re: When the profit target is reached, I would like auto-trading automatically stop [SOLVED]

You can add a CONDITION called "Profit.Reached".

eg. Here's the concept:

Code: Select all

Input: Profit.Target( 1000 ); Var: Profit.Reached( False ); If Netprofit > Profit.Target then Profit.Reached = true. If Profit.Reached = false then BEGIN // your trading code here END;
by TJ
10 Oct 2023
Forum: MultiCharts
Topic: LINE GRAPH BUT BASED ON HIGH/LOW INSTEAD OF CLOSE [SOLVED]
Replies: 7
Views: 859

Re: LINE GRAPH BUT BASED ON HIGH/LOW INSTEAD OF CLOSE [SOLVED]

Thanks for the reply.I am getting a compile error though.

------ Compiled with error(s): ------
Unknown Function
line 7, column 0
Please copy the code and try again.
I have corrected the missing PLOT number.
by TJ
09 Oct 2023
Forum: MultiCharts
Topic: LINE GRAPH BUT BASED ON HIGH/LOW INSTEAD OF CLOSE [SOLVED]
Replies: 7
Views: 859

Re: LINE GRAPH BUT BASED ON HIGH/LOW INSTEAD OF CLOSE [SOLVED]

What if C = C[1] ?


Try this:

Code: Select all

var: plot.point(0); if C > C[1] then Plot.point = H else if C < C[1] then Plot.point = L; Plot1( Plot.point );
by TJ
05 Oct 2023
Forum: MultiCharts
Topic: Buy Next Bar at Price Limit
Replies: 4
Views: 561

Re: Buy Next Bar at Price Limit

by TJ
04 Oct 2023
Forum: MultiCharts
Topic: Buy Next Bar at Price Limit
Replies: 4
Views: 561

Re: Buy Next Bar at Price Limit

How to post codes
see posts #1 & #2
viewtopic.php?t=11713
by TJ
04 Oct 2023
Forum: MultiCharts
Topic: Buy Next Bar at Price Limit
Replies: 4
Views: 561

Re: Buy Next Bar at Price Limit

You need to transfer the "TRUE" condition over to multiple bars.
To do that, you can create a new additional condition called BUY_OK.

eg.

Code: Select all

Var: BUY_OK (false); BUY_OK = condition1 and condition2; if BUY_OK then BUY . . .
by TJ
18 Sep 2023
Forum: MultiCharts
Topic: Signal did not calculate all available price data
Replies: 2
Views: 436

Re: Signal did not calculate all available price data

If this is a coding question, you must post your codes.

viewtopic.php?t=11713
by TJ
18 Sep 2023
Forum: MultiCharts
Topic: Array, variable or refinput expected [SOLVED]
Replies: 2
Views: 526

Re: Array, variable or refinput expected [SOLVED]

You set up IsBuyMonth as an INPUT variable.

The way you stated IsBuyMonth in the code, it is giving a TRUE or FALSE response.

Try this:

Code: Select all

Var: IsBuyMonth (false);
by TJ
18 Sep 2023
Forum: MultiCharts
Topic: SessionLastBar in live trading [SOLVED]
Replies: 7
Views: 1150

Re: SessionLastBar in live trading [SOLVED]

It is a hindsight thing. https://www.multicharts.com/discussion/viewtopic.php?t=50358 I read that thread but it doesn't fully clarify. Does that mean that my code will read the correct value in live trading when the session ends sooner? If so, how does MC know that the session has finished prematur...
by TJ
17 Sep 2023
Forum: MultiCharts
Topic: SessionLastBar in live trading [SOLVED]
Replies: 7
Views: 1150

Re: SessionLastBar in live trading [SOLVED]

It is a hindsight thing.

viewtopic.php?t=50358
by TJ
04 Sep 2023
Forum: MultiCharts
Topic: DCA or multiples orders and exit
Replies: 1
Views: 327

Re: DCA or multiples orders and exit

You can start here:
viewtopic.php?t=10811
by TJ
21 Aug 2023
Forum: MultiCharts
Topic: Condition Countif [SOLVED]
Replies: 1
Views: 385

Re: Condition Countif [SOLVED]

the rudimentary way to write this logic is to lay them out one by one:

Code: Select all

if condition1 then count1=1 else count1=0; if condition2 then count2=1 else count2=0; if condition3 then count3=1 else count3=0; if condition4 then count4=1 else count4=0; condition5 = sum(count1+count2+count3+count4) > 2;
by TJ
01 Aug 2023
Forum: MultiCharts
Topic: Find top X S&P500 companies
Replies: 4
Views: 594

Re: Find top X S&P500 companies

Who is your dataprovider?
Do you know if your dataprovider supplies such a piece of information in a data field?
by TJ
04 Jul 2023
Forum: MultiCharts
Topic: send text message telegram channel
Replies: 13
Views: 1688

Re: send text message telegram channel

MultiCharts can send email.
Can your Telegram accept email?
by TJ
29 Jun 2023
Forum: MultiCharts
Topic: faulty backtest results when dataindex is used
Replies: 12
Views: 1203

Re: faulty backtest results when dataindex is used

is my advice wrong?
or
your code does not work?

there is a difference.
by TJ
24 May 2023
Forum: MultiCharts
Topic: Help with a study - StopLoss
Replies: 5
Views: 839

Re: Help with a study - StopLoss

See Post #7
7) This Bar on Close
viewtopic.php?t=10811
by TJ
18 May 2023
Forum: MultiCharts
Topic: Limit Orders
Replies: 2
Views: 541

Re: Limit Orders

Do you think this is a coding problem?
or procedural problem?

Have you checked out the posts in the FAQ?
viewtopic.php?t=10811
by TJ
03 May 2023
Forum: MultiCharts
Topic: Precise backtesting on Renko charts
Replies: 5
Views: 983

Re: Precise backtesting on Renko charts

This is a trial and tribulation every backtester must go through.
by TJ
19 Apr 2023
Forum: MultiCharts
Topic: Adaptive Candlestick Pattern Recognition System convert to Powerlanguage
Replies: 2
Views: 572

Re: Adaptive Candlestick Pattern Recognition System convert to Powerlanguage

This one is converted from EasyLanguage. You can google for the script; It is on the web somewhere.
by TJ
11 Apr 2023
Forum: MultiCharts
Topic: what does this mean? restart computer and restart mc, still got error
Replies: 3
Views: 601

Re: what does this mean? restart computer and restart mc, still got error

Please indicate the following:
1. computer RAM size
2. Windows version
3. MC version and release number

When did you install this MC?
by TJ
09 Apr 2023
Forum: MultiCharts
Topic: Signals based on Trade data series and buy and sell based on bid and ask data series
Replies: 3
Views: 589

Re: Signals based on Trade data series and buy and sell based on bid and ask data series

Please check the following threats for ideas:

[FAQ] EasyLanguage / PowerLanguage
viewtopic.php?t=6929

[FAQ] Autotrade / Backtest / Optimization
viewtopic.php?t=10811
by TJ
07 Apr 2023
Forum: MultiCharts
Topic: Volume for Data2
Replies: 2
Views: 482

Re: Volume for Data2

by TJ
07 Apr 2023
Forum: MultiCharts
Topic: Volume for Data2
Replies: 2
Views: 482

Re: Volume for Data2

by TJ
05 Apr 2023
Forum: MultiCharts
Topic: "maximum number of bars study will reference"
Replies: 4
Views: 846

Re: "maximum number of bars study will reference"

For most situations, you should set it to Auto.
by TJ
05 Apr 2023
Forum: MultiCharts
Topic: "maximum number of bars study will reference"
Replies: 4
Views: 846

Re: "maximum number of bars study will reference"

I have a complex strategy. the main chart, data1 is 1 minute. mnqh3 100 days. ( mnqH3 is expired now, but I think it should be ok use this symbol) data2 = 3 minutes. mnqh3 100 days data3 = 1 minute. mnqh3 100 days the strategy code has some functions which run on data2, data3. The "maximum number o...
by TJ
20 Mar 2023
Forum: MultiCharts
Topic: lost my strategy
Replies: 7
Views: 1101

Re: lost my strategy

Did you start the Editor as an Administrator?
Did you set the Windows operating system to permit you the user to modify files?
Did you log in to Windows with the assigned username?
by TJ
19 Mar 2023
Forum: MultiCharts
Topic: lost my strategy
Replies: 7
Views: 1101

Re: lost my strategy

Before you accuse MC has bugs, which it might be true, as all software does, you should take a look at what you are accusing . . . You have a problem finding a file. I know it is frustrating. File management is a basic Windows function. MC merely calls the function from the software. All the file ha...
by TJ
17 Mar 2023
Forum: MultiCharts
Topic: About displaying moving averages
Replies: 6
Views: 911

Re: About displaying moving averages

Take your chart and draw on it to show what you want to see.
by TJ
16 Mar 2023
Forum: MultiCharts
Topic: About displaying moving averages
Replies: 6
Views: 911

Re: About displaying moving averages

Thank you for your response.

The attached image shows chart data from January 1, 2022 to March 16, 2023, but I was wondering if it is possible to draw a moving average including chart data prior to May 26, 2022.
You need to draw a mock up.
by TJ
16 Mar 2023
Forum: MultiCharts
Topic: About intraday highs
Replies: 2
Views: 512

Re: About intraday highs

by TJ
16 Mar 2023
Forum: MultiCharts
Topic: About RateofChange Documentation
Replies: 6
Views: 849

Re: About RateofChange Documentation

You can google and download the free ebook
EasyLanguage Functions and Reserved Words
by TJ
16 Mar 2023
Forum: MultiCharts
Topic: About displaying moving averages
Replies: 6
Views: 911

Re: About displaying moving averages

i don't understand your question
by TJ
04 Mar 2023
Forum: MultiCharts
Topic: Replicating session closing price on TS & MC
Replies: 1
Views: 404

Re: Replicating session closing price on TS & MC

Have you reloaded the data on both programs?
by TJ
24 Feb 2023
Forum: MultiCharts
Topic: SetStopLoss with highs and lows.
Replies: 12
Views: 1666

Re: SetStopLoss with highs and lows.

Thanks TJ. I have seen like half a second to a secong lag between time a bar closes and order generation. Maybe upgrade the VPS? Theoretically, it should not make a difference. Your need is to evaluate the stop position at every tick. Whether it is done through the built-in stoploss or through codi...
by TJ
23 Feb 2023
Forum: MultiCharts
Topic: SetStopLoss with highs and lows.
Replies: 12
Views: 1666

Re: SetStopLoss with highs and lows.

If you want to trade at the end of the bar, but set your stop intra-bar, you can do the following: 1. Enable IOG IntrabarOrderGeneration. 2. On your trading logic, add BARSTATUS=2. Thanks TJ. Does setting IOG to ON slow down MC in any way? Especially with an instrument like NQ. Thanks. No, not that...
by TJ
23 Feb 2023
Forum: MultiCharts
Topic: SetStopLoss with highs and lows.
Replies: 12
Views: 1666

Re: SetStopLoss with highs and lows.

If you want to trade at the end of the bar, but set your stop intra-bar, you can do the following:

1. Enable IOG IntrabarOrderGeneration.
2. On your trading logic, add BARSTATUS=2.
by TJ
18 Feb 2023
Forum: MultiCharts
Topic: TV as Monitor?
Replies: 3
Views: 1624

Re: TV as Monitor?

by TJ
15 Feb 2023
Forum: MultiCharts
Topic: Pre-Processing
Replies: 11
Views: 1500

Re: Pre-Processing

Do you have a suggestion of how to preprocess this Moving average array to speed up optimization?
Buy a faster CPU ?
by TJ
14 Feb 2023
Forum: MultiCharts
Topic: Pre-Processing
Replies: 11
Views: 1500

Re: Pre-Processing

Yes, put it in a variable. Put it in a function.

ps. If you need coding help, you need to post your codes.
by TJ
11 Feb 2023
Forum: MultiCharts
Topic: Line Chart/Graph Based on High or Low and not based on Closed Prices
Replies: 4
Views: 705

Re: Line Chart/Graph Based on High or Low and not based on Closed Prices

You need to write some notes on the diagram , with arrows, pointing out the features of the graph. You need to write down why such point is important. You need to explain how each point is constructed. You need to show the transitions between points: why this point is changed but not the others. No ...
by TJ
11 Feb 2023
Forum: MultiCharts
Topic: Line Chart/Graph Based on High or Low and not based on Closed Prices
Replies: 4
Views: 705

Re: Line Chart/Graph Based on High or Low and not based on Closed Prices

You need to draw a mock-up, with notes on the diagram highlighting the salient points you are looking for.
by TJ
22 Jan 2023
Forum: MultiCharts
Topic: Why is only UP Volume counted in this print statement? [SOLVED]
Replies: 4
Views: 783

Re: Why is only UP Volume counted in this print statement? [SOLVED]

Thanks for this TJ. It is a good referral tool.

The second link give me a 404 error ..."https://www.multicharts.com/multicharts ... mentation/"
404 Fixed.
by TJ
15 Jan 2023
Forum: MultiCharts
Topic: Sell signal not working for me [SOLVED]
Replies: 2
Views: 639

Re: Sell signal not working for me [SOLVED]

Go to the Wiki

In the Table of Contents, go to
7 PowerLanguage Keyword Reference

Look under
Strategy Orders‎ (34 P)

Look up
Sellshort
by TJ
12 Jan 2023
Forum: MultiCharts
Topic: Adv / Decl Line Indicator
Replies: 1
Views: 458

Re: Adv / Decl Line Indicator

In a Zero-Sum game, the curve will balance out after the ramp-up period.

However, the market is not zero-sum; the market has an upward bias. Therefore, yes, the way you calculate it, the curve will also have an upward bias.
by TJ
07 Jan 2023
Forum: MultiCharts
Topic: Advice for new user/ testing out first strategies .
Replies: 3
Views: 722

Re: Advice for new user/ testing out first strategies .

You can start here:

MultiCharts FAQ
viewforum.php?f=16

[FAQ] EasyLanguage / PowerLanguage
viewtopic.php?t=6929

[FAQ] Autotrade / Backtest / Optimization
viewtopic.php?t=10811
by TJ
07 Jan 2023
Forum: MultiCharts
Topic: Advice for new user/ testing out first strategies .
Replies: 3
Views: 722

Re: Advice for new user/ testing out first strategies .

The best way to learn coding is to examine the pre-built codes.
by TJ
07 Jan 2023
Forum: MultiCharts
Topic: Pre-built Signals.
Replies: 4
Views: 721

Re: Pre-built Signals.

See post #1 & #2
viewtopic.php?t=11713
by TJ
29 Dec 2022
Forum: MultiCharts
Topic: Breakout Session Strategy
Replies: 6
Views: 1073

Re: Breakout Session Strategy

HighD (Function) The HighD series function allows you to reference the daily high of a previous day in an intraday chart (minute, second, or tick-based) or a daily chart. HighD is one of a family of functions that allows historical references across various data intervals. Syntax HighD(PeriodsAgo) ...
by TJ
29 Dec 2022
Forum: MultiCharts
Topic: Breakout Session Strategy
Replies: 6
Views: 1073

Re: Breakout Session Strategy

you can use the HighD function.
by TJ
29 Dec 2022
Forum: MultiCharts
Topic: Saving Modified Signals Confusion
Replies: 1
Views: 399

Re: Saving Modified Signals Confustion

You should use LiveChat to let techsupport look at your computer and see if any setting is amiss.
by TJ
30 Nov 2022
Forum: MultiCharts
Topic: Help with coding indicator pls [SOLVED]
Replies: 6
Views: 1154

Re: Help with coding indicator pls [SOLVED]

You can try this print routine: (I am not in front of my MC, I have not tested the code. Please give it a try and let me know the results.) Var: CandleDelta(0), CandleDeltaSum(0), GreenCandle(false), CountBars(0), BarColor(0); CandleDelta = c - (c of data2); GreenCandle = c > (c of data2); If GreenC...
by TJ
29 Nov 2022
Forum: MultiCharts
Topic: Help with coding indicator pls [SOLVED]
Replies: 6
Views: 1154

Re: Help with coding indicator pls [SOLVED]

.... I pretty much got that right, but I only want to show the last and highest delta count in each sequence/swing. Not sure how to make the previous two green plot in the red box the same as the third highest/max plot? Does this make sense? I don't understand what you are talking about. You need t...
by TJ
29 Nov 2022
Forum: MultiCharts
Topic: Help with coding indicator pls [SOLVED]
Replies: 6
Views: 1154

Re: Help with coding indicator pls [SOLVED]

For example (refers to red box in attached screenshot of ES 5 min chart): 1. There are three green candles 2. The delta of these three are: 61, 157 & 26. 3. Add up to 244 4. Then diplay all three plots of the three green candles as 244. (currently it adds consecutively) You are doing well, but don'...
by TJ
23 Nov 2022
Forum: MultiCharts
Topic: DOM Quantities are incorrect
Replies: 9
Views: 1319

Re: DOM Quantities are incorrect

Which account are you using?

1. Demo account
2. Papertrading account
3. Live account
by TJ
17 Nov 2022
Forum: MultiCharts
Topic: Weekly timeframe buy in close bar
Replies: 7
Views: 1340

Re: Weekly timeframe buy in close bar

Is that a backtest you had on the first post?
by TJ
13 Nov 2022
Forum: MultiCharts
Topic: Weekly timeframe buy in close bar
Replies: 7
Views: 1340

Re: Weekly timeframe buy in close bar

The chart evaluates the indicator/strategy at the End Of Bar (EOB).
If the conditions are met, an order is triggered at the next tick, which is the opening of the next bar.

Your code will not trigger an order at the end of the week because there is no next bar.
by TJ
13 Nov 2022
Forum: MultiCharts
Topic: smoothed moving average in MS
Replies: 3
Views: 833

Re: smoothed moving average in MS

Sorry I didn't know I should adjust the post accordingly. I hope now it fits. You have 2 codes there. One is a function, the other is the indicator. //Function: inputs: //Function: Price( numericseries ), Length( numericsimple ) ; { this input should be a constant >= 1 } Vars: SmoothingFactor( 1 / ...
by TJ
13 Nov 2022
Forum: MultiCharts
Topic: Weekly timeframe buy in close bar
Replies: 7
Views: 1340

Re: Weekly timeframe buy in close bar

If this is a coding question, you have to post your codes.

viewtopic.php?t=11713
See post #5
viewtopic.php?t=11713
by TJ
12 Nov 2022
Forum: MultiCharts
Topic: smoothed moving average in MS
Replies: 3
Views: 833

Re: smoothed moving average in MS

See posts #1 & #2
viewtopic.php?t=11713
by TJ
07 Nov 2022
Forum: MultiCharts
Topic: Weekly timeframe buy in close bar
Replies: 7
Views: 1340

Re: Weekly timeframe buy in close bar

If this is a coding question, you have to post your codes.

viewtopic.php?t=11713
by TJ
04 Oct 2022
Forum: MultiCharts
Topic: Can MultiCharts handle hundreds or thousands of strategies?
Replies: 22
Views: 3819

Re: Can MultiCharts handle hundreds or thousands of strategies?

I would buy a new computer and an extra MultiCharts license for every 20 strategies.
YMMV
by TJ
04 Oct 2022
Forum: MultiCharts
Topic: Can MultiCharts handle hundreds or thousands of strategies?
Replies: 22
Views: 3819

Re: Can MultiCharts handle hundreds or thousands of strategies?

There are so many bottlenecks in trading, you have to find out where are your bottlenecks. 1. How far are you from your broker? 2. What is your latency? Today's computers might seem fast, but they are still operating in a very archaic 86 architecture. ie there are lots and lots of bottlenecks inside...
by TJ
26 Sep 2022
Forum: MultiCharts
Topic: Daily Hi Low Lines
Replies: 5
Views: 1122

Re: Daily Hi Low Lines

See post #5

5. The First Step in Debugging Your Code
5. Stop Banging Your Head Against the Wall and Open Your Eyes.

viewtopic.php?t=11713
by TJ
26 Sep 2022
Forum: MultiCharts
Topic: Daily Hi Low Lines
Replies: 5
Views: 1122

Re: Daily Hi Low Lines

See posts #1 & #2
viewtopic.php?t=11713
by TJ
01 Sep 2022
Forum: MultiCharts
Topic: How to calculate the Highest High / Lowest Low for "N' sessions
Replies: 6
Views: 1644

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

I am not sure what you mean by this one-liner. It can be interpreted in multiple ways. How do I search 'n' number of session for the highest high / lowest low? You need to give a real-life example in step-by-step narration. You need to draw some diagrams/charts, with notes on the picture to point ou...
by TJ
29 Aug 2022
Forum: MultiCharts
Topic: vertical line on chart [SOLVED]
Replies: 10
Views: 2686

Re: vertical line on chart [SOLVED]

You can make the line with PLOT1[ -1 ] .
by TJ
29 Aug 2022
Forum: MultiCharts
Topic: vertical line on chart [SOLVED]
Replies: 10
Views: 2686

Re: vertical line on chart [SOLVED]

The lines are only drawn after the data has passed. I need the lines to be there before the data. Pic #1 shows the way that it is now. Pic #2 is the way t hat I need it to be. You need to describe your vision with hard examples. What are those lines? Date/time lines? What are the LOGIC of those lin...
by TJ
27 Aug 2022
Forum: MultiCharts
Topic: vertical line on chart [SOLVED]
Replies: 10
Views: 2686

Re: vertical line on chart [SOLVED]

Is there a way to have these lines plot in advance rather than after the fact?
You need to describe your vision with hard examples.
Please draw a diagram(s) to illustrate the operation.
by TJ
20 Aug 2022
Forum: MultiCharts
Topic: Clickable Button that toggles a boolean
Replies: 4
Views: 1047

Re: Clickable Button that toggles a boolean

Go to Wiki
Go to PowerLanguage Keyword Reference
Look under MouseClickEvents‎ (6 P)
by TJ
19 Aug 2022
Forum: MultiCharts
Topic: Clickable Button that toggles a boolean
Replies: 4
Views: 1047

Re: Clickable Button that toggles a boolean

Can you give an example?
Maybe draw a flowchart to illustrate your vision?
by TJ
13 Aug 2022
Forum: MultiCharts
Topic: Getting date time of n-th bar before current bar [SOLVED]
Replies: 3
Views: 999

Re: Getting date time of n-th bar before current bar [SOLVED]

KEYWORD [ n-th bar ]

eg

datetime[5]
by TJ
06 Aug 2022
Forum: MultiCharts
Topic: Temporary entry level [SOLVED]
Replies: 3
Views: 929

Re: Temporary entry level [SOLVED]

If you want to trigger an order intra-bar in real-time,
You need to set IOG IntrabarOrderGeneration to TRUE.
by TJ
21 Jul 2022
Forum: MultiCharts
Topic: Indicator messing up my charts [SOLVED]
Replies: 11
Views: 2046

Re: Indicator messing up my charts [SOLVED]

Computers are dumb; they do exactly what they are told to do.

This is a simple coding issue. You need to post your code.

viewtopic.php?t=11713
by TJ
19 Jul 2022
Forum: MultiCharts
Topic: Indicator messing up my charts [SOLVED]
Replies: 11
Views: 2046

Re: Indicator messing up my charts [SOLVED]

you should post a screen shot,
with notes on the chart pointing to the problem, and your vision of how it should look.
by TJ
05 Jul 2022
Forum: MultiCharts
Topic: I ask for help with the script Power Language.
Replies: 2
Views: 701

Re: I ask for help with the script Power Language.

You can try CurrentTime.

Note: this keyword will work in realtime, but not in backtesting.
by TJ
01 Jul 2022
Forum: MultiCharts
Topic: Best practice for Bid/Ask auto trading. [SOLVED]
Replies: 4
Views: 1669

Re: Best practice for Bid/Ask auto trading. [SOLVED]

Lots of help in FAQ as well as in the Wiki

viewtopic.php?t=10811
by TJ
28 Jun 2022
Forum: MultiCharts
Topic: ATR at entry price [SOLVED]
Replies: 5
Views: 1249

Re: ATR at entry price [SOLVED]

First, you create a variable to store the ATR value. At the time of entry, you assign the ATR value to the said variable. That was my thought as well. But what should i do to make sure the ATR is assigned at that specific time? That depends on how you code your entry. If it is BUY or SELLSHORT at m...
by TJ
27 Jun 2022
Forum: MultiCharts
Topic: ATR at entry price [SOLVED]
Replies: 5
Views: 1249

Re: ATR at entry price [SOLVED]

First, you create a variable to store the ATR value.
At the time of entry, you assign the ATR value to the said variable.
by TJ
21 Jun 2022
Forum: MultiCharts
Topic: Create a line label within a script
Replies: 1
Views: 570

Re: Create a line label within a script

Anything is possible, almost.

You should post your code,
as well as draw a mock-up chart with a sample "label" located where you want it.
by TJ
20 Jun 2022
Forum: MultiCharts
Topic: Indicator Signal not plotting
Replies: 6
Views: 1196

Re: Indicator Signal not plotting

This is a coding issue.
The computer is dumb; it will only do what it is told.
You need to post your code.
by TJ
20 Jun 2022
Forum: MultiCharts
Topic: Indicator Signal not plotting
Replies: 6
Views: 1196

Re: Indicator Signal not plotting

Thank you TJ. Apologize for not understanding your logic here: . . . 2. The procedure should be run on the last tick of the bar - and plotted as it has for roughly 49 of 50 signals. I could accept this if I didn't have proof of the signals being plotted correctly. 3. If the EOB logic you mentioned ...
by TJ
20 Jun 2022
Forum: MultiCharts
Topic: Indicator Signal not plotting
Replies: 6
Views: 1196

Re: Indicator Signal not plotting

Thank you TJ. Apologize for not understanding your logic here:

1. What setting are you referring to?
setplotcolor(1,magenta);
by TJ
20 Jun 2022
Forum: MultiCharts
Topic: Indicator Signal not plotting
Replies: 6
Views: 1196

Re: Indicator Signal not plotting

After you have enabled the setting, it will start to take effect at the next tick.
Since your logic is for the EOB, the setting will take effect at the next bar.
by TJ
10 Jun 2022
Forum: MultiCharts
Topic: Why do I cann't register my MC12
Replies: 2
Views: 757

Re: Why do I cann't register my MC12

Send an email or go on LiveChat. They can sort it out for you.

https://www.multicharts.com/support/
by TJ
09 Jun 2022
Forum: MultiCharts
Topic: Scaling out code
Replies: 1
Views: 574

Re: Scaling out code

Make a counter.
Reset the counter when the new swing begins.
by TJ
30 May 2022
Forum: MultiCharts
Topic: Problem with the Custom 1 Line indicator
Replies: 6
Views: 1236

Re: Problem with the Custom 1 Line indicator

My guess is, that this is a coding error.
by TJ
14 May 2022
Forum: MultiCharts
Topic: To signal mixed between Short and long
Replies: 2
Views: 704

Re: To signal mixed between Short and long

Please take a look this thread:

viewtopic.php?t=53600
by TJ
14 May 2022
Forum: MultiCharts
Topic: Trading Multiple Strategies on the Same Instrument
Replies: 5
Views: 1456

Re: Trading Multiple Strategies on the Same Instrument

Didn't you just ask this question a few days ago? What happened to the thread?
by TJ
14 May 2022
Forum: MultiCharts
Topic: day open indicator question
Replies: 2
Views: 680

Re: day open indicator question

What is your chart resolution?
What is your session time?
by TJ
14 May 2022
Forum: MultiCharts
Topic: day open indicator question
Replies: 2
Views: 680

Re: day open indicator question

See posts #1 & #2
viewtopic.php?t=11713
by TJ
02 May 2022
Forum: MultiCharts
Topic: OHLC Yesterday + Today Open [SOLVED]
Replies: 3
Views: 932

Re: OHLC Yesterday + Today Open [SOLVED]

You can copy and paste the code here.
by TJ
02 May 2022
Forum: MultiCharts
Topic: OHLC Yesterday + Today Open [SOLVED]
Replies: 3
Views: 932

Re: OHLC Yesterday + Today Open [SOLVED]

You need to draw a mock-up diagram to illustrate your vision.

You need to draw arrows and write notes on the diagram to point out what you are looking for.
by TJ
02 May 2022
Forum: MultiCharts
Topic: Request: dark theme for MultiCharts!
Replies: 10
Views: 3013

Re: Request: dark theme for MultiCharts!

I thought a "Dark mode" is a function of the Windows operating system.
by TJ
18 Apr 2022
Forum: MultiCharts
Topic: Using EntriesToday / TradeToday on short sessions IE Softs / Agro
Replies: 2
Views: 749

Re: Using EntriesToday / TradeToday on short sessions IE Softs / Agro

I don't understand what you are asking.
please check your punctuation.
Please give some examples that cover all scenarios.
by TJ
17 Apr 2022
Forum: MultiCharts
Topic: Help converting some EasyLanguage
Replies: 3
Views: 939

Re: Help converting some EasyLanguage

Rectangles seem to stay when you change the chart interval. Any idea why text labels don't? (Sometimes they do, sometimes not.)
Computers are dumb. They do what they are told.
by TJ
16 Apr 2022
Forum: MultiCharts
Topic: Help converting some EasyLanguage
Replies: 3
Views: 939

Re: Help converting some EasyLanguage

This is not EasyLanguage.
This is TS' new OOP Language with some Easylanguage syntax.
It is not possible to do a translation. At least not an easy direct translation.
by TJ
12 Apr 2022
Forum: MultiCharts
Topic: How to plot yesterday's 1st session close on today's chart
Replies: 2
Views: 699

Re: How to plot yesterday's 1st session close on today's chart

What do you mean by "difficulty to plot yesterday's 1st session Close"? Please state your MultiCharts version and build number. Who is your dataprovider? What is the symbol? What is the chart resolution? Are you on Exchange time? or Local time? What is your chart session time? 24/7? or RTH? Is this ...
by TJ
11 Apr 2022
Forum: MultiCharts
Topic: plot yesterdays close [SOLVED]
Replies: 7
Views: 1796

Re: plot yesterdays close [SOLVED]

I have the same difficulty that I want to plot the "close" of yesterday's specific time on today's chart for reference. I used closeD(1) and that only get me the close at the end of last trading day. Please advise. You are looking for a specific time, not the close of the day. Please start a new th...
by TJ
04 Apr 2022
Forum: MultiCharts
Topic: Data1 Data2
Replies: 6
Views: 1965

Re: Data1 Data2

Can you explain, in your view, the function and purpose of "intrabarpersist" ?
by TJ
03 Apr 2022
Forum: MultiCharts
Topic: Better Volume Indicator not showing
Replies: 2
Views: 776

Re: Better Volume Indicator not showing

Do you know if your quotes have volume data?

You can add a basic volume indicator to the bottom to see if you have in fact have volume data.
by TJ
22 Mar 2022
Forum: MultiCharts
Topic: Data1 Data2
Replies: 6
Views: 1965

Re: Data1 Data2

by TJ
15 Mar 2022
Forum: MultiCharts
Topic: How do I calculate the distance in points/ticks from Close to a Moving Average? [SOLVED]
Replies: 4
Views: 1179

Re: How do I calculate the distance in points/ticks from Close to a Moving Average? [SOLVED]

go to the wiki

look up the keyword PRINT

study the usage example

pay attention to the explanation of
Expression:C:D
by TJ
15 Mar 2022
Forum: MultiCharts
Topic: Data1 Data2 update
Replies: 2
Views: 778

Re: Data1 Data2 update

Data1 is the drummer. He sets the beat.

Have you tried Data1 as 2 min and Data2 as a multiple of data1?
by TJ
10 Mar 2022
Forum: MultiCharts
Topic: Kasebar-problem
Replies: 3
Views: 902

Re: Kasebar-problem

You need to write some notes and draw some arrows on your charts.
As is, no one can follow your chain of thought. No one can tell what is right and what is wrong, and what are your expectations.
by TJ
05 Mar 2022
Forum: MultiCharts
Topic: Using Global Variable for Strings
Replies: 2
Views: 841

Re: Using Global Variable for Strings

have you read the doc?
by TJ
02 Mar 2022
Forum: MultiCharts
Topic: RS(vsIndex)
Replies: 3
Views: 1396

Re: RS(vsIndex)

by TJ
02 Mar 2022
Forum: MultiCharts
Topic: RS(vsIndex)
Replies: 3
Views: 1396

Re: RS(vsIndex)

See post #1 & #2
viewtopic.php?t=11713
by TJ
25 Feb 2022
Forum: MultiCharts
Topic: Same code and inputs between MultiCharts and TS, different outputs
Replies: 4
Views: 944

Re: Same code and inputs between MultiCharts and TS, different outputs

That's difficult to say . . . it could be one of a million things.

Maybe one chart is 24 hrs and the other is RTH?
or a rollover of a continuous contract? One is back adjusted but the other is not?
by TJ
25 Feb 2022
Forum: MultiCharts
Topic: Same code and inputs between MultiCharts and TS, different outputs
Replies: 4
Views: 944

Re: Same code and inputs between MultiCharts and TS, different outputs

GIGO

Your MC data is different.
See the LONG bar at the beginning of the day.
by TJ
13 Feb 2022
Forum: MultiCharts
Topic: Buy Sell Line
Replies: 5
Views: 1281

Re: Buy Sell Line

by TJ
13 Feb 2022
Forum: MultiCharts
Topic: Buy Sell Line
Replies: 5
Views: 1281

Re: Buy Sell Line

You have a concept . Your concept is crystal clear only to you , in your mind. It is fuzzy to others . To convert your concept to programmable instructions, first, you have to re-write your concept as if you are teaching a 10 year old to trade. You have to write out the instructions and directions, ...
by TJ
13 Feb 2022
Forum: MultiCharts
Topic: What/Where are MC`s limits??? [SOLVED]
Replies: 3
Views: 1049

Re: What/Where are MC`s limits??? [SOLVED]

To make the discussion meaningful, You need to specify your computer set up, RAM, Ghz? number of cores? your internet bandwidth, how many people are sharing your internet? your router make and model, are you using mesh? what is your distance to your broker? What is your ping time. Yes, have you chec...
by TJ
12 Feb 2022
Forum: MultiCharts
Topic: Daily bar calculation but intraday order entry [SOLVED]
Replies: 9
Views: 3140

Re: Daily bar calculation but intraday order entry [SOLVED]

Developing a system is about experiments and experiments and experiments and . . .
You have to try all permutations to see which one works best for you.
by TJ
11 Feb 2022
Forum: MultiCharts
Topic: Daily bar calculation but intraday order entry [SOLVED]
Replies: 9
Views: 3140

Re: Daily bar calculation but intraday order entry [SOLVED]

You might think your logic is on a daily basis, but you are trading on an intraday basis.
So your analysis must use intraday methods.
by TJ
07 Feb 2022
Forum: MultiCharts
Topic: Calculate the distance in points from close to moving average [SOLVED]
Replies: 18
Views: 3622

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

wow thank you Barbo, I did not know that the order of the variables definitions affected the order of their processing, I thought it was just a list so to speak. EasyLanguage/PowerLanguage is a Procedural Language. ie the codes are processed and executed one line at a time. Except the declarations ...
by TJ
07 Feb 2022
Forum: MultiCharts
Topic: Calculate the distance in points from close to moving average [SOLVED]
Replies: 18
Views: 3622

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

If this is a coding question,
you have to post your code.
by TJ
25 Jan 2022
Forum: MultiCharts
Topic: PL equivalent of [SOLVED]
Replies: 1
Views: 690

Re: PL equivalent of [SOLVED]

Try this:

Code: Select all

Once Begin If YEAR > YEAR[1] then DayOfYearCounter = 0; END; If DATE > DATE[1] then DayOfYearCounter = DayOfYearCounter +1;
by TJ
19 Jan 2022
Forum: MultiCharts
Topic: Plotting True & False variables in imported indicators
Replies: 4
Views: 1008

Re: Plotting True & False variables in imported indicators

If this is a coding question, you have to post your codes.
by TJ
19 Jan 2022
Forum: MultiCharts
Topic: Help with Missing Bar
Replies: 4
Views: 890

Re: Help with Missing Bar

I remember seeing this before,
but I don't remember the solution. (sorry blame the Alzheimer)

You can use LiveChat to connect to techsupport. They can sort it out for you.
by TJ
18 Jan 2022
Forum: MultiCharts
Topic: Help with Missing Bar
Replies: 4
Views: 890

Re: Help with Missing Bar

check your session setting
if it is 24/7, then the day won't be closed until midnight.
by TJ
16 Jan 2022
Forum: MultiCharts
Topic: PlotPaintBar Compliler Error
Replies: 2
Views: 717

Re: PlotPaintBar Compliler Error

Please go to Wiki and look up the usage example of PlotPaintBar. PlotPaintBar is the equivalent of: Plot1(BarHigh); Plot2(BarLow); Plot3(BarOpen); Plot4(BarClose); Try this: PlotPaintBar(O, H, L, C, "OHLC", default); if trend = 1 then begin SetPlotColor(1, Blue); SetPlotColor(2, Blue); SetPlotColor(...
by TJ
15 Jan 2022
Forum: MultiCharts
Topic: PlotPaintBar Compliler Error
Replies: 2
Views: 717

Re: PlotPaintBar Compliler Error

See post #1 and #2
1. [FAQ] How to Post Codes ... so that people can read.
viewtopic.php?t=11713
by TJ
13 Jan 2022
Forum: MultiCharts
Topic: How to combine ASCII and real time data
Replies: 1
Views: 615

Re: How to combine ASCII and real time data

you can first import the ASCII into the symbol
MC will append the real-time data into the symbol.
by TJ
12 Jan 2022
Forum: MultiCharts
Topic: Trouble with getting flat while pyramiding orders
Replies: 3
Views: 879

Re: Trouble with getting flat while pyramiding orders

This is quite a complex undertaking; I would engage a professional programmer. It is better to make the money to pay the programmer than to save money but getting stuck.

As a practice, Data1 should not be longer than 1 day.
by TJ
06 Jan 2022
Forum: MultiCharts
Topic: Loading data for Delta-Chart tries to load too many days
Replies: 4
Views: 971

Re: Loading data for Delta-Chart tries to load too many days

How many indicators/strategies you are running?
How much back data do they need?

eg. a 20 period moving average requires a minimum of 20 bars of data to do the first calculation.
by TJ
06 Jan 2022
Forum: MultiCharts
Topic: CQG Chart freeze
Replies: 4
Views: 1036

Re: CQG Chart freeze

What other software are you running?
Do you have anti-virus?

You can check your Taskmanager for opened processes.
by TJ
05 Jan 2022
Forum: MultiCharts
Topic: Trendline Indicator Slowing Down MC
Replies: 2
Views: 702

Re: Trendline Indicator Slowing Down MC

MultiCharts is a tick driven software. Everytime a tick comes it, the indicator will recalculate itself, and updates the variables and redraws the plots. Trendline is different from Plots. A new Plot will replace the old plot. Your code as is, it draws a new line for every new tick that came in. If ...
by TJ
05 Jan 2022
Forum: MultiCharts
Topic: MC using IB as datasource
Replies: 5
Views: 2051

Re: MC using IB as datasource

You can use LiveChat to connect to MC techsupport; they can sort it out for you.
by TJ
05 Jan 2022
Forum: MultiCharts
Topic: MC using IB as datasource
Replies: 5
Views: 2051

Re: MC using IB as datasource

Can you open the IB Trader Workstation and see if you can open the TLSA chart?
by TJ
05 Jan 2022
Forum: MultiCharts
Topic: Inconsistent back testing for strategy
Replies: 5
Views: 1165

Re: Inconsistent back testing for strategy

IOG = Intrabar Order Generation
by TJ
05 Jan 2022
Forum: MultiCharts
Topic: MC using IB as datasource
Replies: 5
Views: 2051

Re: MC using IB as datasource

What symbols have you subscribed in IB ?
by TJ
03 Jan 2022
Forum: MultiCharts
Topic: DEbug Script
Replies: 1
Views: 653

Re: DEbug Script

See post #1 & #2
1. [FAQ] How to Post Codes ... so that people can read.
viewtopic.php?t=11713
by TJ
01 Jan 2022
Forum: MultiCharts
Topic: Inconsistent back testing for strategy
Replies: 5
Views: 1165

Re: Inconsistent back testing for strategy

Things you can check:

Time frame -- are you using 24 hr day? or RTH day?
Local time? or Exchange time?

IOG ?
by TJ
22 Dec 2021
Forum: MultiCharts
Topic: Error creating a function [SOLVED]
Replies: 2
Views: 850

Re: Error creating a function [SOLVED]

What name did you use for this function?
by TJ
19 Dec 2021
Forum: MultiCharts
Topic: change order of indicators [SOLVED]
Replies: 9
Views: 1445

Re: change order of indicators [SOLVED]

Right click on the scale.
by TJ
19 Dec 2021
Forum: MultiCharts
Topic: Add additional securities to indicator
Replies: 6
Views: 979

Re: Add additional securities to indicator

"Invisible" is the way to do it.

If you need to use the data, you must have it on the chart, whether visible or not.
by TJ
09 Dec 2021
Forum: MultiCharts
Topic: How can I prevent this?
Replies: 8
Views: 1992

Re: How can I prevent this?

is there any reason you do not want to use IB data?
by TJ
09 Dec 2021
Forum: MultiCharts
Topic: Profitable week's open [SOLVED]
Replies: 3
Views: 856

Re: Profitable week's open [SOLVED]

What if Monday is a holiday? What would you like to do?
by TJ
24 Nov 2021
Forum: MultiCharts
Topic: Volume Indicator
Replies: 3
Views: 950

Re: Volume Indicator

In EasyLanguage/PowerLanguage, VOLUME means ticks, and TICKS means volume. (It's a long story; This is a legacy problem that goes back 30+ years) For more info, please read the descriptions of each keyword in the PowerLanguage Keyword Reference: https://www.multicharts.com/trading-software/index.php...
by TJ
22 Nov 2021
Forum: MultiCharts
Topic: Fixed step trailing
Replies: 2
Views: 662

Re: Fixed step trailing

MC/EL frequently triggered traps (how to avoid)

viewtopic.php?t=7665
by TJ
22 Nov 2021
Forum: MultiCharts
Topic: Fixed step trailing
Replies: 2
Views: 662

Re: Fixed step trailing

by TJ
18 Nov 2021
Forum: MultiCharts
Topic: stop loss order cannot be executed
Replies: 2
Views: 633

Re: stop loss order cannot be executed

If this is a coding question, you will need to post your codes.

ps. stoploss works intra-bar regardless whether IOG is used.
by TJ
17 Nov 2021
Forum: MultiCharts
Topic: current price and intraday order?
Replies: 1
Views: 552

Re: current price and intraday order?

See post #1 & 2
1. [FAQ] How to Post Codes ... so that people can read.
viewtopic.php?t=11713
by TJ
16 Nov 2021
Forum: MultiCharts
Topic: ascii mapping but no data.
Replies: 2
Views: 654

Re: ascii mapping but no data.

You can use LiveChat to connect to the techsupport, so that they can examin your files.
by TJ
28 Oct 2021
Forum: MultiCharts
Topic: Chart time
Replies: 1
Views: 596

Re: Chart time

See post #4
(4) [FAQ] Symbol/Chart Sessions
viewtopic.php?t=6845
by TJ
26 Oct 2021
Forum: MultiCharts
Topic: Issue: great discrepancy between ticks charts from live session vs ticks charts from historical data feed
Replies: 22
Views: 4206

Re: Issue: great discrepancy between ticks charts from live session vs ticks charts from historical data feed

. . . I know that Multicharts can only treat the data received by the data providers but we are talking of such a tremendous difference that I can’t understand that such an issue hasn’t been addressed in some way. This baffling me that you are developing such a fantastic software leaving that aside...
by TJ
25 Oct 2021
Forum: MultiCharts
Topic: Optimization Max Core Usage
Replies: 5
Views: 1547

Re: Optimization Max Core Usage

Hi TJ, First of all, I just want to say thanks. There have been so many other posts that I have found your responses to be super helpful over the years, and you are probably one of the most common names that I recognize on here. So thanks for all you provide to this community! It is amazing! . . . ...
by TJ
25 Oct 2021
Forum: MultiCharts
Topic: Optimization Max Core Usage
Replies: 5
Views: 1547

Re: Optimization Max Core Usage

See post #13
[FAQ] Backtesting vs Optimization CPU Usage -- Single Core vs Multi-Core vs Hyperthread
viewtopic.php?t=10811
by TJ
25 Oct 2021
Forum: MultiCharts
Topic: Optimization Max Core Usage
Replies: 5
Views: 1547

Re: Optimization Max Core Usage

Virtual cores are not real money. It is like having 20-x$1 dollar bills. It takes longer to count. The key is the real core size. In an optimization, you want brute force, you want horsepower, real horsepower, not fake horses. Using virtual cores will add a layer of housekeeping by the OS and the CPU.
by TJ
24 Oct 2021
Forum: MultiCharts
Topic: Optimization Max Core Usage
Replies: 5
Views: 1547

Re: Optimization Max Core Usage

Which worth more money? a $20 bill? or 20x$1 dollar bill?

Which one takes longer to count?
by TJ
13 Oct 2021
Forum: MultiCharts
Topic: Issue: great discrepancy between ticks charts from live session vs ticks charts from historical data feed
Replies: 22
Views: 4206

Re: Issue: great discrepancy between ticks charts from live session vs ticks charts from historical data feed

Thanks for your answer TJ. Thanks for your answer Kate as well. But sincerely I can’t understand at all that such an important issue hasn’t been addressed yet. If the problem comes from LMax then, you, Multicharts as a professional company you should inform and protect your customers displaying a h...
by TJ
07 Oct 2021
Forum: MultiCharts
Topic: Stoploss at Specific Dollar Amount
Replies: 6
Views: 1259

Re: Stoploss at Specific Dollar Amount

Thank you for the reply. But a stop order is not an alternative for a stoploss, because it expires after one bar, correct? On a 15 minute chart what good does it do to try to use a stop order as a stoploss if it expires after 15 minutes if the specified price isn't hit during that bar? After that b...
by TJ
06 Oct 2021
Forum: MultiCharts
Topic: Fast way to convert strategy to data2 incoming data source
Replies: 4
Views: 949

Re: Fast way to convert strategy to data2 incoming data source

I don't trade CL. I haven't traded CL since 1980s. I afraid I don't have much experience or knowledge of the current market rhythm.
by TJ
05 Oct 2021
Forum: MultiCharts
Topic: Fast way to convert strategy to data2 incoming data source
Replies: 4
Views: 949

Re: Fast way to convert strategy to data2 incoming data source

CL is a different animal. For most of the instruments, you simply roll one contract into another. For CL, there are contracts for every month, but not all the months are actively traded by most traders. People skip certain months when they roll over. You can check the volume to see which is the acti...
by TJ
24 Sep 2021
Forum: MultiCharts
Topic: Strategy problem
Replies: 3
Views: 828

Re: Strategy problem

If this is a coding question, you will need to post your codes.
by TJ
23 Sep 2021
Forum: MultiCharts
Topic: Strategy problem
Replies: 3
Views: 828

Re: Strategy problem

How did you do your testin?
Back test? or Forward test? Real time Papertrading account?
by TJ
09 Sep 2021
Forum: MultiCharts
Topic: TV as Monitor?
Replies: 3
Views: 1624

TV as Monitor?

Anyone using TV as monitor?

Any tips?
I am not using it on my desk. I am planning to mount it on the wall where I can glance at a distance.

What size a TV are you using?
What kind of resolution?
Any thing to watch out for?
by TJ
07 Sep 2021
Forum: MultiCharts
Topic: Detect If Backtest Or AutoTrading [SOLVED]
Replies: 2
Views: 811

Re: Detect If Backtest Or AutoTrading [SOLVED]

Go to Wiki
7 PowerLanguage Keyword Reference

under
Environment Information‎ (16 P)

Look up
GetAppInfo
by TJ
02 Sep 2021
Forum: MultiCharts
Topic: Proper Exit Strategy Code For Each Entry Name
Replies: 4
Views: 951

Re: Proper Exit Strategy Code For Each Entry Name

See post #1 & #2
1. [FAQ] How to Post Codes ... so that people can read.
viewtopic.php?t=11713
by TJ
01 Sep 2021
Forum: MultiCharts
Topic: plot yesterdays close [SOLVED]
Replies: 7
Views: 1796

Re: plot yesterdays close [SOLVED]

Try this

Code: Select all

Var: close1(0); if d>d[1] then Close1 = Close[1]; Plot10( Close1, "Close1");
by TJ
01 Sep 2021
Forum: MultiCharts
Topic: plot yesterdays close [SOLVED]
Replies: 7
Views: 1796

Re: plot yesterdays close [SOLVED]

How do you want to plot yesterday's close line?
Where do you want to plot yesterday's close line?

Please draw a mock up diagram with notes indicating the specifics.
by TJ
26 Aug 2021
Forum: MultiCharts
Topic: Modeling Limit order fills in an indicator [SOLVED]
Replies: 6
Views: 1286

Re: Modeling Limit order fills in an indicator [SOLVED]

I am glad you've got it working.
Thanks for the update.
by TJ
25 Aug 2021
Forum: MultiCharts
Topic: Modeling Limit order fills in an indicator [SOLVED]
Replies: 6
Views: 1286

Re: Modeling Limit order fills in an indicator [SOLVED]

. . . So if i wanted to simulate a limit order fill in an indicator I could calculate my entire signal on OHLCV[1] and see if the current bar fills it? would this be correct? for some context I am trying to track the PnL of a signal that I am not trading for observation purposes. I don't understand...
by TJ
25 Aug 2021
Forum: MultiCharts
Topic: Modeling Limit order fills in an indicator [SOLVED]
Replies: 6
Views: 1286

Re: Modeling Limit order fills in an indicator [SOLVED]

I am not sure if I understand what you are getting at. Allow me to explain the process. [IntrabarOrderGeneration=false] At the end of the bar (EOB), MultiCharts will calculate your trading logic, if your trading criteria is met, your order will be sent. (ie next tick will be the opening tick of next...
by TJ
19 Aug 2021
Forum: MultiCharts
Topic: work space wsp.
Replies: 7
Views: 1398

Re: work space wsp.

When I make changes to my wsp, I always make back up copies.
by TJ
19 Aug 2021
Forum: MultiCharts
Topic: work space wsp.
Replies: 7
Views: 1398

Re: work space wsp.

You should use LiveChat to connect to techsupport.
They can review you file and tell you what happened.
by TJ
02 Aug 2021
Forum: MultiCharts
Topic: Multicharts Not sending orders to IB for Futures [SOLVED]
Replies: 7
Views: 1628

Re: Multicharts Not sending orders to IB for Futures [SOLVED]

Call IB. This is a problem between you and IB.
Your MultiCharts program does not know the difference between a future contract and a stock order.
by TJ
31 Jul 2021
Forum: User Contributed Studies and Indicator Library
Topic: Converting 1 minute bar scripts to 1 second bar scripts
Replies: 3
Views: 1540

Re: Converting 1 minute bar scripts to 1 second bar scripts

if CurrentBar = 1 then begin You can also use the keyword ONCE . It might save some processing cycles. Because MultiCharts will re-evaluate the IF statement at every new tick to see if it meets the criteria. While the ONCE statement is only evaluated once when you load the indicator into the chart....
by TJ
23 Jul 2021
Forum: MultiCharts
Topic: High utilisation of computer resources, while working with Binance.
Replies: 8
Views: 6912

Re: High utilisation of computer resources, while working with Binance.

A software can only calculate as fast as the CPU clock cycle A CPU can only process as fast as the internal bus can transfer The internal bus can only transfer as fast as the memory can read and write The memory can only take whatever the internet buffer can handle It is a cycle of a cycle, there is...
by TJ
10 Jul 2021
Forum: MultiCharts
Topic: OpenEntryPrice
Replies: 3
Views: 837

Re: OpenEntryPrice

See post #1 & #2
viewtopic.php?t=11713
by TJ
08 Jul 2021
Forum: MultiCharts
Topic: Historic Data for MC
Replies: 4
Views: 1132

Re: Historic Data for MC

All exchanges have data services. You can either buy direct, or through their agents.
by TJ
04 Jul 2021
Forum: MultiCharts
Topic: Custom future contract, expect a notification when roll?
Replies: 9
Views: 1706

Re: Custom future contract, expect a notification when roll?

Please indicate your version and build number.
by TJ
30 Jun 2021
Forum: MultiCharts
Topic: Change limit order to market order when cannot fill after 5 seconds [SOLVED]
Replies: 7
Views: 1755

Re: Change limit order to market order when cannot fill after 5 seconds [SOLVED]

I have already tested for real time trade but failed. If do simple subtraction, it may have logical issue. For example, 135900 - 135859, the subtraction result is 41 second, but actually it is only 1 second. if currenttime_s - settle_s >5 then . . . Right, I forgotten about the 1/60 part. Please ch...
by TJ
30 Jun 2021
Forum: MultiCharts
Topic: Change limit order to market order when cannot fill after 5 seconds [SOLVED]
Replies: 7
Views: 1755

Re: Change limit order to market order when cannot fill after 5 seconds [SOLVED]

You do not need the convoluted codes.
All you need is a simple subtraction:

Code: Select all

if currenttime_s - settle_s >5 then . . .
Without seeing the whole code, this is the best I can suggest.
by TJ
30 Jun 2021
Forum: MultiCharts
Topic: Change limit order to market order when cannot fill after 5 seconds [SOLVED]
Replies: 7
Views: 1755

Re: Change limit order to market order when cannot fill after 5 seconds [SOLVED]

Please note: CurrentTime_s does not work in back test. It is for real time trade only.
by TJ
30 Jun 2021
Forum: MultiCharts
Topic: Best practice for Bid/Ask auto trading. [SOLVED]
Replies: 4
Views: 1669

Re: Best practice for Bid/Ask auto trading. [SOLVED]

There are many ways to achieve what you want to do . . .
You don't have to have data2.
You can try IOG IntraBarOrderGeneration.
by TJ
28 Jun 2021
Forum: MultiCharts
Topic: Change limit order to market order when cannot fill after 5 seconds [SOLVED]
Replies: 7
Views: 1755

Re: Change limit order to market order when cannot fill after 5 seconds [SOLVED]

Instead of Time_s
try CurrentTime_s

ps. Please check wiki for the CurrentTime_s format.
by TJ
26 Jun 2021
Forum: MultiCharts
Topic: Create file with date format as file name [SOLVED]
Replies: 1
Views: 753

Re: Create file with date format as file name [SOLVED]

Please go to the Wiki

8 PowerLanguage Keyword Reference
Date and Time Routines‎ (55 P)
look up FormatDate

There are usage syntax examples
by TJ
21 Jun 2021
Forum: MultiCharts
Topic: GetAppInfo(aioptimizing) doesn't work?
Replies: 7
Views: 1432

Re: GetAppInfo(aioptimizing) doesn't work?

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

Re: GetAppInfo(aioptimizing) doesn't work?

Hi TJ, Thanks for the reply. I see that all codes within the first begin/end, including the two "GVGetName" should not be executed during optimization (when GetAppInfo(aioptimizing) = 0). Sorry, I don't know what you are trying to point out. Your codes says if GetAppInfo(aioptimizing) = 0 then do i...

Go to advanced search