Search found 7676 matches

by TJ
20 Mar 2023
Forum: MultiCharts
Topic: lost my strategy
Replies: 6
Views: 84

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: 6
Views: 84

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: 80

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: 80

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: 63

Re: About intraday highs

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

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: 80

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: 70

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: 343

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: 343

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: 343

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: 1051

Re: TV as Monitor?

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

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: 245

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: 119

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: 119

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: 159

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: 170

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: 139

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: 189

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: 189

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: 188

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: 269

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: 269

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: 94

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: 303

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: 303

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: 303

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: 388

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: 358

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: 358

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: 239

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: 358

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: 239

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: 358

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: 19
Views: 1115

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: 19
Views: 1115

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: 415

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: 415

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: 605

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: 1352

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: 1352

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: 1352

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: 465

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: 465

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: 472

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: 435

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: 813

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: 813

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: 312

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: 956

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: 537

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: 537

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: 276

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: 442

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: 442

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: 442

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: 442

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: 374

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: 282

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: 557

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: 359

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: 591

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: 327

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: 327

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: 432

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: 432

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: 1142

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: 366

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: 453

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: 453

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: 330

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: 921

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: 877

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: 387

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: 877

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: 588

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: 399

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: 464

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: 399

Re: Using Global Variable for Strings

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

Re: RS(vsIndex)

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

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: 434

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: 434

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: 675

Re: Buy Sell Line

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

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: 527

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: 2086

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: 2086

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: 1763

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: 1763

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: 320

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: 460

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: 422

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: 422

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: 325

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: 325

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: 346

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: 395

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: 441

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: 511

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: 341

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: 435

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: 435

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: 564

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: 435

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: 327

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: 564

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: 403

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: 670

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: 454

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: 923

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: 388

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: 509

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: 321

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: 321

Re: Fixed step trailing

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

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: 276

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: 331

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: 304

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: 2171

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: 706

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: 706

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: 706

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: 706

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: 2171

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: 647

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: 435

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: 435

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: 416

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: 416

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: 1051

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: 445

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: 497

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: 921

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: 921

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: 582

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: 582

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: 582

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: 716

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: 716

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: 807

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: 725

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: 1976

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: 456

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: 595

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: 945

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: 910

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: 910

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: 910

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: 956

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: 910

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: 415

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: 700

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: 700

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...
by TJ
20 Jun 2021
Forum: MultiCharts
Topic: GetAppInfo(aioptimizing) doesn't work?
Replies: 7
Views: 700

Re: GetAppInfo(aioptimizing) doesn't work?

I have formated your code for easy reading. You should indent the BEGIN to match the END, so that you can see which loop is operating. What do you see? Inputs: level(Numeric), s(string); Var: errorCode(0), printDir(0), content(""); if GetAppInfo(aioptimizing) = 0 then begin {B1} // GVGet 1 printDir ...
by TJ
18 Jun 2021
Forum: MultiCharts
Topic: Free quotes stopped working May 17th?
Replies: 12
Views: 2190

Re: Free quotes stopped working May 17th?

I would not even attempt to install the trial on the same PC. I would either use another PC or use VMWare and download the latest Windows 10 development environment from https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/ I have already used the latter approach for previous ve...
by TJ
13 Jun 2021
Forum: MultiCharts
Topic: intrabarpersist var doesn’t work in real time trade [SOLVED]
Replies: 8
Views: 963

Re: intrabarpersist var doesn’t work in real time trade [SOLVED]

Try this:

Code: Select all

var: mp(0); if mp > 0 and marketposition=0 then begin // reset variable end; if marketposition>mp then mp = marketposition;
by TJ
11 Jun 2021
Forum: MultiCharts
Topic: Price reach limit order, but cannot close position [SOLVED]
Replies: 6
Views: 751

Re: Price reach limit order, but cannot close position [SOLVED]

You an use any time frame; it does not matter.
As soon as the market reached X ticks of your price, you can start a counter.

I would suggest you to engage a professional programmer to help you with your project.
by TJ
09 Jun 2021
Forum: MultiCharts
Topic: Disappearing Text [SOLVED]
Replies: 10
Views: 3529

