I need help for an easy ( I guess ) trading method
-
Hello,
I am not able to make a working EA with this simple rule :
Place a random order ( buy or sell) - > check profit - > If "x" amount is in profit then close trades. If "y" amount is in loss, then open an oposite trade ( keep the original trade also ) and then check again for profits and looses.
Any help to get me started will be appreciated !
Thank you , -
@styleflesh There is a block called random output connect orange to buy and yellow to sell block.
Pink for each trade block, connected to a pink pips away block, connected to a add to position or a buy/sell block.
Blue if trade block connected to a close losable trade block.
-
Dear @jstap,
I can't manage to build that. I try to make it more simple and eliminate the random first order.
Let's say the first ordrer it's a BUY.
After I place the BUY, i check for profit/loss.- If the trade is in a loss ( -100$ let's say ) then open another oposite trade ( SELL ) while keeping the original trade also .
- if the trade reaches a profit ( 200$) let's say, then close it.
This is the start. Can you please help with this ?
Where should i build it ? On init? on trade ?
Thank you !
-
@styleflesh Build all on tick, can move all later if needed, no trade connected to a buy block will give you your initial trade, the pips away block will only work in pips but to use money you have to add more blocks, get this working with pips, add a shared link and ask any questions for problems your having. Use back test to see what's working.
-
Dear @jstap
I have created the first blocks of the project: https://fxdreema.com/shared/Gt2r8MrCc
It only opens the first buy then it does nothing. What am I doing wrong ?
Thank you, -
@styleflesh Disconnect pink once there is a trade nothing under no trade will work, pink blocks need a pink for each trade above, as is you should have 2 trees.
-
Dear @jstap
I did as you suggested : https://fxdreema.com/shared/8XGFcvCWd
Now, it opens sells for every 100 pips distance from the oroginal trade ( i need to open only those two sells if the original buy is in loss - I put -100 pips in the pink block)
What must be added ?
Thank you ! -
@styleflesh You need a pink for each trade block above pips away.
-
Dear @jstap
Now it just opens unlimited buys : https://fxdreema.com/shared/yexwKnIBb
Thank you , -
@styleflesh This is because the on trade block is looking for group 0, but your buy block is placing group 2.
-
Dear @jstap,
Thank you for your fast reply.
Now I have Grp#2 on no trade block also. It opens the first buy, then it opens unlimited sells.
https://fxdreema.com/shared/SEhJyuIWb
Regards, -
@styleflesh Probably because there is no group used in pink, until you get a few trades working remove all groups, use minimal trades, when working add extras you want.
-
Dear @jstap
I have removed all groups, the behaviour is the same, after the initial buy, it opens unlimited sells:https://fxdreema.com/shared/GS65hEYee
Can you point out why ?
Thank you ! -
@styleflesh on phone now so looking inside blocks is not simple, make the pips away only look forvbuys and see what happens.
-
Dear @jstap,
I'm not sure how to do that ( I can't find that option ) : I just linked the bloks : https://fxdreema.com/shared/2NavXobIb
Regards, -
-
Dear @jstap, thank you for you answer.
Still, there is no ghange in the EA behaviour. It opens initial buy, then opens unlimited sells : https://fxdreema.com/shared/PBeNtxpfc
Thank you, -
@styleflesh The logic in this is: when price is 50 pips (in profit) away from buy place 2 sells, if this is doing more sells try adding a pink once per order block above your sell blocks.
-
Dear @jstap,
Now it worked, thank you ! it opens a buy and the 2 x sells. Now i start to work on conditions. I need to compare profit of those opened trades, what block do you sugest I should try ?
https://fxdreema.com/shared/FkNnTAmkb
Thank you for your help ! -
@styleflesh Use bucket of trades like this: https://fxdreema.com/shared/dpIKdHVKd
