Download MetaTrader 5

Vector Graphics Library port to MQL, help needed!

To add comments, please log in or register

Since the availability of CCanvas it is time for a Vector library. To do so, I tried to port parts of (The Swiss Army Knife of Vector Graphics Scripting) to MQL.

Help is needed cause I can't fix the remaining issues myself.
I guess that there will be an official library provided soon, and there is already the Controlls/Rect.mqh (faar too simple - but a start).

Here is the Coordinate.mqh struct (place it in the Include folder) and a CoordinateTest.mq5 script(place it in Scripts folder)

Run the  CoordinateTest on any chart, the script tests all the methods and some results are not as expected (errors with line numbers are printed).

I don't know why it's not working - maybe you can help me.

regards Daniel 

To add comments, please log in or register