How can I buy when the price goes up five points, and sell when the price goes down five points.
-
How can I buy when the price goes up five points, and sell when the price goes down five points.
I don't want to use the previous sell or the previous buy as a starting point through the pink blocks, I want the starting point the line drawn >
Every time the price moves five points above the drawn line, buying is done, and every time the price drops below the line drawn five points, selling is done.
Of course, the line is moving
I made an example of using pink blocks but that's not what I want -
@khalids222 Thank you, it is resolved
-
@khalids222 Looks like I lost the right way? Or I thought it was correct.
Who can help me -
@khalids222 Do you know that points are 10 times pips? If you are still adding to position it just closes the 1st and makes a new for the second, maybe you are better just placing a new? If you put the latest project link here then what is happening can be checked.
-
@jstap
https://fxdreema.com/shared/2jJZJ1eTcThis is the latest project, I hope the idea is clear
-
@khalids222 In this picture you'll see how I have used the adjust boxes to remove a formula block, I have also changed the condition to use the value you are using to draw lines rather than the line, lines aren't as stable to use a value, I also changed the name in delete, this is how I would expect to work, I changed candle 0 to 1, FX works better on 1 than 0 because you only have a candle 0 close for a split second before it becomes candle 1 close and candle 0 open, I haven't tested but should work, just ensure the timing of actions all line up with what you would like.

-
@jstap Can you send me the link with the icons removed that are useless.
Since I do not know some of the individual icons work or not.
In addition, I did the same as in the picture, but sometimes I find the difference between selling only one or two points, not ten pointsIn the end, I thank you for your effort, but I want from the same point if it move ten points up to sell, and if it move down to buy

This is a picture that shows there is more than a small difference in selling points
-
@khalids222 Have you tried pips away? I think this will do all you require. In this I have stopped it drawing to see how it responds, add back in if you want them.
-
@jstap Thank you for your response, but unfortunately
No more than six deals were opened for buying and selling, and then nothing.I deliberately didn't use the pink block from the start.
I want, when buying from a certain point, to exchange buying and selling from the same point
Let me give you an example
PRICE NOW= 1.1850
OPEN BUY = 1.1840
OPEN BUY= 1.1830
THEN PRICE BACK TO 1.1840 HERE I WANT OPEN SELL NOT SELL AFTER 1.1860 -
@khalids222 I am unsure why this doesn't buy/sell, for some reason I couldn't get the market properties price into a comment so I rebuilt to see if I could, I did (sometimes this happens) I still couldn't get it to place a trade, so I put in a comment block and visibly watched the numbers match, here is that project:
-
@jstap Thank you for your efforts, I appreciate this.
Unfortunately, it seems that the EA loses the signal and does not open, due to an error.
I deleted the stop loss, it no longer opens any trades -
@khalids222 Your welcome, maybe someone else will look and see the problem.