Search found 7765 matches

by TJ
Jul 26 2024
Forum: MultiCharts
Topic: Missing data2 error
Replies: 1
Views: 21

Re: Missing data2 error

Please change AverageFC to regular Average.

Please do not use AverageFC in the future.
AverageFC is a function, not a keyword. It was designed in the early days when CPU computing power was low and this is a shortcut to make calculations faster. It is a shortcut, ie it has limitations.
by TJ
Jul 18 2024
Forum: MultiCharts
Topic: Intersection of moving averages
Replies: 1
Views: 98

Re: Intersection of moving averages

You can start here:
viewtopic.php?t=6929
by TJ
Jul 10 2024
Forum: MultiCharts
Topic: Paint Bar Study for Multicharts
Replies: 1
Views: 221

Re: Paint Bar Study for Multicharts

That's a very broad question.

You can start here:

viewforum.php?f=16

viewforum.php?f=5
by TJ
Jul 06 2024
Forum: MultiCharts
Topic: Comparing instrument data within strategy
Replies: 2
Views: 297

Re: Comparing instrument data within strategy

You will need 2 data streams on the chart.
Data1 is always the trading instrument.
You can use Data2 for your SPY ATR.

This is a start.

Look for multi-data analysis in your search.
The FAQ is a good resource.
by TJ
Jun 26 2024
Forum: MultiCharts
Topic: Invalid trade route
Replies: 6
Views: 484

Re: Invalid trade route

You should make a screenshot of the error message and post it with your question.
by TJ
Jun 26 2024
Forum: MultiCharts
Topic: 2 Data Series not working [SOLVED]
Replies: 6
Views: 939

Re: 2 Data Series not working [SOLVED]

See posts #1&2
viewtopic.php?t=11713
by TJ
Jun 26 2024
Forum: MultiCharts
Topic: 2 Data Series not working [SOLVED]
Replies: 6
Views: 939

Re: 2 Data Series not working [SOLVED]

Please post your code. Not everyone wants to open a pla file.


See posts #1&2
viewtopic.php?t=11713
by TJ
Jun 19 2024
Forum: MultiCharts
Topic: Parentheses [SOLVED]
Replies: 1
Views: 626

Re: Parentheses [SOLVED]

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

Re: Signal Format

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

Re: Saving Current Bar

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

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
Jun 12 2024
Forum: MultiCharts
Topic: Plot a dot above/below a bar. [SOLVED]
Replies: 3
Views: 727

Re: Plot a dot above/below a bar. [SOLVED]

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

Re: Plot a dot above/below a bar. [SOLVED]

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
Jun 12 2024
Forum: MultiCharts
Topic: Saving Current Bar
Replies: 8
Views: 812

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
Jun 10 2024
Forum: MultiCharts
Topic: Renko ATR
Replies: 1
Views: 376

Re: Renko ATR

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

Re: AWS EC2 Instance Types for automated Trading

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

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
Apr 22 2024
Forum: MultiCharts
Topic: Code issues [SOLVED]
Replies: 9
Views: 857

Re: Code issues [SOLVED]

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

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
Apr 09 2024
Forum: MultiCharts
Topic: Orders Partial Take Profit
Replies: 4
Views: 535

Re: Orders Partial Take Profit

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

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
Mar 14 2024
Forum: MultiCharts
Topic: Alert -- If Realtime Data is Disconnected between time
Replies: 3
Views: 551

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

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

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
Feb 17 2024
Forum: MultiCharts
Topic: PC Autotrading
Replies: 4
Views: 574

Re: PC Autotrading

What fell asleep?

Your computer?

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

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
Jan 18 2024
Forum: MultiCharts
Topic: Use python to compile C++ DLL that is usable by Multicharts
Replies: 18
Views: 2252

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
Dec 25 2023
Forum: MultiCharts
Topic: Data loading speed improvement
Replies: 11
Views: 3471

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
Dec 24 2023
Forum: MultiCharts
Topic: MA Extension
Replies: 2
Views: 430

Re: MA Extension

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

