Thank you for the explanation.
I changed it as well as you said.
But what about my question? Create a button on the chart that immediately closes the SELL trade in progress? I just need that check.
Latest posts made by Denim
-
RE: Button Close SELLposted in Questions & Answers
-
Button Close SELLposted in Questions & Answers
I would like to have on the chart of this EA project a button to interrupt the trade when I see the price moving away from the opening, waiting for the moment when the price gets as close as possible to the opening to have the possibility to close the trade losing as little as possible. One way to manually intervene. I tried various solutions and examples but failed. How can I do? Here's the simple EA I'm testing:
-
RE: Open e Close pending Orderposted in Questions & Answers
@l-andorrà The project is this. Maybe I didn't quite understand how to implement closing an order for minimum loss and how to set the movement of pending orders closer to the current price. Here is the project (if you can call it that..)
-
RE: Open e Close pending Orderposted in Questions & Answers
@l-andorrà Sorry for the constant questions. I tried to apply the suggested filter but evidently I didn't quite understand how to apply it in the scheme to close open or pending operations. I also have another question: pending orders away from the current price. can they progressively "move" closer to the current price to either close or open?
-
RE: Open e Close pending Orderposted in Questions & Answers
Thank you for the explanation! I applied the filter and now it works almost fine. The only thing I still haven't figured out is how to close the order that remains open (if it's not in profit) by 10pm on the same day at the latest. If it doesn't close that one, it doesn't open others.
-
Open e Close pending Orderposted in Questions & Answers
I intend to experiment my first ea with this strategy : Calculate the minimum and maximum from 2.00 to 3:30 am and set two pending buy and sell orders on these two values with the trade closing at 20:00. the stop loss should be 10/15 pips and go to breakeven if the direction is in profit in the opposite direction (in profit). I've now sketched out (with very little FX experience) something like this, but it opens many trades (not just two) and doesn't close at the specified time. moreover, the last trades in the backtest do not close them at all. I am attaching the code diagram. I would also like to implement a trailing for profitable positions and the consequent breakeven for the opposite position. If anyone could help me figure out the steps, the functions to insert, and what's missing in the logic I'd be grateful.
shared/pHuPOi6Lb
-
RE: "Right Price" Targetposted in Questions & Answers
@Alan-paredes2 I understand. I tried to reproduce this bot because it allows me to make one or two trades a day. Not having much time to devote to trading, I have an indicator that works like this, which constantly points to the distance from the MA and when the price goes over and over in both directions it gives me a signal. I wanted to automate it because in the backtests the results were minimal but progressive. That was enough for me. I haven't found any robots that open one or two daily trades around. I was wondering if it was that hard to at least create the base like I described it, and then work on top of it to add endings and stuff. I understand that I would have to study all the FX voices and figure out how each one works to make that happen, but it would take me too much time. having at least the basis and seeing why it works this way would help.
-
RE: "Right Price" Targetposted in Questions & Answers
I have seen the suggested videos, but I didn't find how I can fix the EA which I did. Does anyone have any practical suggestions or explanations on how this can be done? It should open positions when it breaches and re-enters the low or high line and aim for the magenta EMA as the TP. But I just can't. If anyone can help me I would be grateful. Thank you