IS IT POSSIBLE to code this idea?

To add comments, please log in or register
aphong
102
aphong  

Hello all pro Coders,

Im new to coding & just wondering that: IS IT POSSIBLE to code an Indicator that will open a  profile with selected name by clicking on a button created on current chart when the indi is attached ?

so when I want to change to the other profile ... I just have to click on the button i want.


bellow is a photo with some specs to describe my idea...Hope you get it :)

Thanks & regards,


boobyditbeber
106
boobyditbeber  
aphong:

Hello all pro Coders,

Im new to coding & just wondering that: IS IT POSSIBLE to code an Indicator that will open a  profile with selected name by clicking on a button created on current chart when the indi is attached ?

so when I want to change to the other profile ... I just have to click on the button i want.


bellow is a photo with some specs to describe my idea...Hope you get it :)

Thanks & regards,


hi,

very nice project, but what kind of profiles do you want exactly get with that button ?

change the chart, change the timeframe,.....

Laurent

aphong
102
aphong  
boobyditbeber:

hi,

very nice project, but what kind of profiles do you want exactly get with that button ?

change the chart, change the timeframe,.....

Laurent

hi boobyditbeber, 

Thanks ... in fact, Im going to check ~ 10 profiles :D , You can use it as you wish...Yah1  some will change Timeframes, some will change symbols ... & I will use some diffrent templates for  different profiles too :),

... It would be great if somebody will help/ guide community ... how to open a profile with a specified name in codes! :) .. I have tried googling, but still haven't found any good recourses to code it.

have a good day, friend!

Bilal Said
542
Bilal Said  
aphong:

hi boobyditbeber, 

Thanks ... in fact, Im going to check ~ 10 profiles :D , You can use it as you wish...Yah1  some will change Timeframes, some will change symbols ... & I will use some diffrent templates for  different profiles too :),

... It would be great if somebody will help/ guide community ... how to open a profile with a specified name in codes! :) .. I have tried googling, but still haven't found any good recourses to code it.

have a good day, friend!

take a look : https://www.mql5.com/en/forum/68656

how to change profile
how to change profile
  • 2015.12.11
  • www.mql5.com
hello all respected mql programmers i have three profiles in my terminal with three different forex systems...
boobyditbeber
106
boobyditbeber  
Bilal Said:

take a look : https://www.mql5.com/en/forum/68656

hi, nice to give your help,

You're welcome and we will check your link,

Thanks


Laurent

Zamzuri Saad
512
Zamzuri Saad  

It is possible to code button & text box into the chart. By using OnChartEvent function, you can program the behavior on button's click. Then, it will load the input profile accordingly. 

boobyditbeber
106
boobyditbeber  
Zamzuri Saad:

It is possible to code button & text box into the chart. By using OnChartEvent function, you can program the behavior on button's click. Then, it will load the input profile accordingly. Hi,

Hi,

Yes even without button.. :))

Look at my ccanvas clock I develop now I give you my code

Check the OnChartEvent()  in my code. use it and udate it to your use. don't forget to OnInit() ->>>> ChartSetInteger(ChartID(),CHART_EVENT_MOUSE_MOVE,1); // OnChartEvent() = ON  for mouse if you want use it.


Event of a mouse click in a graphical object belonging to the chart

CHARTEVENT_OBJECT_CLICK

the X coordinate

the Y coordinate

Name of the graphical object, on which the event occurred


they are for click object.

it give X and Y and the name of the object . keep them in global variable lparam(x), dparam(y), sparam(name string)

check the name compare it and make a function to do something

Ask me for more help

Laurent



Files:
aphong
102
aphong  
Bilal Said:

take a look : https://www.mql5.com/en/forum/68656

thanks for your Infor! :)

To add comments, please log in or register