Re: Array Error

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

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
Dec 12 2023
Forum: MultiCharts
Topic: help with vert TrendLine/Timeline coding question [SOLVED]
Replies: 4
Views: 829

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
Dec 11 2023
Forum: MultiCharts
Topic: SetStopLoss [SOLVED]
Replies: 5
Views: 1073

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
Dec 10 2023
Forum: MultiCharts
Topic: SetStopLoss [SOLVED]
Replies: 5
Views: 1073

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; Se...
by TJ
Dec 10 2023
Forum: MultiCharts
Topic: SetStopLoss [SOLVED]
Replies: 5
Views: 1073

Re: SetStopLoss [SOLVED]

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

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
Dec 04 2023
Forum: MultiCharts
Topic: renko chart ma cross not matching up [SOLVED]
Replies: 2
Views: 618

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
Dec 04 2023
Forum: MultiCharts
Topic: multicharts/powerlanguage tutor?
Replies: 1
Views: 459

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
Nov 23 2023
Forum: MultiCharts
Topic: New Bar appearing as a dot [SOLVED]
Replies: 2
Views: 556

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
Nov 13 2023
Forum: MultiCharts
Topic: Divide by zero exception during the portfolio backtesting [SOLVED]
Replies: 4
Views: 947

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
Nov 06 2023
Forum: MultiCharts
Topic: How to add to an open position
Replies: 8
Views: 1844

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
Oct 26 2023
Forum: MultiCharts
Topic: Coding Gap down strategy
Replies: 1
Views: 587

Re: Coding Gap down strategy

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

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
Oct 20 2023
Forum: MultiCharts
Topic: Multiple Positions + Multiple exit targets [SOLVED]
Replies: 2
Views: 864

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
Oct 19 2023
Forum: MultiCharts
Topic: LINE GRAPH BUT BASED ON HIGH/LOW INSTEAD OF CLOSE [SOLVED]
Replies: 7
Views: 1178

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
Oct 17 2023
Forum: MultiCharts
Topic: HIGH CPU LOAD
Replies: 4
Views: 828

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
Oct 16 2023
Forum: MultiCharts
Topic: VWAP Bands Problem with Exception Floating-point division by zero
Replies: 11
Views: 1561

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
Oct 11 2023
Forum: MultiCharts
Topic: When the profit target is reached, I would like auto-trading automatically stop [SOLVED]
Replies: 5
Views: 1103

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
Oct 11 2023
Forum: MultiCharts
Topic: When the profit target is reached, I would like auto-trading automatically stop [SOLVED]
Replies: 5
Views: 1103

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
Oct 11 2023
Forum: MultiCharts
Topic: When the profit target is reached, I would like auto-trading automatically stop [SOLVED]
Replies: 5
Views: 1103

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
Oct 10 2023
Forum: MultiCharts
Topic: LINE GRAPH BUT BASED ON HIGH/LOW INSTEAD OF CLOSE [SOLVED]
Replies: 7
Views: 1178

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
Oct 09 2023
Forum: MultiCharts
Topic: LINE GRAPH BUT BASED ON HIGH/LOW INSTEAD OF CLOSE [SOLVED]
Replies: 7
Views: 1178

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
Oct 05 2023
Forum: MultiCharts
Topic: Buy Next Bar at Price Limit
Replies: 4
Views: 758

Re: Buy Next Bar at Price Limit

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

Re: Buy Next Bar at Price Limit

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

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
Sep 18 2023
Forum: MultiCharts
Topic: Signal did not calculate all available price data
Replies: 2
Views: 554

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
Sep 18 2023
Forum: MultiCharts
Topic: Array, variable or refinput expected [SOLVED]
Replies: 2
Views: 781

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
Sep 18 2023
Forum: MultiCharts
Topic: SessionLastBar in live trading [SOLVED]
Replies: 7
Views: 1464

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
Sep 17 2023
Forum: MultiCharts
Topic: SessionLastBar in live trading [SOLVED]
Replies: 7
Views: 1464

