Created page with "This article highlights some PowerLanguage formatting tips, as discussed in a forum topic <ref>[http://www.multicharts.com/discussion/viewtopic.php?f=1&t=9792 MC Programing - ..."
This article highlights some PowerLanguage formatting tips, as discussed in a forum topic <ref>[http://www.multicharts.com/discussion/viewtopic.php?f=1&t=9792 MC Programing - What I’ve learned]</ref>.
== Layout ==
Some tips regarding the layout of a coding script.
=== Description ===
It's considered good programming practice to include a '''description''', '''changelog''' and '''dates''' into your script. This helps with keeping track of changes or reverting any made changes. An example of a good description is the following.
<syntaxhighlight>
{
Type - Indicator
Name - NWT SPI Day Session
Desc - Plot a ribbon show Green for the Day Session and Red for the Night Session
Just to enable quicker back viewing of the data
Version Date Reason
1 17/12/2011 Start
}
</syntaxhighlight>