@jstap said in using turn on/off blocks:
e same condition
thanks but I didn't get your point exactly. would you please tell me what should I do in order to fix the problem ? is it correct to change it as the screen shot below

@jstap said in using turn on/off blocks:
e same condition
thanks but I didn't get your point exactly. would you please tell me what should I do in order to fix the problem ? is it correct to change it as the screen shot below

@l-andorrà that's a good idea. I am familiar with the concept of UNIX time but never used it myself. what block do you recommend to use for that?
@jstap when the trade is closed it opens another trade so instead of 1 trade it opens the 2nd trade after closing the first one and after that the ea stops working ( it doesn't reset after X amount of time)
Hi I have an issue in my EA turning blocks on/off to reset. whenever a trade is closed I want the ea to wait for X amount of time and then automatically restart after X time passed. I have shared the link to the project here. it seems ok to me but it doesn't work. I would appreciate any help on that. thanks
https://fxdreema.com/shared/2D8alq3md
@jstap blocks 6,7 are in 'buy now' 'sell now' blocks on tick tab. I have moved them to 'on tick ' tab. the problem is that it does not restart after 'once per minutes' block. (toggle--->once per minutes----> toggle). this is how I have tried to turn blocks 6,7 off and on for a specific amount of time neither in 'on trade' or 'on tick' tabs
I have a news trading ea which opens multiple trades on different levels, SL/TP are dollar value levels. I want to turn off the ea when the first circle of trades are closed (no matter with loss or profit) after the data release and turn it on back to normal after X minutes. I have tried to use 'toggle blocks' to do what I want but it doesn't work. the shared project below is how I have done that. I can't figure out what is wrong with that.
i have copied relevant blocks from 'on tick' and 'on trade' tabs. blocks 6,7 in 'toggle blocks' are 'buy now' and 'sell now' blocks.
https://fxdreema.com/shared/EdUknGCjb
@l-andorrà Got it. thank you so much for your explanation

@l-andorrà I've done the modifications you have recommended. in strategy tester in looks like it is working ok. would you please tell what is the reason to put the 'once per trade' before buy and sell blocks in the blocks. just for learning purposes I don't understand what that block does there. thanks
@l-andorrà said in Grid positions SL is not working properly:
once per trade'
thanks, I'll try that to see how it goes.
Hi.
I have a problem with my EA putting on SL for trades. On grid mode when the price keeps moving in a direction the EA places new position every (X) pips. each position has a fix SL. the problem is that sometimes it does place the SL for the latest position and sometimes it places the SL only for the first position in a grid. that is quite strange. it's like 50 - 70 % of the times it is working ok but for around 30 % it does not and it undermines the reliability significantly. I share the the grid part of the project so it may clarify something that I am missing
https://fxdreema.com/shared/czkjS2x4e
@mehdi1404
روی ویندوز با فیلترشکن میاد بالا
I am trying to create a simple trade assistant ea that closes all the positions when the accumulation profit/loss of open trades reach a certain value. i have created the ea but it doesn't work. the only point is that trades have been created manually. I don't know it is relevant or not. here is the shared link
https://fxdreema.com/shared/uip4SJBld
Hi, I have an EA working with time bomb blocks. I'm forward testing on a demo account. more than 90% of the times SL levels work perfectly fine but for a few of them although they reached the SL level and even passed the level significantly, the positions weren't closed. considering that the market was not in a volatile condition the question is that how reliable the EA is. I mean could it be a bug in the EA that didn't close the positions properly or it is something related to the chart and the broker?
@l-andorrà
thanks, I have checked the example you mentioned. it was very clear. now i know how to do that.
thanks a lot
@jstap thanks,
I have tried but couldn't find anything. probably I was checking wrong keywords
I'm trying to add a button to my EA that whenever I click on that it closes all the open positions. I should put 'draw button' block on chart tab but I don't know how to connect the close the positions with hitting that button on the chart.
@jstap
That was the explanation that I was looking for a while but never checked the ? part. learned my lesson. thank you so much