Re: SessionLastBar in live trading [SOLVED]

It is a hindsight thing.

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

Re: DCA or multiples orders and exit

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

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
Aug 01 2023
Forum: MultiCharts
Topic: Find top X S&P500 companies
Replies: 4
Views: 720

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
Jul 04 2023
Forum: MultiCharts
Topic: send text message telegram channel
Replies: 13
Views: 2082

Re: send text message telegram channel

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

Re: faulty backtest results when dataindex is used

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

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

Re: Help with a study - StopLoss

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

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
May 03 2023
Forum: MultiCharts
Topic: Precise backtesting on Renko charts
Replies: 5
Views: 1152

Re: Precise backtesting on Renko charts

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

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
Apr 11 2023
Forum: MultiCharts
Topic: what does this mean? restart computer and restart mc, still got error
Replies: 3
Views: 746

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
Apr 09 2023
Forum: MultiCharts
Topic: Signals based on Trade data series and buy and sell based on bid and ask data series
Replies: 3
Views: 797

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
Apr 07 2023
Forum: MultiCharts
Topic: Volume for Data2
Replies: 2
Views: 677

Re: Volume for Data2

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

Re: Volume for Data2

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

Re: "maximum number of bars study will reference"

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

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 num...
by TJ
Mar 20 2023
Forum: MultiCharts
Topic: lost my strategy
Replies: 7
Views: 1402

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
Mar 19 2023
Forum: MultiCharts
Topic: lost my strategy
Replies: 7
Views: 1402

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
Mar 17 2023
Forum: MultiCharts
Topic: About displaying moving averages
Replies: 6
Views: 1212

Re: About displaying moving averages

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

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
Mar 16 2023
Forum: MultiCharts
Topic: About intraday highs
Replies: 2
Views: 622

Re: About intraday highs

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

Re: About RateofChange Documentation

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

Re: About displaying moving averages

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

Re: Replicating session closing price on TS & MC

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

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
Feb 23 2023
Forum: MultiCharts
Topic: SetStopLoss with highs and lows.
Replies: 12
Views: 2046

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
Feb 23 2023
Forum: MultiCharts
Topic: SetStopLoss with highs and lows.
Replies: 12
Views: 2046

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
Feb 18 2023
Forum: MultiCharts
Topic: TV as Monitor?
Replies: 3
Views: 1856

Re: TV as Monitor?

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

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

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
Feb 11 2023
Forum: MultiCharts
Topic: Line Chart/Graph Based on High or Low and not based on Closed Prices
Replies: 4
Views: 950

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
Feb 11 2023
Forum: MultiCharts
Topic: Line Chart/Graph Based on High or Low and not based on Closed Prices
Replies: 4
Views: 950

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
Jan 22 2023
Forum: MultiCharts
Topic: Why is only UP Volume counted in this print statement? [SOLVED]
Replies: 4
Views: 1095

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
Jan 15 2023
Forum: MultiCharts
Topic: Sell signal not working for me [SOLVED]
Replies: 2
Views: 845

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
Jan 12 2023
Forum: MultiCharts
Topic: Adv / Decl Line Indicator
Replies: 1
Views: 594

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
Jan 07 2023
Forum: MultiCharts
Topic: Advice for new user/ testing out first strategies .
Replies: 3
Views: 976

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
Jan 07 2023
Forum: MultiCharts
Topic: Advice for new user/ testing out first strategies .
Replies: 3
Views: 976

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

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

Re: Pre-built Signals.

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

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
Dec 29 2022
Forum: MultiCharts
Topic: Breakout Session Strategy
Replies: 6
Views: 1324

Re: Breakout Session Strategy

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

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
Nov 30 2022
Forum: MultiCharts
Topic: Help with coding indicator pls [SOLVED]
Replies: 6
Views: 1442

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
Nov 29 2022
Forum: MultiCharts
Topic: Help with coding indicator pls [SOLVED]
Replies: 6
Views: 1442

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
Nov 29 2022
Forum: MultiCharts
Topic: Help with coding indicator pls [SOLVED]
Replies: 6
Views: 1442

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 ...
by TJ
Nov 23 2022
Forum: MultiCharts
Topic: DOM Quantities are incorrect
Replies: 9
Views: 1471