Re: Disappearing Text [SOLVED]

If you need help with a coding problem, please post your codes.
by TJ
07 Jun 2021
Forum: MultiCharts
Topic: Price reach limit order, but cannot close position [SOLVED]
Replies: 6
Views: 751

Re: Price reach limit order, but cannot close position [SOLVED]

You have a situation. You have to describe WHAT or HOW do you want to handle this situation. There are millions of different ways . . . unless you can pinpoint a specific action, no one can help you. Let me give you an example: 1. if the market came within X ticks of your price (say 2 ticks), start ...
by TJ
05 Jun 2021
Forum: MultiCharts
Topic: VPS/Cloud recommendations
Replies: 4
Views: 804

Re: VPS/Cloud recommendations

Tammy, your link is not working. Can you check and resend?
The link is fixed. Please try again.
by TJ
17 May 2021
Forum: MultiCharts
Topic: Options trading in MC?
Replies: 1
Views: 699

Re: Options trading in MC?

It's not worth the trouble.
If you want to do well in options, you need an options software that has options data feed.
Analysing options data is a 3 dimensional endeavor.
by TJ
04 May 2021
Forum: MultiCharts
Topic: Reducing the usage computer resources
Replies: 10
Views: 909

Re: Reducing the usage computer resources

You can use LiveChat with techsupport. They can give you help.
by TJ
04 May 2021
Forum: MultiCharts
Topic: Reducing the usage computer resources
Replies: 10
Views: 909

Re: Reducing the usage computer resources

Your memory is at the limit.

Probably some process crashed. You need to reboot.
by TJ
30 Apr 2021
Forum: MultiCharts
Topic: Multicharts + IB a bar late or a glitch?
Replies: 3
Views: 555

Re: Multicharts + IB a bar late or a glitch?

MultiCharts uses EOB (End of Bar) timing.

Most charting software use EOB timing.
by TJ
23 Apr 2021
Forum: MultiCharts
Topic: Multicharts Missing Trades in Live Trading
Replies: 23
Views: 2899

Re: Multicharts Missing Trades in Live Trading

There are a few possibilities for "missing" trades: 1. Coding error: You code was never triggered. (or triggered at the wrong place) 2. The trade was triggered, but was not sent. 3. The trade was triggered and sent, but never received by your broker. 4. The trade was triggered, sent, and received by...
by TJ
22 Apr 2021
Forum: MultiCharts
Topic: My newbie question about >= and >
Replies: 4
Views: 398

Re: My newbie question about >= and >

Wiki
Go to 8 PowerLanguage Keyword Reference
Look under
Math and Trig‎ (29 P)

ROUND
by TJ
22 Apr 2021
Forum: MultiCharts
Topic: Multicharts Missing Trades in Live Trading
Replies: 23
Views: 2899

Re: Multicharts Missing Trades in Live Trading

Do you have an audit trail?

Do you know how to make one?
by TJ
17 Apr 2021
Forum: MultiCharts
Topic: MC 14, safe to use or not?
Replies: 48
Views: 5129

Re: MC 14, safe to use or not?

Don't worry, an email to techsupp and they will put you back in v12.
by TJ
13 Apr 2021
Forum: MultiCharts
Topic: Flex Renko
Replies: 4
Views: 527

Re: Flex Renko

I am making an inquiry regarding this charting option and wondering what everyone's experience has been ? And please, especially TJ, do not send me a link to the wiki page that has Flex Renko outlined and explained. I just want to know if it's reliable and has no performance issues. There is only o...
by TJ
04 Apr 2021
Forum: MultiCharts
Topic: vertical line on chart [SOLVED]
Replies: 10
Views: 1352

Re: vertical line on chart [SOLVED]

Try this: Note: set plot style as Histogram Inputs: Line1(True), LineTime1(0830), LineColor1(DarkGray), Line2(True), LineTime2(1100), LineColor2(Red), Line3(True), LineTime3(1515), LineColor3(DarkGray); If Line1 and T >= LineTime1 and T[1] < LineTime1 then Plot11(c*2, "Line1", LineColor1) // set plo...
by TJ
04 Apr 2021
Forum: MultiCharts
Topic: vertical line on chart [SOLVED]
Replies: 10
Views: 1352

