You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
you mean like this ... it didnt come out right ... its better if you do it , then ill be done asking
// --- MasterWhite Text added
ObjectCreate("txt15M_1", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt15M_1", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt30M_1", OBJPROP_YDISTANCE, TextOffSetFromTop + 116);
ObjectSet("txt15M_1", OBJPROP_XDISTANCE, TextOffSetFromRight + 120);
ObjectCreate("txt15M_2", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt15M_2", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt30M_2", OBJPROP_YDISTANCE, TextOffSetFromTop + 116);
ObjectSet("txt15M_2", OBJPROP_XDISTANCE, TextOffSetFromRight + 94);
ObjectCreate("txt15M_3", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt15M_3", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt30M_3", OBJPROP_YDISTANCE, TextOffSetFromTop + 116);
ObjectSet("txt15M_3", OBJPROP_XDISTANCE, TextOffSetFromRight + 68);
ObjectCreate("txt15M_4", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt15M_4", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt30M_4", OBJPROP_YDISTANCE, TextOffSetFromTop + 116);
ObjectSet("txt15M_4", OBJPROP_XDISTANCE, TextOffSetFromRight + 34);
ObjectCreate("txt15M_5", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt15M_5", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt30M_5", OBJPROP_YDISTANCE, TextOffSetFromTop + 116);
ObjectSet("txt15M_5", OBJPROP_XDISTANCE, TextOffSetFromRight);
// ---- Original Text ( has moved down )
ObjectCreate("txt1H_1", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt1H_1", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt4H_1", OBJPROP_YDISTANCE, TextOffSetFromTop + 76);
ObjectSet("txt1H_1", OBJPROP_XDISTANCE, TextOffSetFromRight + 120);
ObjectCreate("txt1H_2", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt1H_2", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt4H_2", OBJPROP_YDISTANCE, TextOffSetFromTop + 76);
ObjectSet("txt1H_2", OBJPROP_XDISTANCE, TextOffSetFromRight + 94);
ObjectCreate("txt1H_3", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt1H_3", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt4H_3", OBJPROP_YDISTANCE, TextOffSetFromTop + 76);
ObjectSet("txt1H_3", OBJPROP_XDISTANCE, TextOffSetFromRight + 68);
ObjectCreate("txt1H_4", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt1H_4", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt4H_4", OBJPROP_YDISTANCE, TextOffSetFromTop + 76);
ObjectSet("txt1H_4", OBJPROP_XDISTANCE, TextOffSetFromRight + 34);
ObjectCreate("txt1H_5", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt1H_5", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt4H_5", OBJPROP_YDISTANCE, TextOffSetFromTop + 76);
ObjectSet("txt1H_5", OBJPROP_XDISTANCE, TextOffSetFromRight);
// --- MasterWhite Text added
ObjectCreate("txt30M_1", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt30M_1", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt15M_1", OBJPROP_YDISTANCE, TextOffSetFromTop + 136);
ObjectSet("txt30M_1", OBJPROP_XDISTANCE, TextOffSetFromRight + 120);
ObjectCreate("txt30M_2", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt30M_2", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt15M_2", OBJPROP_YDISTANCE, TextOffSetFromTop + 136);
ObjectSet("txt30M_2", OBJPROP_XDISTANCE, TextOffSetFromRight + 94);
ObjectCreate("txt30M_3", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt30M_3", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt15M_3", OBJPROP_YDISTANCE, TextOffSetFromTop + 136);
ObjectSet("txt30M_3", OBJPROP_XDISTANCE, TextOffSetFromRight + 68);
ObjectCreate("txt30M_4", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt30M_4", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt15M_4", OBJPROP_YDISTANCE, TextOffSetFromTop + 136);
ObjectSet("txt30M_4", OBJPROP_XDISTANCE, TextOffSetFromRight + 34);
ObjectCreate("txt30M_5", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt30M_5", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt15M_5", OBJPROP_YDISTANCE, TextOffSetFromTop + 136);
ObjectSet("txt30M_5", OBJPROP_XDISTANCE, TextOffSetFromRight);
// ---- Original Text ( has moved down )
ObjectCreate("txt4H_1", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt4H_1", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt1H_1", OBJPROP_YDISTANCE, TextOffSetFromTop + 96);
ObjectSet("txt4H_1", OBJPROP_XDISTANCE, TextOffSetFromRight + 120);
ObjectCreate("txt4H_2", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt4H_2", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt1H_2", OBJPROP_YDISTANCE, TextOffSetFromTop + 96);
ObjectSet("txt4H_2", OBJPROP_XDISTANCE, TextOffSetFromRight + 94);
ObjectCreate("txt4H_3", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt4H_3", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt1H_3", OBJPROP_YDISTANCE, TextOffSetFromTop + 96);
ObjectSet("txt4H_3", OBJPROP_XDISTANCE, TextOffSetFromRight + 68);
ObjectCreate("txt4H_4", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt4H_4", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt1H_4", OBJPROP_YDISTANCE, TextOffSetFromTop + 96);
ObjectSet("txt4H_4", OBJPROP_XDISTANCE, TextOffSetFromRight + 34);
ObjectCreate("txt4H_5", OBJ_LABEL, 0, 0, 0);
ObjectSet("txt4H_5", OBJPROP_CORNER, DisplayCorner);
ObjectSet("txt1H_5", OBJPROP_YDISTANCE, TextOffSetFromTop + 96);
ObjectSet("txt4H_5", OBJPROP_XDISTANCE, TextOffSetFromRight);johnjacob
Smaller number for OBJPROP_YDISTANCE means it is higher. All you have to do is to take care that those are going in ascending order for those time frames (and those you can see from those object names)
its all good .. ill just leave it as it is ..
mladen,
First of all thank you for all you and mr. tools have done. I have a few indicators that I think re-paint and wanted to know if you could help me with the re-paint problem. Thanks in advance for all your help.
Craig
P.S. This is my first time posting; I am not sure if it is going to work.
mladen,
First of all thank you for all you and mr. tools have done. I have a few indicators that I think re-paint and wanted to know if you could help me with the re-paint problem. Thanks in advance for all your help.
Craig
P.S. This is my first time posting; I am not sure if it is going to work.miller1970
Those are all ex4 files.
I can not alter the ex4 files
Hi,
this is a bit harder than I thought it would be.
I want to work out what £10gbp is in lots. So if I want to know £10 a pip how many lots, 1.44 1.2 etc
I have value per pip, risk percentages, everything but when i apply my code (on a demo platform trade) it does not always work out right.
I have all the data I think I need but when I open on demo a trade at x lots size it does not work out at £10 per pip value back. So on EURAUD I have demo up 21 pips, should be 210 GBP but it shows nearer £150.
Its not going to kill me if I don't do it but I would like to solve this if anyone can help.
Examples, GU seems fine but EURAUD or GBPNZD is out, I think it goes wrong with the conversion, I'm using GU because base currency is USD i.e convert to GBP value.
Hope this makes sense. It only works in GPB accounts (like alpari)
PG
Hi,
this is a bit harder than I thought it would be.
I want to work out what £10gbp is in lots. So if I want to know £10 a pip how many lots, 1.44 1.2 etc
I have value per pip, risk percentages, everything but when i apply my code (on a demo platform trade) it does not always work out right.
I have all the data I think I need but when I open on demo a trade at x lots size it does not work out at £10 per pip value back. So on EURAUD I have demo up 21 pips, should be 210 GBP but it shows nearer £150.
Its not going to kill me if I don't do it but I would like to solve this if anyone can help.
Examples, GU seems fine but EURAUD or GBPNZD is out, I think it goes wrong with the conversion, I'm using GU because base currency is USD i.e convert to GBP value.
Hope this makes sense. It only works in GPB accounts (like alpari)
PGWhy don't you use MarketInfo( sym, MODE_TICKVALUE) for that?
Hi,
would you kindly expand on that, I'm not that good at programming and pieced this together, I do not know where I would use your suggestion.
PG
Hi,
would you kindly expand on that, I'm not that good at programming and pieced this together, I do not know where I would use your suggestion.
PGPG
MarketInfo( sym, MODE_TICKVALUE) returns a price per a point for 1 standard lot size. From then on all you need is to know how many points and money you are willing to risk and you can calculate the lot size
ok I will play with this, and will the price per point be in the denominator currency, because I need ot get it into GBP so always need to convert.
I need to play with this because I'm still a little bit confused but it gives me a path to explore,
thank you Mladen.
PG MarketInfo( sym, MODE_TICKVALUE) returns a price per a point for 1 standard lot size. From then on all you need is to know how many points and money you are willing to risk and you can calculate the lot size
Hi Mladen,
I understand why i am confused, its because I have already implemented this bit, I already know my lot size/risk etc.
What I am trying to work out is different, it is what is the lot size based on a money value per pip.
So In GBP if I wanted to know £10 GBP per pip what lot size would that equate to in the current price of any pair I attach indicator to chart.
I already calculate if risk is 2% then what is lot size, thats all working ok, its just the last bit to work out that I am stuck on.
i.e now GBPAUD returns a market value of 0.52....
so AUD 1 pip is 0.52..
But I want to know lot size if I wanted say £10 per pip.
Its more to find out if its possible, this won't be the biggest problem but I do not know if it is possible due to variations in the pairs denominators. So EURGBP is of course £1 but gbpaud is not possible to work out for an indicator to go on any pair unless there is a lookup table I think.
Does this sound right,
thank you
PG