@roar Hallo Roar... when you have time please sort me out here... I am stuck. I want at least 15% in profit from average of all open price of trades .. How do I control it?
Attached is my last effort. Thank you in advance for your reply
https://fxdreema.com/shared/W3TcZf7he
Posts made by AlphaOmega
-
RE: MathSrand problemposted in Questions & Answers
-
RE: MathSrand problemposted in Questions & Answers
@roar This formula seems to work but it would not give me the TP

-
RE: MathSrand problemposted in Questions & Answers
@roar I have also tried this formula... but it also gives some error.. so I do not understand how to do it..

-
RE: MathSrand problemposted in Questions & Answers
@roar Hallo Roar... thanks for replying... I want at least 15% in profit from average of all open price of trades .. How do I control it? Thank you in advance for your reply
-
RE: MathSrand problemposted in Questions & Answers
@biztet I am good! How are you my friend?... No I am running this on MT5 std account. The problem is definitely with the coding or the way I connected the blocks.. I am just to dumb to understand how to fix it. I do not think its a big problem. .. Mr Roar will sort it out I am dead sure!
-
RE: MathSrand problemposted in Questions & Answers
@roar .. Hi Roar.. Sorry to bother you again... I have changed the settings as I understand you said and it is working but the TP is very small, like in cents..lol.. I must be doing something wrong again. Also, if I try change the settings there is no TP for the first order and the TP does not modify to the average if the 2nd order is placed, it just stays at the first order"s average. I have attached some pictures for you. Please advice me again. Thank you in advance




-
RE: MathSrand problemposted in Questions & Answers
@roar Thanks so much for your speedy reply... let me do that .. I will come back with results... Thank you!!
-
RE: MathSrand problemposted in Questions & Answers
@roar .. Hi Mr Roar I need your input again please. The expert does it,s averaging job very well but I do not understand where the TP comes from and where to set it? I have tried to control the TP with the adjustment add-on but it does not work correctly. Thank you in advance.
-
RE: MathSrand problemposted in Questions & Answers
@roar Thanks for the reply..... Ok ... let me fight a bit with this and then will come back to you
-
RE: MathSrand problemposted in Questions & Answers
@roar Sorry to bother again ... I have changed the parameters as you said ... I still do not know how to get the first order to take a TP or SL? The TP and SL only kicks in if the 2nd order is taken. Thanks in advance.
https://fxdreema.com/shared/SScWMSFud

-
RE: MathSrand problemposted in Questions & Answers
@roar As always .. you are the best!!!! Thank you.
-
MathSrand problemposted in Questions & Answers
@roar MathSrand(GetTickCount());
Hi
If someone could give me a hand please... I started a new thread because the other one was old and the old topic does not really address the problem I have.Is there any other code except MathSrand(GetTickCount()); I can use to rectify the expert because every first order it takes is not part of count of the total lots. Or maybe setup of expert blocks is wrong?
This is my goal
If the conditions is met but price action still moves further away from 1st trade(parent) in a negative direction: another order must be taken -30 pips(first child trade) away from original entry and then -30pips away from 1st child trade, etc..... and the lot sizes must be exponentially added on an averaging basis of a +/-150% of previous negative lot size, on every new child order. For example: 0.01(parent), 0.02(1st child), 0.03(2nd child) etc, and the take profit must modify 25% above the average of all tradesMy effort:
https://fxdreema.com/shared/x5dk8lW9bRoar original code:
https://fxdreema.com/shared/ucZlZvYccThank you in advance
-
RE: Tutorial 07 - Read prices from indicator objectsposted in Tutorials by Users
Sorry bro ... cannot help you .. I am using MT5
-
RE: Tutorial 07 - Read prices from indicator objectsposted in Tutorials by Users
@umbrellamaker All the source coded products is in this post brother? Just go backwards and look for it.... easy as pie
-
RE: Profit Mathposted in Questions & Answers
@josecortesllobat Thanks for the reply... Yes, you have a good memory... I will start from beginning:
When indicator is in overbought or oversold I want to place order.. check simple expert example:
https://fxdreema.com/shared/mdjTWpegb
This is the indicator: 0_1606327536570_Stochastic MACD.mq5The next step,
If the conditions is met but price action still moves further away from 1st trade(parent) in a negative direction: another order must be taken -30 pips(first child trade) away from original entry and then -30pips away from 1st child trade, etc..... and the lot sizes must be exponentially added on an averaging basis of a +/-150% of previous negative lot size, on every new child order. For example: 0.01(parent), 0.02(1st child), 0.03(2nd child) etc, and the take profit must modify 25% above the average of all trades
I hope you can understand this explanation.
Thank you in advance -
RE: Profit Mathposted in Questions & Answers
@josecortesllobat... Hallo Jose .. Thank you for taking the time to reply..
Ok, This is what I want to basically achieve:
I want to create an averaging expert where I can set the take profit on % above the average of all trades opened:
Example:
This is how I started with the algorithm from roar: https://fxdreema.com/shared/VeKz6Pg7d

But this was a problem because it has a random lot size which Roar used for testing and I cannot use it.. So I changed it to fixed value


I then started to take profit on object on chart but this also is a problem because the horizontal line must first modify to an average before the expert will input a TP

So now I am stuck! So please suggest a starting place where I can understand each step with your help
greatly appreciated! -
RE: Profit Mathposted in Questions & Answers
@josecortesllobat .. Thank you for replying.. I have tried that but no difference? If that purple line do not move it will not put the average TP. I think it has something to do with the Buy TP block. I have put a constant TP but that also does not work.

Please explain the workings of the expert Jose.

-
RE: I'm trying to creat a simple trade manage EAposted in General Discussions
@rubvil Cannot help you if you do not share the indicator, but it would go something like this. Insert buffer for buy

-
RE: Profit Mathposted in Questions & Answers
Could you please explain how to rectify this problem: The expert takes 2 orders from the word go but with no TP. As soon as the Average horizontal line move the TP average appear. I still do not grasp the variables and constant settings, after numerous reading up on it... I want the TP set even if there is only one order. will much appreciate the help... Thank you
https://fxdreema.com/shared/HcVkjCWVc

-
RE: Martingale or Grid EA - Helpposted in Questions & Answers
This is a real great contribution to the Fxdreema noobs... Now we can all understand how this martingale works... Ons kan nou almal in ons eie taal beskryf wat ons nie verstaan nie en magies sal dit in die taal verander wat ons verstaan, wanneer ons dit lees. Great idea!