Re: vertical line on chart [SOLVED]

The code is not Easylanguage. It is in TS OOP extension.

It is impossible to make a translation or conversion to MultiCharts.
You have to rewrite the whole thing.
by TJ
03 Apr 2021
Forum: MultiCharts
Topic: vertical line on chart [SOLVED]
Replies: 10
Views: 1352

Re: vertical line on chart [SOLVED]

Please see post #1 & #2
viewtopic.php?t=11713
by TJ
31 Mar 2021
Forum: MultiCharts
Topic: Multiple timeframes - Weird indicator issue
Replies: 8
Views: 1014

Re: Multiple timeframes - Weird indicator issue

Again, the plot is totally correct, there's nothing wrong with the indicator's calculations. I'm only inquiring about why the color of the plots only prints when aligned with data1. I'm happy with the calculations, but not the colors that don't print. You need to write notes on the screen shot, wit...
by TJ
30 Mar 2021
Forum: MultiCharts
Topic: different setstoploss in two strategy on two charts [SOLVED]
Replies: 2
Views: 395

Re: different setstoploss in two strategy on two charts [SOLVED]

@traderaaa : You can post the image directly to this forum. Just click on the "Attachments" button to upload.
by TJ
24 Mar 2021
Forum: MultiCharts
Topic: MC 14 Difference between daysback and bars
Replies: 6
Views: 679

Re: MC 14 Difference between daysback and bars

Have you checked your data
count your bars/ticks
to make sure in every 24 hours period
you have the same number of (60X24/15) bars ?
by TJ
23 Mar 2021
Forum: MultiCharts
Topic: MC 14 Variable not receive all values.
Replies: 6
Views: 716

Re: MC 14 Variable not receive all values.

Can you elaborate a bit more . . .

What is not correct?
How is it no correct?

What is triggering the count increment?

What is the chart resolution?
by TJ
28 Feb 2021
Forum: MultiCharts
Topic: Backtest vs Real exotic phenomenon
Replies: 9
Views: 782

Re: Backtest vs Real exotic phenomenon

The only repeatable BT are on the time-based charts.
by TJ
28 Feb 2021
Forum: MultiCharts
Topic: Backtest vs Real exotic phenomenon
Replies: 9
Views: 782

Re: Backtest vs Real exotic phenomenon

It is 1.000 ticks from IQFeed. You are right. I should have checked that, but the charts are not identical.. I guess I have to check with IQFeed. Thank you and sorry for bothering you with a non MC related issue. No problem. The bars between the charts are not identical because the starting tick is...
by TJ
28 Feb 2021
Forum: MultiCharts
Topic: Backtest vs Real exotic phenomenon
Replies: 9
Views: 782

Re: Backtest vs Real exotic phenomenon

What is your chart resolution?

How many bars do you have on the chart?

Tick chart?
Take a look at the bars -- are they the same?
by TJ
26 Feb 2021
Forum: MultiCharts
Topic: Force exit at specific time of the day in Chart trading
Replies: 6
Views: 971

Re: Force exit at specific time of the day in Chart trading

One trick you can try is to set your session end time at X minutes before the actual time.
by TJ
26 Feb 2021
Forum: MultiCharts
Topic: Force exit at specific time of the day in Chart trading
Replies: 6
Views: 971

Re: Force exit at specific time of the day in Chart trading

. . .

Thanks for all the work you have put into your posts very helpful
You are welcome.

ps. How to post code -- see post #1 and post #2
viewtopic.php?t=11713
by TJ
26 Feb 2021
Forum: MultiCharts
Topic: Force exit at specific time of the day in Chart trading
Replies: 6
Views: 971

Re: Force exit at specific time of the day in Chart trading

Your chart resolution is your analysis resolution.
by TJ
19 Feb 2021
Forum: MultiCharts
Topic: Signals are not calculating [SOLVED]
Replies: 5
Views: 705

Re: Signals are not calculating [SOLVED]

You need to use LiveChat with techsupport.
by TJ
19 Feb 2021
Forum: MultiCharts
Topic: Signals are not calculating [SOLVED]
Replies: 5
Views: 705

