PowerLanguage Syntax

Questions about MultiCharts and user contributed studies.
Freakendorf
Posts: 14
Joined: 29 Jun 2014
Been thanked: 3 times

PowerLanguage Syntax

Postby Freakendorf » 02 Jul 2014

The following simple code does not compile in the PowerLanguage Editor. Apparently the words "contracts" and "market" are considered errors! They are standard EasyLanguage reserved words. So, what is the correct syntax for this order in MultiCharts?

Inputs: Qty(1);

Buy next bar Qty contracts at market;

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

Re: PowerLanguage Syntax

Postby TJ » 02 Jul 2014

The following simple code does not compile in the PowerLanguage Editor. Apparently the words "contracts" and "market" are considered errors! They are standard EasyLanguage reserved words. So, what is the correct syntax for this order in MultiCharts?

Inputs: Qty(1);

Buy next bar Qty contracts at market;
Tip #1:

When you encounter an error message and got stumped, take a screen shot of the error message and post it with your question. This is the best way to help people to help you.

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

Re: PowerLanguage Syntax

Postby TJ » 02 Jul 2014

Go to Wiki,

select PowerLanguage Keyword Reference

look under: [+] Strategy Orders‎

Find the keyword BUY and study the examples.

Freakendorf
Posts: 14
Joined: 29 Jun 2014
Been thanked: 3 times

Re: PowerLanguage Syntax

Postby Freakendorf » 02 Jul 2014

Amazing,..never thought there's a difference between:
BUY 1 contract next bar
and
BUY next bar 1 contract
..as they're equally valid in EasyLanguage.
Thanks for pointing that out!

By the way, is there a Water Cooler section here?

User avatar
MAtricks
Posts: 789
Joined: 09 Apr 2012
Has thanked: 286 times
Been thanked: 288 times

Re: PowerLanguage Syntax

Postby MAtricks » 02 Jul 2014

By the way, is there a Water Cooler section here?
Thankfully, no. :)

Freakendorf
Posts: 14
Joined: 29 Jun 2014
Been thanked: 3 times

Re: PowerLanguage Syntax

Postby Freakendorf » 03 Jul 2014

That's sad. It's a nice lounge to spend the time in, while waiting for your orders to be filled,...especially if one is infected with the Keyboard Diarrhea virus!


Return to “MultiCharts”