Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Open position http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=55369 |
Page 1 of 1 |
Author: | Lowech [ Wed 26 Jul, 2017, 08:12 ] |
Post subject: | Open position |
Good afternoon. How to make that while a buy signal is being received, only one order is opened and when the closing is closed, a repeated order is not opened until the signal continues |
Author: | amine_chourou [ Thu 27 Jul, 2017, 15:38 ] |
Post subject: | Re: Open position |
Hi, This is feasible but can you come up with a concrete example ? what are your entry condition(s) exactly ? |
Author: | Lowech [ Thu 27 Jul, 2017, 22:54 ] |
Post subject: | Re: Open position |
If the price of the Bid is above the moving average, then I open a buy order, if Bid is lower, I open the sell order. But the position after the close on take profit is opened again, because the entry conditions have not changed. What kind of filter can I set? |
Author: | amine_chourou [ Fri 28 Jul, 2017, 08:29 ] | ||
Post subject: | Re: Open position | ||
Here you go...
|
Author: | Lowech [ Sat 29 Jul, 2017, 12:14 ] |
Post subject: | Re: Open position |
Thank you, but I need new orders to not open at all, if one order has already been opened and the signal for opening this order has not changed. Reopening is possible only if the price is again above the moving average and then again go down below its value, only then the warrant for example for sale can be reopened. It is necessary that any change |
Author: | amine_chourou [ Mon 31 Jul, 2017, 13:40 ] | |||
Post subject: | Re: Open position | |||
Hi there, Check the attached, I've added a logical variable that manages the entry signal. For this Long entry, you can see that no position is opened until the bid price goes back under the EMA then up afterwards.
|
Author: | Lowech [ Thu 03 Aug, 2017, 16:01 ] |
Post subject: | Re: Open position |
Thanks, helped. I still have a question, what should I prescribe so that at the start of the strategy the orders are not immediately opened? But they waited for the price to cross the paper? |
Author: | amine_chourou [ Fri 04 Aug, 2017, 15:59 ] |
Post subject: | Re: Open position |
Hi, Quote: But they waited for the price to cross the paper? Not sure if I well understood: Do you mean when the market price goes below the EMA for a short signal ? and vice versa for Long ? if so that was implemented as the strategy will not open any trade till the market crossover the EMA upward. |
Author: | Lowech [ Sat 05 Aug, 2017, 22:48 ] |
Post subject: | Re: Open position |
When the strategy starts, the price is always higher or lower than the price, you need the order not to open immediately as the strategy starts to work, but waits for the price to cross the line. |
Author: | amine_chourou [ Mon 07 Aug, 2017, 14:11 ] |
Post subject: | Re: Open position |
Yes, that what is implemented. When you start the strategy and the market price is above the EMA there will no positions opened till the crossover happens. Please test thoroughly ... |
Author: | Lowech [ Sat 12 Aug, 2017, 06:47 ] |
Post subject: | Re: Open position |
Good afternoon. Everything works, thank you. Please tell me more ... how to find the loss of all the last closed orders before the first oder closed in plus? |
Page 1 of 1 |