Re: DOM Quantities are incorrect

Which account are you using?

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

Re: Weekly timeframe buy in close bar

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

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
Nov 13 2022
Forum: MultiCharts
Topic: smoothed moving average in MS
Replies: 3
Views: 1014

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
Nov 13 2022
Forum: MultiCharts
Topic: Weekly timeframe buy in close bar
Replies: 7
Views: 1553

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
Nov 12 2022
Forum: MultiCharts
Topic: smoothed moving average in MS
Replies: 3
Views: 1014

Re: smoothed moving average in MS

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

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
Oct 04 2022
Forum: MultiCharts
Topic: Can MultiCharts handle hundreds or thousands of strategies?
Replies: 22
Views: 4238

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
Oct 04 2022
Forum: MultiCharts
Topic: Can MultiCharts handle hundreds or thousands of strategies?
Replies: 22
Views: 4238

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
Sep 26 2022
Forum: MultiCharts
Topic: Daily Hi Low Lines
Replies: 5
Views: 1342

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
Sep 26 2022
Forum: MultiCharts
Topic: Daily Hi Low Lines
Replies: 5
Views: 1342

Re: Daily Hi Low Lines

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

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
Aug 29 2022
Forum: MultiCharts
Topic: vertical line on chart [SOLVED]
Replies: 10
Views: 2984

Re: vertical line on chart [SOLVED]

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

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
Aug 27 2022
Forum: MultiCharts
Topic: vertical line on chart [SOLVED]
Replies: 10
Views: 2984

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
Aug 20 2022
Forum: MultiCharts
Topic: Clickable Button that toggles a boolean
Replies: 4
Views: 1282

Re: Clickable Button that toggles a boolean

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

Re: Clickable Button that toggles a boolean

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

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

KEYWORD [ n-th bar ]

eg

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

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

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

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
Jul 05 2022
Forum: MultiCharts
Topic: I ask for help with the script Power Language.
Replies: 2
Views: 868

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
Jul 01 2022
Forum: MultiCharts
Topic: Best practice for Bid/Ask auto trading. [SOLVED]
Replies: 4
Views: 2047

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
Jun 28 2022
Forum: MultiCharts
Topic: ATR at entry price [SOLVED]
Replies: 5
Views: 1500

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
Jun 27 2022
Forum: MultiCharts
Topic: ATR at entry price [SOLVED]
Replies: 5
Views: 1500

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
Jun 21 2022
Forum: MultiCharts
Topic: Create a line label within a script
Replies: 1
Views: 696

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
Jun 20 2022
Forum: MultiCharts
Topic: Indicator Signal not plotting
Replies: 6
Views: 1623

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
Jun 20 2022
Forum: MultiCharts
Topic: Indicator Signal not plotting
Replies: 6
Views: 1623

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
Jun 20 2022
Forum: MultiCharts
Topic: Indicator Signal not plotting
Replies: 6
Views: 1623

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
Jun 20 2022
Forum: MultiCharts
Topic: Indicator Signal not plotting
Replies: 6
Views: 1623

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
Jun 10 2022
Forum: MultiCharts
Topic: Why do I cann't register my MC12
Replies: 2
Views: 880

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
Jun 09 2022
Forum: MultiCharts
Topic: Scaling out code
Replies: 1
Views: 684

Re: Scaling out code

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

Re: Problem with the Custom 1 Line indicator

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

Re: To signal mixed between Short and long

Please take a look this thread:

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

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
May 14 2022
Forum: MultiCharts
Topic: day open indicator question
Replies: 2
Views: 848

Re: day open indicator question

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

Re: day open indicator question

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

Re: OHLC Yesterday + Today Open [SOLVED]

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

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
May 02 2022
Forum: MultiCharts
Topic: Request: dark theme for MultiCharts!
Replies: 10
Views: 3263

