Works like a charm. Thanks!
Posts made by didymario7
-
RE: I can't find the thread, sorry. Could someone help?posted in Questions & Answers
@l-andorrà said in I can't find the thread, sorry. Could someone help?:
I remember an old thread in which there is the solution I'm looking for, but I can't find it.
I need the formula used to calculate the lot size to be used on any trade with a fixed TP. What I mean is:I want to get 100 USD per trade but I will use different TP distances depending on market conditions. SL will be used at a fixed distance different from that of TP. What formula can be used to find the lot sixe required to achieve that money target for that specific TP distance?
Thanks in advance.
I suggest you use the "check profit (unrealised)" blue box then select the option which says profit money (total sum). This way, irrespective of the SL, lot size or TP, the Bot will be on the lookout for when the profit is 100USD.
-
RE: Reset a variable after a trade is closedposted in Questions & Answers
@jstap Thanks. I will try it out
-
Reset a variable after a trade is closedposted in Questions & Answers
Hello,
Someone should help with example blocks on how to reset a variable to empty value after a trade is closed in profit or loss.
Thanks
-
RE: Trailing Stop to Breakevenposted in Questions & Answers
@jstap said in Trailing Stop to Breakeven:
@didymario7 This is something I do regularly, in this link you can see how I do this.
It Worked, Thanks alot.
I just changed the "greater than" symbol to "less than" under buy and vise versa under sell.
Once again thank you

-
Trailing Stop to Breakevenposted in Questions & Answers
Hello Guys
I want to apply trailing stop to my profitable trade up to breakeven point.
For example my breakeven point is 2 pips from open price. The trailing starts at= 1pip profit, the trailing step is =0.1 and the trailing stop= 1pip. Now when the trade gets to 2 pips profit my stop moves to break even, then 'TRAILING STOP ENDS.The main challenge for me is how to get the trailing stop not to apply beyond 2 pips profit.
Thanks
cc @l-andorrà @bk7
-
RE: Close pending order before midnight and Reopen it after Midnightposted in Questions & Answers
Thanks guys, I really appreciate your input.
-
RE: Close pending order before midnight and Reopen it after Midnightposted in Questions & Answers
@bk7 said in Close pending order before midnight and Reopen it after Midnight:
or simply check at a certain time like 23:30 which open order you have
in a first step increase the sl (double)
second step open counter positions with a group id
third step at 01:00 for example close the counter orders (close all with selected group id)
fourth step return the sl to the original valueCould you please create sample blocks to illustrate this? Would be very helpful.
Thanks
-
RE: Close pending order before midnight and Reopen it after Midnightposted in Questions & Answers
@l-andorrà please help me with example blocks. Thanks
-
RE: Close pending order before midnight and Reopen it after Midnightposted in Questions & Answers
@tipsywisdom said in Close pending order before midnight and Reopen it after Midnight:

this might work
Logic says pending order or not,
between the hours of: 2330 to 0030 server time
Delete pending orders and turn off your buy and sell blocks, else (2330-0030) turn on buy and sell blocks.You will need to fill in the blocks yourself.
Lets say i have closed 3 previously opened pending orders..How do I
Save the open price of each of the closed pending orders in 3 variables.
2.how do I place a pending order to reopen each of the 3 closed pending orders 2 hours or a day later.
Example blocks will be helpful.Thanks
-
RE: Close pending order before midnight and Reopen it after Midnightposted in Questions & Answers
@tipsywisdom said in Close pending order before midnight and Reopen it after Midnight:
quick question, whats the theory and purpose of turning them off?
Some times at exactly midnight spread become very high. I close pending orders before midnight and reopen them after midnight when the spread normlises to avoid triggering a trade due to very high spread.
-
RE: Close pending order before midnight and Reopen it after Midnightposted in Questions & Answers
@l-andorrà this brings me to another question i have been battling with.. Lets say i have closed 3 previously opened pending orders..How do I
- Save the open price of each of the closed pending orders in 3 variables.
2.how do I place a pending order to reopen each of the 3 closed pending orders 2 hours or a day later.
Example blocks will be helpful.
Thanks
- Save the open price of each of the closed pending orders in 3 variables.
-
RE: Close pending order before midnight and Reopen it after Midnightposted in Questions & Answers
@tipsywisdom said in Close pending order before midnight and Reopen it after Midnight:

this might work
Logic says pending order or not,
between the hours of: 2330 to 0030 server time
Delete pending orders and turn off your buy and sell blocks, else (2330-0030) turn on buy and sell blocks.You will need to fill in the blocks yourself. This is MT5, I dont do MT4.
This was helpful. I used a variation of this to get it to work. The key was the turn on/off block.
Thanks -
RE: Can I hire/pay someone in this forum to build me an EA? (Fast emergency request)posted in General Discussions
@tipsywisdom said in Can I hire/pay someone in this forum to build me an EA? (Fast emergency request):
i wont take your money, but you can message me the idea and we can start from there. I also wont pursue you for more money if it doesnt work as intended even after your instructions.
Hello, please see if you can help with this-> https://fxdreema.com/forum/topic/12949/close-pending-order-before-midnight-and-reopen-it-after-midnight
Thanks in advance
-
RE: How to store a set of conditions as a variableposted in Questions & Answers
@l-andorrà said in How to store a set of conditions as a variable:
@didymario7 The logic is correct. The 'pass' block is not necessary though. Is that the whole project?
No I just got started though. As part of the project, please take a look at this challenge and see if you can help out. https://fxdreema.com/forum/topic/12949/close-pending-order-before-midnight-and-reopen-it-after-midnight
Thanks
-
Close pending order before midnight and Reopen it after Midnightposted in Questions & Answers
Hello guys,
I am trying to create blocks that will auto delete pending order before midnight (to avoid been in a trade with large spread) and reopen it at a certain time after midnight. See shared link
https://fxdreema.com/shared/f4aiDB1cdThe challenge for me now is when I use the once per trade/order block, it reopens deleted pending order just once and once forever. if for example the blocks on the left is true 2days later, the blocks on the right does not re-open the pending order.
How do I arrange the blocks on the right such that each time a pending order is closed before midnight, it reopens it after midnight, every time and not just one-off.
Thanks
-
RE: Close pending orders over weekendposted in Questions & Answers
@jstap said in Close pending orders over weekend:
@didymario7 The same parameters you used to make the original pending will need to be in the Mon buy/sell block, otherwise you will need a set up like this link text this is how to keep the values for buy in variables and use them, if you have more than 1 it will reset the variables.
It makes sense to me now. Thanks alot. What do you mean when you say it will reset the variables if you have more than 1?
If it resets the variables will it reopen all or just one pending (if we are dealing with multiple pending orders)Thanks