write a indicator for mt5 that will show trend lines based on the last 3 swings ie swing…
- User
write a indicator for mt5 that will show trend lines based on the last 3 swings ie swing highs and lows:
- Assistant
- User
errors on compiling:
'SwingTrendLines.mq5' 1 '0' - variable expected SwingTrendLines.mq5 162 36 built-in: bool ArrayInsert(void&,const void&,uint,uint,uint) SwingTrendLines.mq5 162 36 'High' - undeclared identifier SwingTrendLines.mq5 163 40 '[' - array required SwingTrendLines.mq5 163 44 '0' - variable expected SwingTrendLines.mq5 163 38 built-in: bool ArrayInsert(void&,const void&,uint,uint,uint) SwingTrendLines.mq5 163 38 '0' - variable expected SwingTrendLines.mq5 168 35 built-in: bool ArrayInsert(void&,const void&,uint,uint,uint) SwingTrendLines.mq5 168 35 'Low' - undeclared identifier SwingTrendLines.mq5 169 39 '[' - array required SwingTrendLines.mq5 169 42 '0' - variable expected SwingTrendLines.mq5 169 37 built-in: bool ArrayInsert(void&,const void&,uint,uint,uint) SwingTrendLines.mq5 169 37 'High' - undeclared identifier SwingTrendLines.mq5 40 19 '[' - array required SwingTrendLines.mq5 40 23 ')' - open parenthesis expected SwingTrendLines.mq5 43 26 'High' - undeclared identifier SwingTrendLines.mq5 45 10 '[' - array required SwingTrendLines.mq5 45 14 'Low' - undeclared identifier SwingTrendLines.mq5 56 19 '[' - array required SwingTrendLines.mq5 56 22 ')' - open parenthesis expected SwingTrendLines.mq5 59 26 'Low' - undeclared identifier SwingTrendLines.mq5 61 10 '[' - array required SwingTrendLines.mq5 61 13 'Time' - undeclared identifier SwingTrendLines.mq5 102 27 '[' - array required SwingTrendLines.mq5 102 31 ']' - unexpected token SwingTrendLines.mq5 102 48 ']' - semicolon expected SwingTrendLines.mq5 102 48 ']' - unexpected token SwingTrendLines.mq5 102 48 'Time' - undeclared identifier SwingTrendLines.mq5 103 27 '[' - array required SwingTrendLines.mq5 103 31 ']' - unexpected token SwingTrendLines.mq5 103 50 ']' - semicolon expected SwingTrendLines.mq5 103 50 ']' - unexpected token SwingTrendLines.mq5 103 50 'Time' - undeclared identifier SwingTrendLines.mq5 121 27 '[' - array required SwingTrendLines.mq5 121 31 ']' - unexpected token SwingTrendLines.mq5 121 47 ']' - semicolon expected SwingTrendLines.mq5 121 47 ']' - unexpected token SwingTrendLines.mq5 121 47 'Time' - undeclared identifier SwingTrendLines.mq5 122 27 '[' - array required SwingTrendLines.mq5 122 31 ']' - unexpected token SwingTrendLines.mq5 122 49 ']' - semicolon expected SwingTrendLines.mq5 122 49 ']' - unexpected token SwingTrendLines.mq5 122 49 38 errors, 0 warnings 39 1
- Assistant
- User
'SwingTrendLines.mq5' 1 no indicator plot defined for indicator 0 0 '0' - variable expected SwingTrendLines.mq5 154 37 built-in: bool ArrayInsert(void&,const void&,uint,uint,uint) SwingTrendLines.mq5 154 37 '0' - variable expected SwingTrendLines.mq5 155 39 built-in: bool ArrayInsert(void&,const void&,uint,uint,uint) SwingTrendLines.mq5 155 39 '0' - variable expected SwingTrendLines.mq5 160 36 built-in: bool ArrayInsert(void&,const void&,uint,uint,uint) SwingTrendLines.mq5 160 36 '0' - variable expected SwingTrendLines.mq5 161 38 built-in: bool ArrayInsert(void&,const void&,uint,uint,uint) SwingTrendLines.mq5 161 38 'Time' - undeclared identifier SwingTrendLines.mq5 82 27 '[' - array required SwingTrendLines.mq5 82 31 ']' - unexpected token SwingTrendLines.mq5 82 48 ']' - semicolon expected SwingTrendLines.mq5 82 48 ']' - unexpected token SwingTrendLines.mq5 82 48 'Time' - undeclared identifier SwingTrendLines.mq5 83 27 '[' - array required SwingTrendLines.mq5 83 31 ']' - unexpected token SwingTrendLines.mq5 83 52 ']' - semicolon expected SwingTrendLines.mq5 83 52 ']' - unexpected token SwingTrendLines.mq5 83 52 'Time' - undeclared identifier SwingTrendLines.mq5 101 27 '[' - array required SwingTrendLines.mq5 101 31 ']' - unexpected token SwingTrendLines.mq5 101 47 ']' - semicolon expected SwingTrendLines.mq5 101 47 ']' - unexpected token SwingTrendLines.mq5 101 47 'Time' - undeclared identifier SwingTrendLines.mq5 102 27 '[' - array required SwingTrendLines.mq5 102 31 ']' - unexpected token SwingTrendLines.mq5 102 51 ']' - semicolon expected SwingTrendLines.mq5 102 51 ']' - unexpected token SwingTrendLines.mq5 102 51 24 errors, 1 warnings 25 2
- Assistant