Hi,
Thank you so much! Great
Hi all,
I have created a script. When I attach it on a chart, a pending order opened with SL and TP.
Now I would like to add an expert advisor. This EA have just one role: trailing the pending order as follow. But it doesn't work. It is so simple. I don't know where is the problem. Thanks for your help

@l-andorrà Just 2 questions. I trade almost 25 forex pairs. Can I just apply this EA on 1 graph or I need to apply it to all graphs? And a second question, can I create a script instead of an EA?
Thanks
@l-andorrà It seems very good. Thank you very much!
Hello all,
I would like my positions closed if the total of gained pips is greater than 100 pips in total. For example, if I have 1 position with +50 pips, 1 other with -10 pips, 1 with +30 pips and 1 with +31 pips (so +101 pips in total), all my positions need to close immediately.
I think to use a script for that. Do you agree? And with the simple following script?
Thanks for your help

@miki Thanks a lot. I will try it tomorrow morning! Thanks again!
@lrswatson The profit factor is not the only main thing to judge. You need to couple this with Drawdown, % profit trades, number of trades, net profit... So you can have a PF of 1.60 and an excellent EA or a PF of 3.00 and a very dangerous (and not good) EA.... there is no truth
@lrswatson Creating EA is not so hard (thanks to fxdreema) but find an excellent trading technic is a very long way
@lrswatson Not good, sorry. Your Profit Factor at 1.60 is not very good. It is correct. With 198 trades, 1808 $ of profits is not good at all. DD too high regarding the number of trades and the net profits. The curve is not fine.
And AlphaOmega have right, you need to have almost 90% (history back up to download with M1 tf)
Sorry...
Hello all,
So, my EA is ready, or near, but I have a question. Today, I tested my EA during 4 hours and my capital growth from 10 to 20$. 100% performance! Maybe it is just the chance of the begginer, the future will tell us.
But I have a question. How can I have an EA which help me to close all opened positions when my balance up 100%?
In my example, my balance is at 10$ and after 3 hours of trades my balance is at 20$. And I would like all opened positions close. How can I do?
Thanks a lot
@l-andorrà Thanks for your comment. But it seems to be very difficult to understand for me. I am very boring cause I think it is a very very good trading technic I have.
Thanks for your reply. I did that but without success. To be honest, I test my simple EA on MT4 with my template applied (I can see the PVT^ line) but there is nothing when the candle crosses above or below this line defined as object.... So sad. Another idea please?
Thanks
Hello,
My EA doesn't work cause, I think, I don't know how configure objects on chart.
See below. When I apply my own indicator, I have many levels as PIVOT, Resistance lines, Support lines.... Right click on Objects List, I have the list below.

Now I would like to see a buy trade open IF last candle crosses above this object (in yellow). How can I do? I do the follow but it doesn't work. Why?

Thanks a lot for your help
Hello all,
I would like to insert a thing in my EA.
I want the EA stop to take more orders if my margin level in % is equal or inferior to 130%. How can I do please?
Thanks a lot
Hello all,
I would like to know can I have a TP correspond to 10% of my balance. Imagine I have a balance at 100$. I would like my TP make me 10% of profits of my balance, so 10$ here. How can I do? I have that but it doesn't work. look. Please help me.

So, I have found the solution. For those who are interested, I adding just that

Hello all,
I have a question concerning the trailing pending order.
So, I placed a pending sell order and a pending buy order in my scheme. But I would like to take a position at the moving average (12) level. But the level change every hour and I would like that the pending orders change with the moving average. How can I do? See below what I have. Thanks
