@nehemiah7 Yopu need to use two separate 'once per bar' blocks. One for buy and another one for sells.
Posts made by l'andorrà
-
RE: Bullish and Bearish Tickposted in Questions & Answers
-
RE: Help with entriesposted in Questions & Answers
@camo100 Working on candle ID 0 is alway tricky because you never now what price will finally do. You can try to look for that pullback on a lower timeframe. There you can work on closed candles and then get the info to the trading timeframe.
-
RE: Hi ... can any some one in here how to fix , what kind error on this settingposted in Questions & Answers
@homemebel Did you try my suggestion? It should work.
-
RE: Increase Lot size XXX per XXXposted in Questions & Answers
@swoop87 Here you will find a good way to deal with it:
-
RE: Money Managerposted in Questions & Answers
@rodrigo-ortuzar No, what I shared was the initial step to create the structure only. That formuls does the following. The initial value for variable NEEDS to be 0. Now you run the EA for the first time on the chart. The first value for it will be:
-
Current balance: 10000. Thus the formula will be: 10000 / 1000 = 10. This means the frst lot size will be 10.0 lots. Now I see I was wrong because I should have used 10000 on the adjust box. Sorry for that mistake. Please substitute it so that...
-
The new calculation will be 10000 / 10000 = 1.0. This is the correct value for your initial lot size.
-
Now imagine you trade is successful and you new balance is 11200. As soon as the trade is closed the calculation will be: 11200 / 10000 = 1.12. And here you have the new lot size.
Does it make sense now?
-
-
RE: get date and time on startposted in Questions & Answers
@piptheripper You need custom code to do it. The admin uses it in those blocks where time in components can be used. Try to ask for it to him. Otherwise, I cannot help, sorry.
-
RE: get date and time on startposted in Questions & Answers
@piptheripper I'm afraid the time information on a tick is stored in UNIX format, not in components format. You can use that same structure but for UNIX. However, you will have to 'translate' it into components somehow later.
-
RE: Bullish and Bearish Tickposted in Questions & Answers
@nehemiah7 Then you need to move your 'once per bar' block from top to bottom of your opening conditions. Just immediately above both 'buy/sell now' blocks. That way there will be just one buy/sell per bar.
-
RE: why the system doesn't workposted in Questions & Answers
@sebaseba54 Can you please share the link to the project instead of the file? That would be easier to review?
-
RE: Hi ... can any some one in here how to fix , what kind error on this settingposted in Questions & Answers
@homemebel You can move the 'once per bar' block at the bottom of each tree branch, just immediatly above each 'buy/sell now' blocks.
-
RE: MT5 Market Closed errorposted in Bug Reports
@dore I'm still struggling with the 4002 error and I'm afraid this is a common feature for MT5 in fxDreema. I hope the admin can provide a solution for your error. Could you please share it here when it is fixed?
-
RE: Money Managerposted in Questions & Answers
@rodrigo-ortuzar You need a loop to calculate that as soon as a trade is closed in order to open any new trade with that new lot size. You can begin with this:

Please notice that those blocks are on the 'on trade' tab.
-
RE: moving averageposted in Questions & Answers
@zain-harvest This option is not implemented in fxDrema. You need a cusom indicator to embed into your project or be a codre and follow jstap's suggestions.
-
RE: Pending Orders Run Twiceposted in Questions & Answers
@acealert But then how are the first TP distamces calculated? If you open a trade manually, will it have SL and TP? Are those TP and SL levels then used for the new open prices for the pending orders? And how are those level supposed to be calculated then? I'm afraid I'm missing something.
-
RE: numero mágico - grupo o cubo de oficiosposted in Questions & Answers
@uriel-0 No había reparado en esa solución. Muchas gracias por compartirla.
-
RE: Subventana del indicadorposted in Questions & Answers
@uriel-0 Efectivamente. Hasta donde you sé, no hay otro modo de conseguirlo.
-
RE: Partial TP once not alwaysposted in Questions & Answers
@anselem You can do it this way:

The distance in pips for that vlock in the middle is where you want your partial TP to be.
-
RE: Buy/Sell pending ordersposted in Questions & Answers
@legendarymike You just need to add my suggested blocks besides your current structure.
-
RE: Break even when 2 MA crossesposted in Questions & Answers
@bagheria Not sure I get it. If I understand it correctly, you want to open the second trade just to cover the loses of the previous one. Is that correct? Should it happen every time a trade is lost? Beacause in that case, what loses should be covered?
-
RE: PARTIAL CLOSEposted in Questions & Answers
@kestra Ok. I see. In that case what you need is using the exact same magin cnumber on all EAs. That way what one EA will close will also be considered by all the other.