i know there is a block to modify stops but is it require the trade to already have stops in order to modify them
my question is , is there a way for the ea to place the stops automatically ?
i mean if i open a trade manually , the ea places the stops accordingly.
auto place stops
-
i know there is a block to modify stops but is it require the trade to already have stops in order to modify them
my question is , is there a way for the ea to place the stops automatically ?
i mean if i open a trade manually , the ea places the stops accordingly. -
@zackry Hi, maybe this way? I have not tried
-
@ambrogio I already tried that but it does not work...
The " modify stops " block can only modify the stops if the trade is opened with a stop, but what I am trying to do is when the trade is opened manually without any sl or tp, the ea places the stops on that particular trade... -
You need to add a 'For each trade' block between both of them for it to work.
-
@l-andorrà I don't think "for each trade" block will work, because in the end their is still that "modify stops" block, which will only modify the already placed stops, I don't think this block has the capability to place a stop if there is no stop
-
@zackry i did with another way.
I put 2 buttons for buy and sell on the chart and if I need open position manually I using them. then EA knows what happened and can control the positions.
i created with a separate group just for manually position -
@xfire yeah i thought about that but the problem is my main objective is to open trade on my phone cuz its more convenient , and keep the ea running on my laptop , so even if i am outside i can place the trade from my phone and the ea automatically places the sl and tp
modifying the stops is easy once there is a stop on the chart but the problem is if there isnt any stop with a trade then what ? how do we place a stop for a manually opened trade ? -
@zackry ok, i understand. you need a Pro programmer created a phone app for you
-
i did find this mql4 version of an ea which does something similar, 0_1586683050024_RoNz Auto SL-TS-TP.mq4
if someone good in coding can take a look at the code and help me put it in fxdreema i will highly appreciate it , cuz when i try it on my own , i get lots of errors
-
@xfire hmmmm interesting but isnt the bucket of trade used for getting the information from the trades , instead of adding the information to the trade?
but according to my understanding , modify stops block will only work if there is a stop already placed with the trade , if there is no stoploss that block can not modify it
"modify stop " block can not modify something that does not exist
in order for it to modify , it needs the sl or tp already placed
or am i wrong -
@zackry no Modify stop can add or remove or change SL and TP
if you put 0 it means to removeyou try with bucket i think it working
-
@l-andorrà said in auto place stops:
You need to add a 'For each trade' block between both of them for it to work.
so i was wrong , modify stops do place the stops even if there is no stops initially
but there seem to be an issue , the ea places the stop most of the times , but sometimes it doesnt place the the stop https://fxdreema.com/shared/TX3Uhmjsc can you have a look and see whats going on ?
-
@zackry Oh yes, I've seen this flaw on mt5 several times, I've remedied by putting the conditions in the "on tick" section like "if position" once per position "modify stop", if i remember well
-
@ambrogio well looks like I'll have to do it on tick as well, because if I leave it on mt5 mercy then it's gonna mess up whole thing
-
@ambrogio yep its now working like a charm , apparently the "on tick" tab is much more effective then the on trade
-
@zackry good!!