MQL5 OnChartEvent
-
If Button Click then open Buy Order.
Is OnChartEvent added to?
Then, you could use MQL5 chart controls.
*Button
Checkbox
SpinEdit, Scrolls...[/list:u:28jtv014] -
I was waiting for someone to wishes this feature
Currently not available, but I can work for it. -
__Currently not available, but I can work for it.[/quote:38cpdmqv]
Yes, that would be great. -
Is the idea eventually added or discarded for the time being?
-
Very soon...
-
Ready for testing. There is a category with blocks that appears when in "on Chart" workfield, these blocks are filters. To get some parameters (coordinates, object names) there is a new subcategory in Condition - Chart event data.
-
[attachment=0:15s7s8w7]http://fxdreema.com/shared/rExT6wNM
......
2012-11-22_18-28-24.png -
Mouse move... I noticed that it doesn't work, but I don't know why. It seems the code is ok

-
__Mouse move... I noticed that it doesn't work, but I don't know why. It seems the code is ok
[/quote:1i6fgkeb]
I found the bug.
*
int OnInit() *available.
void OnTick() available.
void OnDeinit(const int reason) available.The error the ChartEvent function not available.
//+------------------------------------------------------------------+ //| ChartEvent function | //+------------------------------------------------------------------+ void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &name) { } -
Right... now it must be there, but I'm not sure for mouse move even that way

-
I'm not a good programmer.

So, it should still work?// On-Off switches for blocks bool chart6=true; // (6) (chart) Mouse move //+------------------------------------------------------------------+ //| ChartEvent function | //+------------------------------------------------------------------+ void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &name) { switch(id) { case CHARTEVENT_MOUSE_MOVE: { //////////////////////////////// // Define block 3 (Just pass) // void tick3(string _parent_="") { if (chart6==true) { /// Next block } } break; } } -
Not correct. You need mouse move exactly?
-
yes
or
I want e.g. If Button Click then open BUY.
-
now. It works excellently. Thank you.