Re: Signals are not calculating [SOLVED]

Real trade? or Backtest?

What symbol?
What is the chart resolution?
Which built-in signal did you try?
by TJ
16 Feb 2021
Forum: User Contributed Studies and Indicator Library
Topic: Mark custom daytrading session times with a vertical line
Replies: 1
Views: 812

Re: Mark custom daytrading session times with a vertical line

Bear in mind the TL Starting Point and Ending Point convention.

Image
by TJ
13 Feb 2021
Forum: MultiCharts
Topic: Why sometimes not all indicators are reloading?
Replies: 7
Views: 716

Re: Why sometimes not all indicators are reloading?

What kind of changes did you do?

What kind of updates that are not updating?
by TJ
08 Feb 2021
Forum: MultiCharts
Topic: Identifying 3 working day before end of the month?
Replies: 1
Views: 285

Re: Identifying 3 working day before end of the month?

This has been asked before . . . I have posted the code to do trick. Let me look.
by TJ
05 Feb 2021
Forum: MultiCharts
Topic: Signal date and Time
Replies: 2
Views: 339

Re: Signal date and Time

What is your chart's session time?

What is your instrument's default session time?

Which session do you use?
by TJ
04 Feb 2021
Forum: MultiCharts
Topic: simple filter for %R signal
Replies: 4
Views: 534

Re: simple filter for %R signal

Code: Select all

If ConditionLE and conditionLE4 then Buy ( "%RDipBuy" ) next bar at market;
by TJ
29 Jan 2021
Forum: MultiCharts
Topic: Using Real Time History Matching
Replies: 5
Views: 779

Re: Using Real Time History Matching

Hi TJ,

Thank you for your input. I'd rally appreciate your help here...

I'm assuming that MC uses Data time stamps as the feed for TIME function. Not computer time… Am I correct in my assumption?
. . .

Anthony
You can sent an email to support@multicharts.com for a definitive answer.
by TJ
28 Jan 2021
Forum: MultiCharts
Topic: simple filter for %R signal
Replies: 4
Views: 534

Re: simple filter for %R signal

See post #1 & #2
1. [FAQ] How to Post Codes ... so that people can read.
viewtopic.php?t=11713
by TJ
26 Jan 2021
Forum: MultiCharts
Topic: Using Real Time History Matching
Replies: 5
Views: 779

Re: Using Real Time History Matching

Signal works in Data1.

Unless your code specifies otherwise, other data series are not consulted.
by TJ
23 Jan 2021
Forum: MultiCharts
Topic: Using daily data in an intraday indicator
Replies: 2
Views: 437

Re: Using daily data in an intraday indicator

Please draw lines and write notes on the chart to illustrate your vision.

So far you have described a conceptual idea; we need to see EXACTLY what you want to see.
by TJ
16 Jan 2021
Forum: MultiCharts
Topic: How to use data from Indicator or Database in multiple Signals?
Replies: 6
Views: 765

Re: How to use data from Indicator or Database in multiple Signals?

OK, I got your question wrong. These keywords won't work in your case.


You can try Global Variables
https://www.multicharts.com/trading-sof ... _Variables
by TJ
16 Jan 2021
Forum: MultiCharts
Topic: How to use data from Indicator or Database in multiple Signals?
Replies: 6
Views: 765

Re: How to use data from Indicator or Database in multiple Signals?

Go to the Wiki
In Section 8
8 PowerLanguage Keyword Reference

Under
Plotting‎ (14 P)

Look up
I getplotvalue
I setplotvalue
by TJ
14 Jan 2021
Forum: MultiCharts
Topic: Best Pivot Points
Replies: 3
Views: 651

Re: Best Pivot Points

Don't be disappointed.
MultiCharts has its own extension to the EasyLanguage. There are plenty you can do with what you have.
If you are a keen programmer, the MultiCharts .NET edition can do even more than the TS OOP.
by TJ
13 Jan 2021
Forum: MultiCharts
Topic: Best Pivot Points
Replies: 3
Views: 651

Re: Best Pivot Points

This code is written with TS EasyLanguage with the OOP extension.
The new extension can do things the legacy EasyLanguage cannot do (or not easily done).

