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;
PowerLanguage Syntax
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: PowerLanguage Syntax
Tip #1: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;
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.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: PowerLanguage Syntax
Go to Wiki,
select PowerLanguage Keyword Reference
look under: [+] Strategy Orders
Find the keyword BUY and study the examples.
select PowerLanguage Keyword Reference
look under: [+] Strategy Orders
Find the keyword BUY and study the examples.
-
- Posts: 14
- Joined: 29 Jun 2014
- Been thanked: 3 times
Re: PowerLanguage Syntax
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?
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?
-
- Posts: 14
- Joined: 29 Jun 2014
- Been thanked: 3 times
Re: PowerLanguage Syntax
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!