on chart location auto adjustment

To add comments, please log in or register
Lode Loyens
131
Lode Loyens  

Hello everyone;

I have an EA that shows various information about my trading account.  I can move that information anywhere I want on the chart by means

of the setup built into the EA.

However, when I move the chart from one monitor to another that are not the same dimensions, I have to reset the setup to make the items

displayed look good again.  When I move the chart back to the original monitor I have to repeat that process.

Question:  is there a way to program my EA to 'auto-sense' the dimensions of the monitor and place the objects on my chart accordingly 

without having to constantly reset all the parameters?


Thanks in advance for your help.


Lucas

Fedor Arkhipov
43451
Fedor Arkhipov  

Hello Lode!

It's not fully clear for me. Can you make small video how its work now?

Fedor Arkhipov
43451
Fedor Arkhipov  
Do you want to move panels only with mouse only?
Lode Loyens
131
Lode Loyens  

Hey Fedor;

Thanks for reaching out.  I will reply to you privately.


Lode

Adiasa
226
Adiasa  
Lode Loyens:

Hello everyone;

I have an EA that shows various information about my trading account.  I can move that information anywhere I want on the chart by means

of the setup built into the EA.

However, when I move the chart from one monitor to another that are not the same dimensions, I have to reset the setup to make the items

displayed look good again.  When I move the chart back to the original monitor I have to repeat that process.

Question:  is there a way to program my EA to 'auto-sense' the dimensions of the monitor and place the objects on my chart accordingly 

without having to constantly reset all the parameters?


Thanks in advance for your help.


Lucas

void OnChartEvent(const int id, const long& lparam, const double& dparam, const string& sparam){
   
        if (id==CHARTEVENT_CHART_CHANGE){ /* id==9 */
           // move your objects here
        }
}

I have my program which is probably what you are looking for. Basically it refresh every I resize my chart.

16490kay
10
16490kay  
Hello everybody,am new here ,am a beginner still on demo account,quiet unfortunate i have blow the account and i don't know how to fund the demo account .
Keith Watford
Moderator
20336
Keith Watford  
16490kay:
Hello everybody,am new here ,am a beginner still on demo account,quiet unfortunate i have blow the account and i don't know how to fund the demo account .

Click on "File" and then "Open an Account"

To add comments, please log in or register