Re: Request: dark theme for MultiCharts!

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

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
Apr 17 2022
Forum: MultiCharts
Topic: Help converting some EasyLanguage
Replies: 3
Views: 1176

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
Apr 16 2022
Forum: MultiCharts
Topic: Help converting some EasyLanguage
Replies: 3
Views: 1176

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
Apr 12 2022
Forum: MultiCharts
Topic: How to plot yesterday's 1st session close on today's chart
Replies: 2
Views: 813

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...
by TJ
Apr 11 2022
Forum: MultiCharts
Topic: plot yesterdays close [SOLVED]
Replies: 7
Views: 2116

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 star...
by TJ
Apr 04 2022
Forum: MultiCharts
Topic: Data1 Data2
Replies: 6
Views: 2180

Re: Data1 Data2

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

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
Mar 22 2022
Forum: MultiCharts
Topic: Data1 Data2
Replies: 6
Views: 2180

Re: Data1 Data2

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

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
Mar 15 2022
Forum: MultiCharts
Topic: Data1 Data2 update
Replies: 2
Views: 900

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
Mar 10 2022
Forum: MultiCharts
Topic: Kasebar-problem
Replies: 3
Views: 1053

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
Mar 05 2022
Forum: MultiCharts
Topic: Using Global Variable for Strings
Replies: 2
Views: 1019

Re: Using Global Variable for Strings

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

Re: RS(vsIndex)

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

Re: RS(vsIndex)

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

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
Feb 25 2022
Forum: MultiCharts
Topic: Same code and inputs between MultiCharts and TS, different outputs
Replies: 4
Views: 1145

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
Feb 13 2022
Forum: MultiCharts
Topic: Buy Sell Line
Replies: 5
Views: 1448

