Help needed for currency strength meter

To add comments, please log in or register
thenewguy3
12
thenewguy3  

Hello everybody

I am trying to code my own currency strength meter.

The meter would draw a histogram of every currency in separate window.

So one windows for USD, one for EUR, one for JPY and so on ...

The strength part i coded and histogram works for all pairs

But i am having a problem on inserting picture objects in separate windows

I want to put country flag of each pair.

The code to insert .bmp works but when i add second strentgth indicator it repaints over the previous indicator flag like shown on attached images.


I tried the following code options:


  int my_seperate_usd =WindowFind("Dollar");

    ObjectCreate(0, "logo", OBJ_BITMAP_LABEL, my_seperate_usd, 0, 0);

    ObjectSetString(0, "logo", OBJPROP_BMPFILE, "\\Images\\USA.bmp");



    ObjectCreate(0, "logo", OBJ_BITMAP_LABEL, 0, 0, 0);

    ObjectSetString(0, "logo", OBJPROP_BMPFILE, "\\Images\\USA.bmp");


    ObjectCreate(0, "logo", OBJ_BITMAP_LABEL, 1, 0, 0);

    ObjectSetString(0, "logo", OBJPROP_BMPFILE, "\\Images\\USA.bmp");



Everytime it repaints over the first indicator flag.


Any help please


Thank you

Files:
Kenneth Parling
6576
Kenneth Parling  
thenewguy3:

Hello everybody

I am trying to code my own currency strength meter.

The meter would draw a histogram of every currency in separate window.

So one windows for USD, one for EUR, one for JPY and so on ...

The strength part i coded and histogram works for all pairs

But i am having a problem on inserting picture objects in separate windows

I want to put country flag of each pair.

The code to insert .bmp works but when i add second strentgth indicator it repaints over the previous indicator flag like shown on attached images.


I tried the following code options:


  int my_seperate_usd =WindowFind("Dollar");

    ObjectCreate(0, "logo", OBJ_BITMAP_LABEL, my_seperate_usd, 0, 0);

    ObjectSetString(0, "logo", OBJPROP_BMPFILE, "\\Images\\USA.bmp");



    ObjectCreate(0, "logo", OBJ_BITMAP_LABEL, 0, 0, 0);

    ObjectSetString(0, "logo", OBJPROP_BMPFILE, "\\Images\\USA.bmp");


    ObjectCreate(0, "logo", OBJ_BITMAP_LABEL, 1, 0, 0);

    ObjectSetString(0, "logo", OBJPROP_BMPFILE, "\\Images\\USA.bmp");



Everytime it repaints over the first indicator flag.


Any help please


Thank you

Use Alt+S when posting code - it looks like a mess all of it

attach

Another tip, if no one helps you out here (we are no slaves) you can always post as a job in the Freelance section

thenewguy3
12
thenewguy3  

thanks for the advice for posting code


i never said you were slaves

just asking for some help

i thought this was an easy fix

Ernst Van Der Merwe
6548
Ernst Van Der Merwe  
string name="logo"+(string)ChartWindowFind();
ObjectCreate(0, name, OBJ_BITMAP_LABEL, my_seperate_usd, 0, 0);
ObjectSetString(0, name, OBJPROP_BMPFILE, "\\Images\\USA.bmp");
thenewguy3
12
thenewguy3  
Ernst Van Der Merwe:

that got it working


thank you very much for your help

To add comments, please log in or register