timtrader Posted May 17, 2023 Report Share Posted May 17, 2023 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) Thanks, Tim Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted May 17, 2023 Report Share Posted May 17, 2023 Is this in a new production version? I do see the problems in the generated code. Will look Quote Link to comment Share on other sites More sharing options...
timtrader Posted May 17, 2023 Author Report Share Posted May 17, 2023 Yes, I'm running version 1.1.9900.102. Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted May 18, 2023 Report Share Posted May 18, 2023 We cannot repeat. Can you send me the Simple PB, before converting. Quote Link to comment Share on other sites More sharing options...
timtrader Posted May 18, 2023 Author Report Share Posted May 18, 2023 Just emailed one to you - Tim Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted May 18, 2023 Report Share Posted May 18, 2023 I was able to recreate but only with your Paintbar. Old bug since even previous production version had it. Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted May 18, 2023 Report Share Posted May 18, 2023 FIXED. Emailed you Quote Link to comment Share on other sites More sharing options...
timtrader Posted May 18, 2023 Author Report Share Posted May 18, 2023 Perfect, Thanks so much! Tim Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.