Is there a way to reset Turn on / off blocks
-
how to reset multiple turn on / off blocks with their assigned blocks ?
its like reset the EA to function as just initialized by MT4
thanks
-
@saeed-2 I am unsure exactly what you are asking but, there is blocks called turn off & turn on blocks, set a condition to activate and comma separate the block numbers, like 1342,456,7890 and they will switch off on as required. Hope this helps
-
@jstap how these blocks are working is fine
but what im looking for is to reset the blocks thats been ( on/off )
i need EA to restart and resturn back the EA from beginiing
what im looking for is ( restart ) function
-
@saeed-2 Then you need a condition that turn on/off all required blocks when necessary, easiest way would be to remove EA from chart then reinsert but I don't think this can be done other than manually, you could just set a time to switch on/off.
-
@jstap agreed. timer or on/off controlling blocks. you cant totally restart an ea without manual intervention.
sidenote, timer cant be tested in backtest
-
@tipsywisdom so ive heard
-
@saeed-2 Do you mean restarting variables? That's a completely different thing. Blocks are not 'restarted'. Tehy are executed or not. Variables can be restarted to its initial values, though.
-
@jstap so it has to be manually .. will find a way to manually shorten time of EA restarting
-
@tipsywisdom yeah its has to be manually
-
@l-andorrà restarting all blocks that has been turn off / on by EA .. resetting variable value to zero is something else
-
the best way to resetting EA manually is to save a profile prior initializing the EA .. so the time u need to restart it again delete all charts and load that saved profile .. u will restart EA in shorter time
-
@saeed-2 No it will lengthen it, if EA is doing all for resetting then it will happen in less than a second, even if EA was to remove then reinsert it would take longer.
-
@jstap unless u have more than a 150 turn on / off block hehe
-
@saeed-2 Without seeing your project it's hard to say but, 1 off/on block can turn off/on many blocks by comma separating the id numbers.
-
@jstap i sorted out no issue .. just want to verify if there is a ready block to restart EA when certain condition occurred
-
@saeed-2 Not that I know of.
-
@saeed-2 the easiest way to manually reset is to drag and drop the EA onto the window and reload the saved inputs. You dont even need to close the window.