I'm trying to use Commentary for debugging bar by bar, something I don't think the print statement can easily do (tell me if I'm wrong with that, though). So, here's my code:
Code: Select all
variables: Close_GT_Yes_High( false ),
Close_GT_Open( false ),
Low_GT_Yes_Low( false ),
BuyTrigger(false),
TriggerBarHigh(0),
TriggerBuyPrice(0);
Close_GT_Yes_High = Close > high[1];
Close_GT_Open = Close > Open;
Low_GT_Yes_Low = Low > Low[1];
{Debugging Code}
If CheckCommentary Then Begin
Commentary("Section 01: After Initial varible assignment / inspection", newline);
Commentary("Current Bar Number: ", Currentbar, newline);
Commentary("Close_GT_Yes_High: ", Close_GT_Yes_High, newline);
Commentary("Close_GT_Open: ", Close_GT_Open, newline);
Commentary("Low_GT_Yes_Low: ", Low_GT_Yes_Low, newline);
Commentary("Section 01: End", newline, newline);
End;
Any idea why the commentary statements are shown more than once?
Thanks for your help.