Re: Buy Sell Line

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

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
Feb 13 2022
Forum: MultiCharts
Topic: What/Where are MC`s limits??? [SOLVED]
Replies: 3
Views: 1258

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
Feb 12 2022
Forum: MultiCharts
Topic: Daily bar calculation but intraday order entry [SOLVED]
Replies: 9
Views: 3413

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
Feb 11 2022
Forum: MultiCharts
Topic: Daily bar calculation but intraday order entry [SOLVED]
Replies: 9
Views: 3413

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

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

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
Jan 25 2022
Forum: MultiCharts
Topic: PL equivalent of [SOLVED]
Replies: 1
Views: 916

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
Jan 19 2022
Forum: MultiCharts
Topic: Plotting True & False variables in imported indicators
Replies: 4
Views: 1240

Re: Plotting True & False variables in imported indicators

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

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
Jan 18 2022
Forum: MultiCharts
Topic: Help with Missing Bar
Replies: 4
Views: 1079

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
Jan 16 2022
Forum: MultiCharts
Topic: PlotPaintBar Compliler Error
Replies: 2
Views: 893

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); Set...
by TJ
Jan 15 2022
Forum: MultiCharts
Topic: PlotPaintBar Compliler Error
Replies: 2
Views: 893

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
Jan 13 2022
Forum: MultiCharts
Topic: How to combine ASCII and real time data
Replies: 1
Views: 766

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
Jan 12 2022
Forum: MultiCharts
Topic: Trouble with getting flat while pyramiding orders
Replies: 3
Views: 1033

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
Jan 06 2022
Forum: MultiCharts
Topic: Loading data for Delta-Chart tries to load too many days
Replies: 4
Views: 1117

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
Jan 06 2022
Forum: MultiCharts
Topic: CQG Chart freeze
Replies: 4
Views: 1212

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
Jan 05 2022
Forum: MultiCharts
Topic: Trendline Indicator Slowing Down MC
Replies: 2
Views: 828

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
Jan 05 2022
Forum: MultiCharts
Topic: MC using IB as datasource
Replies: 5
Views: 2297

Re: MC using IB as datasource

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

Re: MC using IB as datasource

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

Re: Inconsistent back testing for strategy

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

Re: MC using IB as datasource

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

Re: DEbug Script

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

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
Dec 22 2021
Forum: MultiCharts
Topic: Error creating a function [SOLVED]
Replies: 2
Views: 1111

Re: Error creating a function [SOLVED]

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

Re: change order of indicators [SOLVED]

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

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
Dec 09 2021
Forum: MultiCharts
Topic: How can I prevent this?
Replies: 8
Views: 2175

Re: How can I prevent this?

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

Re: Profitable week's open [SOLVED]

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

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
Nov 22 2021
Forum: MultiCharts
Topic: Fixed step trailing
Replies: 2
Views: 881

Re: Fixed step trailing

MC/EL frequently triggered traps (how to avoid)

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

Re: Fixed step trailing

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

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
Nov 17 2021
Forum: MultiCharts
Topic: current price and intraday order?
Replies: 1
Views: 675

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
Nov 16 2021
Forum: MultiCharts
Topic: ascii mapping but no data.
Replies: 2
Views: 769

Re: ascii mapping but no data.

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

Re: Chart time

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

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
Oct 25 2021
Forum: MultiCharts
Topic: Optimization Max Core Usage
Replies: 5
Views: 1963

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
Oct 25 2021
Forum: MultiCharts
Topic: Optimization Max Core Usage
Replies: 5
Views: 1963

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
Oct 25 2021
Forum: MultiCharts
Topic: Optimization Max Core Usage
Replies: 5
Views: 1963

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
Oct 24 2021
Forum: MultiCharts
Topic: Optimization Max Core Usage
Replies: 5
Views: 1963

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
Oct 13 2021
Forum: MultiCharts
Topic: Issue: great discrepancy between ticks charts from live session vs ticks charts from historical data feed
Replies: 22
Views: 4558

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
Oct 07 2021
Forum: MultiCharts
Topic: Stoploss at Specific Dollar Amount
Replies: 6
Views: 1431

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
Oct 06 2021
Forum: MultiCharts
Topic: Fast way to convert strategy to data2 incoming data source
Replies: 4
Views: 1195

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
Oct 05 2021
Forum: MultiCharts
Topic: Fast way to convert strategy to data2 incoming data source
Replies: 4
Views: 1195

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
Sep 24 2021
Forum: MultiCharts
Topic: Strategy problem
Replies: 3
Views: 1045

Re: Strategy problem

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

Re: Strategy problem

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

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
Sep 07 2021
Forum: MultiCharts
Topic: Detect If Backtest Or AutoTrading [SOLVED]
Replies: 2
Views: 1046

Re: Detect If Backtest Or AutoTrading [SOLVED]

Go to Wiki
7 PowerLanguage Keyword Reference

under
Environment Information‎ (16 P)

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

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
Sep 01 2021
Forum: MultiCharts
Topic: plot yesterdays close [SOLVED]
Replies: 7
Views: 2116

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
Sep 01 2021
Forum: MultiCharts
Topic: plot yesterdays close [SOLVED]
Replies: 7
Views: 2116

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
Aug 26 2021
Forum: MultiCharts
Topic: Modeling Limit order fills in an indicator [SOLVED]
Replies: 6
Views: 1607

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

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

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
Aug 25 2021
Forum: MultiCharts
Topic: Modeling Limit order fills in an indicator [SOLVED]
Replies: 6
Views: 1607

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
Aug 19 2021
Forum: MultiCharts
Topic: work space wsp.
Replies: 7
Views: 1559

Re: work space wsp.

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

Re: work space wsp.

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

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
Jul 31 2021
Forum: User Contributed Studies and Indicator Library
Topic: Converting 1 minute bar scripts to 1 second bar scripts
Replies: 3
Views: 2011

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
Jul 23 2021
Forum: MultiCharts
Topic: High utilisation of computer resources, while working with Binance.
Replies: 8
Views: 7331

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
Jul 10 2021
Forum: MultiCharts
Topic: OpenEntryPrice
Replies: 3
Views: 990

Re: OpenEntryPrice

See post #1 & #2
viewtopic.php?t=11713