I was wondering if it's possible to change the angle of a bitmap image.
I used the center as the anchor point of the image: ObjectSet("Image",OBJPROP_ANCHOR,ANCHOR_CENTER);
That seems to work, but when I try to change the angle, nothing happens.
I move the image along a MA line, I use a buffer for that and place the image on the MA's coordinates and let it move along the bars.
Now I would like to change the angle of the image so that it points towards the next bar's MA coordinates.
But I don't see anything about changing the angle of OBJ_BITMAP or OBJ_BITMAP_LABEL.
So if somebody knows if this is possible, please let me know.
I guess you know what image I'm talking about... Pac-man ;-)
I made that funny indicator to learn programming mql.
The best way to learn is to have a little fun, right?
I already have 4 bitmaps; open mouth left, closed mouth left, open mouth right, closed mouth right.
The open/closed mouth change per bar and left/right changes at bar 0 or above the visible bar on the right.
If it's not possible then I'll leave it that, because it is totally useless besides it's funny.
If there still is a way(and I hope so), I can add it to the code to make it optically look nicer.
Is OBJPROP_ANGLE then only to set the angle of OBJ_TEXT?
I love that pacman mate!! :)As I said above, and after more research, I don't believe there is a bitmap angle. But I'd really like to see what you can come up with using the work-around I mentioned above!CheersStu
I'm glad you like it.
It's a bit more work than setting an angle, but I can add 4 more images of packman in there.
On PointO and Range bar charts it would be perfect. (if the MA is set to period=1)
Ok, I'll make it and let you know when it's finished :-)
Yes it is possible. Look at the function LAYER::Rotate.
Форум по трейдингу, автоматическим торговым системам и тестированию торговых стратегий
fxsaber, 2017.11.16 21:28
Please enable the necessary setting in your browser, otherwise you will not be able to log in.