Jump to content
Medved Trader Forums

Paintbar compile errors when clicking "Switch to Advanced" button

Recommended Posts

I'm getting compile errors when taking a simple Paintbar and clicking the "Switch to Advanced button (works OK on some more complex paintbars I have, but not simple one or 2-line ones like the example below.

For example a simple 2-line Paintbar:

If (SMA_LINE(5) < SMA_Line(5)[2] ; // do nothing else { return; }
If (SMA_Line(5) < SMA_Line(5)[1]) {SetColorAndShape(SysColor.MainIndicator3, PBShape.ArrowDn); TriggerAlert("5MA2BarsDown", @"5 MA 2 Bars Down"); SetScanResult(@"PB"); return; } else { return; }

will generate the following when I click the "Switch to Advanced" button:

     Multiple Comple Errors (probable {} imbalance)


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...