This is not a conversion exercise; this is a rewrite project.
by TJ
13 Jan 2021
Forum: MultiCharts
Topic: Chart stuck bug persists into release 14 2
Replies: 3
Views: 505

Re: Chart stuck bug persists into release 14 2

For situations like this,
you should use Live Chat to connect to techsupport and let them sort this out for you.
by TJ
11 Jan 2021
Forum: MultiCharts
Topic: Interactive Brokers Forex tick chart realtime data does not match history
Replies: 7
Views: 1050

Re: Interactive Brokers Forex tick chart realtime data does not match history

This issue isn't IB realtime ticks data does not match histroy. The issue is the IB realtime ticks data for forex in Multicharts is actually 5 seconds data.
Have you read the specification in IB's website?
by TJ
09 Jan 2021
Forum: MultiCharts
Topic: cryptos right margin X Time scale error on weekend
Replies: 4
Views: 623

Re: cryptos right margin X Time scale error on weekend

The problem is 8.Jan Sunday is missing from the X time scale, which is a trading for day for cryptos.
Please show us your:

default session setting
chart session setting
by TJ
09 Jan 2021
Forum: MultiCharts
Topic: Overnight swap interest cost calculation
Replies: 3
Views: 447

Re: Overnight swap interest cost calculation

Are you talking about backtest?
by TJ
09 Jan 2021
Forum: MultiCharts
Topic: cryptos right margin X Time scale error on weekend
Replies: 4
Views: 623

Re: cryptos right margin X Time scale error on weekend

I don't see what is the problem.
by TJ
06 Jan 2021
Forum: MultiCharts
Topic: Tick Bar Charts and TradeVolume vs Ticks Count [SOLVED]
Replies: 2
Views: 590

Re: Tick Bar Charts and TradeVolume vs Ticks Count [SOLVED]

Each tick is a "trade".

A trade can be 500 shares, or 20 contracts . . .
by TJ
04 Jan 2021
Forum: MultiCharts
Topic: PlaySound "STF UP" already! [SOLVED]
Replies: 2
Views: 445

Re: PlaySound "STF UP" already! [SOLVED]

It would be nice if there is a keyword called PlaySoundOnce.
by TJ
04 Jan 2021
Forum: MultiCharts
Topic: PlaySound "STF UP" already! [SOLVED]
Replies: 2
Views: 445

Re: PlaySound "STF UP" already! [SOLVED]

Try this:

Code: Select all

Var: intrabarpersist playonce(0); if h crosses above wattever and playonce <> currentbar then begin playonce = currentbar; playsound("c:\soundfiles\wattever.wav"); end;
by TJ
04 Jan 2021
Forum: MultiCharts
Topic: Bug in the EL core compiler/interpreter
Replies: 12
Views: 1013

Re: Bug in the EL core compiler/interpreter

See post #5
5. Stop Banging Your Head Against the Wall and Open Your Eyes.
viewtopic.php?t=11713
by TJ
03 Jan 2021
Forum: MultiCharts
Topic: Bug in the EL core compiler/interpreter
Replies: 12
Views: 1013

Re: Bug in the EL core compiler/interpreter

Not sure if this is the problem:

Check your counting . . .

Some counting start with ZERO,
Some counting start with ONE . . .
by TJ
03 Jan 2021
Forum: MultiCharts
Topic: Bug in the EL core compiler/interpreter
Replies: 12
Views: 1013

Re: Bug in the EL core compiler/interpreter

I don't install codes in my computer. You have to post the text file.
by TJ
02 Jan 2021
Forum: MultiCharts
Topic: Buy this bar at close, buys next bar at open? [SOLVED]
Replies: 17
Views: 9679

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

Hi. I have a very quick curiosity that the user manual does not fully clarify. Will "this bar at close" generate a market order during live trading? If a shorter custom session is used (eg on ES 17,00-15,55 instead of 17,00-16,00) and using daily or 1440 min chart will "this bar at close" send a ma...
by TJ
31 Dec 2020
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 2071

Re: When should SetStopLoss be placed?

