"Open of Tomorrow"  [SOLVED]

Questions about MultiCharts and user contributed studies.
Eduardo
Posts: 21
Joined: 22 May 2020

"Open of Tomorrow"

Postby Eduardo » 21 Dec 2020

Hello,
I found an old code for Easylanguage/Powerlanguage that uses the reserved word Tomorrow.

Multicharts recognizes it as a reserved word but I can't find any reference about it on the help file, probably it's not used anymore.

Was it replaced by another reserved word? Does anybody know what it did?

This is part of the code I found:

Code: Select all

If MarketPosition = 1 AND Open of tomorrow > EntryPrice Then Sell next bar at market;
Thank you.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: "Open of Tomorrow"

Postby TJ » 22 Dec 2020

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;

Buy at Open Next Bar + Range Stop;

Buy at Open[-1] + Range Stop;

Eduardo
Posts: 21
Joined: 22 May 2020

Re: "Open of Tomorrow"  [SOLVED]

Postby Eduardo » 22 Dec 2020

Thank you.
I didn't know that you could use something like Open[-1]


Return to “MultiCharts”