|
I need Help to get the Take Profit in pips and Stop Loss on CandlesHigh/Low |
counter
|
Post subject: I need Help to get the Take Profit in pips and Stop Loss on CandlesHigh/Low |
Post rating: 0
|
Posted: Thu 22 Dec, 2016, 00:19
|
|
User rating: 0
Joined: Sun 28 Sep, 2014, 19:04 Posts: 16 Location: GermanyGermany
|
Hello Everybody!
After Research,i could not find a similar topic about my Issue. Here is an Example of Buy Order at Market: I want someone to tell me 1.) how i can put the Stop Loss in the Open at Market Buy Order based on the previous Candle Low and 2.)in the same Open at Market Buy Order i would like to give for the Take Profit as usually the amount in pips.
As i know for the 1. case i have to adjust the Settings of the Block "Open at Market" in Price and in the 2. Case in Pips. So,how do i achieve my purpose since its not possible to have at the same Time Two different Settings on the same Block?
Thank you in Advance!
|
|
|
|
 |
amine_chourou
|
Post subject: Re: I need Help to get the Take Profit in pips and Stop Loss on CandlesHigh/Low |
Post rating: 0
|
Posted: Thu 22 Dec, 2016, 13:12
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hello there ! Solution 1  Solution 2 
Attachments: |
Sol1.JPG [101.89 KiB]
Downloaded 423 times
|
Sol2.JPG [100.33 KiB]
Downloaded 423 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
counter
|
Post subject: Re: I need Help to get the Take Profit in pips and Stop Loss on CandlesHigh/Low |
Post rating: 0
|
Posted: Thu 22 Dec, 2016, 14:15
|
|
User rating: 0
Joined: Sun 28 Sep, 2014, 19:04 Posts: 16 Location: GermanyGermany
|
Hello Amine and thank you for Response, I have tried the solution 1 and it works only for SL and not for TP from the "Set Take Profit" Block and by solution 2 it worked inversely.Ecxept from this problem,i get Erromessages too like in the attached Image. 
Attachments: |
1.jpg [193.11 KiB]
Downloaded 402 times
|
test.vfs [33.71 KiB]
Downloaded 173 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
amine_chourou
|
Post subject: Re: I need Help to get the Take Profit in pips and Stop Loss on CandlesHigh/Low |
Post rating: 0
|
Posted: Thu 22 Dec, 2016, 14:45
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
I see,
I've used the "One way exit" out of the open @ market block and I believe VJF interface executed the request very quickly before even the position is created (the fill message confirming that "Long" position is received back ) so the result is: the platfrom is trying to place a TP order for a position not yet confirmed as filled. If you change the exit out of "Fill OK" pin it will work.
|
|
|
|
 |
counter
|
Post subject: Re: I need Help to get the Take Profit in pips and Stop Loss on CandlesHigh/Low |
Post rating: 0
|
Posted: Thu 22 Dec, 2016, 15:02
|
|
User rating: 0
Joined: Sun 28 Sep, 2014, 19:04 Posts: 16 Location: GermanyGermany
|
I have changed the the exit out to the "Fill OK" but the problem is that although i have limited to take position only one Time until it closed, it seems to open many many orders like i show with the black Arrows in the Image. I have tried it with the Exit out"Submit Ok" and i get the same results. 
Attachments: |
2.jpg [215.8 KiB]
Downloaded 396 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
counter
|
Post subject: Re: I need Help to get the Take Profit in pips and Stop Loss on CandlesHigh/Low |
Post rating: 0
|
Posted: Thu 22 Dec, 2016, 16:29
|
|
User rating: 0
Joined: Sun 28 Sep, 2014, 19:04 Posts: 16 Location: GermanyGermany
|
Hey Amine, i figured the problem out. Well,let's take the Example with the two Arrows in the Image. Based on the simple Strategy the Condition is to open a Buy Order if the Candle(Shift 1) is Bullish/Green and conversely if its bearish/Red. So,If you see the Candle 1 is Green which means the Candle 2 opens a Buy Order with SL on Candles 1 Low. Based on the Strategy we have only one open Order here and are waiting to close so it can open the next one. On the Candle 3 the Order will close since the Price has reached the Low of Candle 1. At this Moment, the Strategy is trying to open the next Order which is Buy Order(because the Prev. Candle 2 is Green) but the Open happens under the Low of the Candle 2 which it should be the SL Level so the Order imediately close and opens a new one and it closes again and so forth and so on.. It happens the same Situation on the Candle 6.. So i try to solve the Problem with a few If Blocks Conditions and i hope i will solve it. Until Then, every Solution is appreciated 
Attachments: |
3.jpg [230.21 KiB]
Downloaded 406 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
amine_chourou
|
Post subject: Re: I need Help to get the Take Profit in pips and Stop Loss on CandlesHigh/Low |
Post rating: 0
|
Posted: Thu 22 Dec, 2016, 16:41
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
I need to see the strategy .. could you please attach it in vfs format ? File > Export
|
|
|
|
 |
counter
|
Post subject: Re: I need Help to get the Take Profit in pips and Stop Loss on CandlesHigh/Low |
Post rating: 0
|
Posted: Thu 22 Dec, 2016, 17:02
|
|
User rating: 0
Joined: Sun 28 Sep, 2014, 19:04 Posts: 16 Location: GermanyGermany
|
|
|
|
 |
amine_chourou
|
Post subject: Re: I need Help to get the Take Profit in pips and Stop Loss on CandlesHigh/Low |
Post rating: 0
|
Posted: Thu 22 Dec, 2016, 17:16
|
|
Visual JForex expert at Dukascopy |  |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
I see now; The problem is not related to what we discussed earlier but it is dealing with the trading logic: If you look deeper where these multiple trades are triggered you can see that for short trades the previous red candle high is way below the open price which triggers an immediate close of the position exactly as you mentioned. Short  Long 
Attachments: |
SLExec.JPG [100.73 KiB]
Downloaded 400 times
|
SLExec2.JPG [42.54 KiB]
Downloaded 404 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
counter
|
Post subject: Re: I need Help to get the Take Profit in pips and Stop Loss on CandlesHigh/Low |
Post rating: 0
|
Posted: Thu 22 Dec, 2016, 17:32
|
|
User rating: 0
Joined: Sun 28 Sep, 2014, 19:04 Posts: 16 Location: GermanyGermany
|
Yes exactly,thats why i added two If Conditions Blocks (open>Low(1) in Case of Buy Order an (open<High(1) in Case of Sell Order) but the problem is what to do or what Conditions could we add to prevent the Situation in your Picture which the Price reach the SL on the Candle that is still occuring. What do you think?
|
|
|
|
 |
counter
|
Post subject: Re: I need Help to get the Take Profit in pips and Stop Loss on CandlesHigh/Low |
Post rating: 0
|
Posted: Fri 23 Dec, 2016, 16:00
|
|
User rating: 0
Joined: Sun 28 Sep, 2014, 19:04 Posts: 16 Location: GermanyGermany
|
Hi Amine, as i mentioned in my post i have added two If Blocks like the Solution you give now here but thw Difference is that my open price> stop loss and vise versa was from last bid and not from the Variable Long like you say. Do you mean that is a Different ? Anyway i am out now and i will try it. Thank you very much.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|