Hi TJ, I know what a IF condition is. My IF condition above is not just about MP but other conditions too. . . . I am not criticizing your intention, nor questioning your ability to code. I am merely stating the mode of operation -- If your condition is not triggered, that is because the condition ...
by TJ
30 Dec 2020
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 2071

Re: When should SetStopLoss be placed?

Hi, I thought I should execute it right after an order is made, so that the Multicharts or broker will trigger the stop loss once the stoploss price is matched. Here is my previous code which works ok: if MarketPosition <> 0 then begin SetStopPosition; SetStopLoss(StopLossAmt); end; [sniped] . . . ...
by TJ
30 Dec 2020
Forum: MultiCharts
Topic: When should SetStopLoss be placed?
Replies: 24
Views: 2071

Re: When should SetStopLoss be placed?

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

Re: When should SetStopLoss be placed?

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

Re: When should SetStopLoss be placed?

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

Re: When should SetStopLoss be placed?

Hi, I thought I should execute it right after an order is made, so that the Multicharts or broker will trigger the stop loss once the stoploss price is matched. Here is my previous code which works ok: if MarketPosition <> 0 then begin SetStopPosition; SetStopLoss(StopLossAmt); end; however when I ...
by TJ
28 Dec 2020
Forum: MultiCharts
Topic: Entry live in close session...it's possibile?
Replies: 6
Views: 645

Re: Entry live in close session...it's possibile?

Yes it is possible.

But FIRST you must get your chart to align with your mind.

Your mind says ONE-minute analysis.
But your chart is geared for 15 minute interval.

What gives?
by TJ
27 Dec 2020
Forum: MultiCharts
Topic: CloseD function not functioning as expected
Replies: 7
Views: 808

Re: CloseD function not functioning as expected

You pdf makes no sense to me.
You need to draw diagrams.

Anyway, your code is not going to give you daily averages,
because your calculation is based on 30 min bars.

You can try 600 as your average input. ( 30 bars in a day X 20 periods )

(I am not at my work station, I can't test this for you.)
by TJ
26 Dec 2020
Forum: MultiCharts
Topic: CloseD function not functioning as expected
Replies: 7
Views: 808

Re: CloseD function not functioning as expected

Have you tried plotting the CloseD on the 30 min chart?
(without the xavg)

Have you tried plotting the CloseD with average instead of xavg?
by TJ
25 Dec 2020
Forum: MultiCharts
Topic: CloseD function not functioning as expected
Replies: 7
Views: 808

Re: CloseD function not functioning as expected

MC v14.0 (Build 20935) I expected CloseD to return the previous day's close on my intraday charts in order to plot Daily Moving Averages without inserting an invisible daily chart of the same instrument Using just CloseD, however, all time frames plot the 20ema of that particular time frame. I did ...
by TJ
25 Dec 2020
Forum: MultiCharts
Topic: CloseD function not functioning as expected
Replies: 7
Views: 808

Re: CloseD function not functioning as expected

The CloseD function's description: CloseD (Series Function) The CloseD function allows you to reference the daily Close of previous days in an intraday chart (minute, second, or tick-based) or a daily chart. CloseD is a function in a family of functions that allows historical daily, weekly, monthly,...
by TJ
22 Dec 2020
Forum: MultiCharts
Topic: Programming breakout strategy question [SOLVED]
Replies: 2
Views: 467

Re: Programming breakout strategy question [SOLVED]

There is an option to make only ONE trade per bar.
by TJ
22 Dec 2020
Forum: MultiCharts
Topic: How to identify place where linked contracts in continuous contract? [SOLVED]
Replies: 10
Views: 988

Re: How to identify place where linked contracts in continuous contract? [SOLVED]

Are you aware that most traders skip a contract month with crude oil?
by TJ
22 Dec 2020
Forum: MultiCharts
Topic: "Open of Tomorrow" [SOLVED]
Replies: 2
Views: 464

Re: "Open of Tomorrow" [SOLVED]

This is from the TS site: Tomorrow (Reserved Word) This word is retained for backward compatibility. Replaced by Next Bar . Remarks Tomorrow references the next bar, even when analyzing intraday bars. Tomorrow is no longer necessary as the following are equivalent: Buy at Open Tomorrow + Range Stop;...

Go to advanced search