I know this must be really simple or obvious to others but I am still kind of new to MQL5 and am only partially successful at converting my MT4 indicators (my EA is going to be a nightmare, I'm sure). The data shows when I use the print function but no lines are displayed. Also nothing shows for this in the data window, which is probably a clue. I thought I had it when I saw I was missing the PLOT_DRAW_TYPE,DRAW_LINE, but no. I have read many help articles but can't seem to find the answer. If anyone can help, THANKS! Here is the code trying to make fractals display lines instead of the arrows (with a little extra garbage):
Correct the main mistake: you create an indicator handle AT EVERY TICK !!!
Remember, read the help, see examples: in MQL5, the indicator handle MUST BE CREATED ONCE and this is done in OnInit !!!
I know this must be really simple or obvious to others but I am still kind of new to MQL5 and am only partially successful at converting my MT4 indicators (my EA is going to be a nightmare, I'm sure). The data shows when I use the print function but no lines are displayed. Also nothing shows for this in the data window, which is probably a clue. I thought I had it when I saw I was missing the PLOT_DRAW_TYPE,DRAW_LINE, but no. I have read many help articles but can't seem to find the answer. If anyone can help, THANKS! Here is the code trying to make fractals display lines instead of the arrows (with a little extra garbage):