Sell and buy stop mobile
-
Hello everybody. How can I make the sell stop or buy stop move based on the price trend? In particular I would like to create an ea in which the exit from the bollinger band upper band of the previous candle (1) involves the positioning of a sell stop on the current candle (0) 50 pips away from the price from the upper Bollinger Band. If the price continues to rise, the sell stop rises evenly. The same thing opposite for the buy stop. Can someone help me?
-
@ale That is not a trivial EA to do. Do you have any initial project to begin with?
-
@l-andorrà Hi, I'm not a programmer and I try with fxdreema.

I was thinking about something like this to develop... But I'm also poor with Fxdreema I think XD XD XD
-
@ale No problem. We can begin step by step. Can you please share the link to the project instead? We will begin from there.
-
@l-andorrà
Hi, thanks, but I don't know how to link the project.
However, I believe that having a basic account I cannot share it. Too bad because it can be a good project I think on a vps with low latency and low slippage. -
@ale I confirm basic accounts can confirm links. You can do it this way:

-
Hi, thanks for your advice
https://fxdreema.com/shared/cpvAA3jie
This is the project. The idea is to be able to place a pending order when the previous candle closes above or below the upper or lower bar of BB. For example, if it exceeds the upper bar of the bollinger band and the next candle (or even the same one) continues to rise, the pending order sell order entered at a certain distance (10 pips) follows until the price falls and takes the sell stop . So the opposite holds true in the opposite case. The second RSI condition serves to give greater confirmation of the trend.
In my project it opens up multiple positions and it doesn't work as it should.
-
@ale Here you have some initial changes to do:
- You should substitute that 'no trade' block bu another one called 'no trade/order'. Otherwise many orders will be programmed.
- I recommen to use candle ID 1 on all operands of all blocks instead of candle ID0. That would mean you should add a 'once per bar' block on top of teh whole structure.
- Remove one of those 'trailing pending orders and diconnect the other one from its current position to be connected below a 'pass bloc on a different block tree.
Thant should fix most of your issues.
-
@l-andorrà Thanks. I have made the changes but the pending order does not follow the price yet. I don't understand why. Anyway thanks.
-
@ale Can you please share the link to the updated version?
-
-
@ale You missed my recommended point 3.
-
@l-andorrà Sorry, then I guess I didn't understand how because I thought I did. Can you show me what you mean? Thanks for your time.
-
@l-andorrà done... i guess

-
@ale No. I meant this:

-
@l-andorrà Thanks!!!!
-
@ale You're welcome.