display distance between a horizontal line and current price in pips
-
I would like to make an indicator...
on inserting a horizontal line in the current chart, it should automatically display distance (in pips) between the current price and the horizontal line.can you guide me to create this indicator on fxdreema?
-
@mark_madhukar Hello @mark_madhukar! First and foremost, fxDreema does not allow you to perform Indicators, you can perform EA, s and Scripts but nothing else. On the other hand if what you need is to create an EA that allows you to create a line and obtain the distance in pips or at points in that if I can help you, I have created a panel that generates a horizontal line by pressing a button that you can move and position and pressing another button then opens an operation (according to the button) BUY or SELL with the Stop Loss where there is the Horizontal line and with the Lotage corresponding to the distance and the risk you want to apply; If this is what you need, comment on it and I'll help you create it.
-
@mark_madhukar XYON126 is right. FxDreema is for EA desing only.
-
@xyon126 pls guide me in doing this
-
@mark_madhukar Specify me exactly what you want to do and get, and if you have already done something, share it, put the EA link, not a photo because the important thing is the interior and not the blocks that are very important but even more how they are configured.
-
@xyon126 I would like to make an EA
on inserting a horizontal line in the current chart, it should automatically display distance (in pips) between the current price and the horizontal line. -
@mark_madhukar Hello Mark!
I have managed to generate this with several buttons:1º A horizontal line is drawn at the current price.
2nd The line obtained is selectable so that it can be moved and placed where it is needed, that is to say, place it where I want the Stop Loss
3rd Pressing the operations button calculates the distance in pips from the horizontal line to the current price and opens a trade with the Stop Loss where the horizontal line is and with the necessary lot.
If this is what you need, I will give you the EA to study it or maybe it is what you want to do with some change and I will do it for you. -
@xyon126 Hola buen amigo, crees que se pueda hacer lo siguiente, es algo similar a este ejemplo de arriba, pero en lugar de una linea yo nesesito dos lineas, una linea se llamara SL y la otra se llamara TP, y hay otro valor que tomaremos en cuenta que es el precio actual, lo que pretendo sacar de estos tres valores esque alla un boton o un comentario en el grafico que me muestre a que tipo de ratio estamos operando, por ejemplo si es 1:1 , 2:1 o 3:1.
Claro que pues esas medidas las sacaremos con las dos lineas y el valor del precio actual de mercado. -
@leka-0 Hi @leka-0! If I understand it, your intention is that 2 lines are drawn when pressing the button, once the lines are drawn you move them where you want one to be the SL and the other the TP and that the TP indicates that the Ratio has Regarding the SL but without opening any operation, only information. I think that calculator already exists in Metatrader, I think it's called "LinesProfitLoss.mq4" this is the link: https://www.mql5.com/en/code/16346 or https://www.mql5.com/es / code / 13330, think that in MQL5 there are more than 1000 indicators, scripts and EAs open and a forum that helps much more than this, besides that they are made with MQL4 or MQL5 (to choose) all the indicators, scripts and EAs that against fxDreema the codes are of the order of 30% against fxDreema which is faster and does not block. I have been studying MQL4 for a week because I am tired of fxDreema not helping and its EAs in a short time 24h / 48h peten and are not functional due to the immense amount of crap that is inside, I have made a small EA in fxDreema with only one button and this same EA in MQL4 and the one in fxDreema had 5850 lines of code and the one in MQL4 only 350, let me explain fxDreema of so much crap that it took 5 times longer to run against the one in MQL4 which was instantaneous, I advise you to Look for MQL5 what you need and if you don't find it, it is better and reliable to learn MQL4-5 than to do it with fxDreema, it takes practically the same time to learn both and the latter is free and has no limitations, only yours. It took me 1 year and € 90 to realize that fxDreema is useless and none of those that do the same as fxDreema and more expensive, where direct programming is, the rest is useless.
-
@xyon126 yes thats right. You can save 10 seconds on backtest by spending 5 hours of your own time writing the code line by line, lol.
I do recommend learning MQL though, its always useful, no matter if you write the code by hand or use the software
-
@xyon126 I'm afraid that everything I have done in fxdreema would be very complex to pass it to pure code, but even so I think I will dedicate an hour of my time to start learning MQL5, they would be so kind to give me some ideas to start studying MQL5, since everything I have my project in MQL5
-
@leka-0 Before considering whether to do it in MQL5, you should ask yourself what platform you want to work with with your Brocker, since most of them have MQL4 and MQL5 and the languages are slightly different; MQL5 is more complicated than MQL4, although there are manuals and video tutorials on the Internet for both, for manuals at "https://www.mql5.com/en/docs" and for MQL4 at "https://book.mql4.com/ intro ". On the other hand, if your Brocker is Darwinex (Social) or in the future you want to go to Darwinex to audit your account, it is only possible with MQL4. To build "Indicators" of course there is no software similar to fxDreema, nor fxDreema to make Indicators, the Indicators and Scripts being the easiest to program with MQL4, since it begins to program with the Scripts, Indicators and finally the EXperts or Robots . I hope I've helped.
-
@xyon126 Thank you very much my friend.