Dukascopy
 
 
Wiki JStore Search Login

V shape
 Post subject: V shape Post rating: 0   New post Posted: Tue 12 Apr, 2016, 08:41 
User avatar

User rating: 0
Joined: Wed 22 Feb, 2012, 12:24
Posts: 44
Location: Romania, Bucharest
Hi again,
You said to me that you are here just for helping me with problems which are popping up whenever i try to build a strategy with VIsualForex and you won't provide us/me with already built strategy like M,W or H&S. Ok i understood.
I want to build a W shape, but in order to have this pattern i have to create a V shape.
I have already built a V shape, but all my V shapes have either 3 black candles on the left and 3 white candles on the right, or 2 with 2 or 4 with 4........but i don't know at this stage how to make a v shape with for example 2 black candles and 3 white candles on the left and 4 black candels and 3 white clandes on the right ...and so on.
I hope you get my ideea.
I attached also a vfs file with my V shape.




Image


Attachments:
vshape.vfs [46.96 KiB]
Downloaded 125 times
vshapes.jpg [55.52 KiB]
Downloaded 410 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.
 
 Post subject: Re: V shape Post rating: 1   New post Posted: Tue 12 Apr, 2016, 09:01 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

I checked your attached vfs and you're on the right path with your idea:
2 black candles then 3 white candles:
Candle shift 5 --> RED --> Open>Close
Candle shift 4 --> RED --> Open>Close
Candle shift 3 --> GREEN --> Open<Close
Candle shift 2 --> GREEN --> Open<Close
Candle shift 1 --> GREEN --> Open<Close

Cheers


 
 Post subject: Re: V shape Post rating: 0   New post Posted: Tue 12 Apr, 2016, 09:52 
User avatar

User rating: 0
Joined: Wed 22 Feb, 2012, 12:24
Posts: 44
Location: Romania, Bucharest
Hi,
I know to build a V shape with 2 black candles and 3 white candles on the left and 4 white candles and 2 black candles on the right and so on.
The idea is other .......I want a shortcut which will enable me to create one single V shape which is consisted of more combinations of candles.
Otherwise i am forced to build dozens of V shape and this fact will load my platform with too much info.


 
 Post subject: Re: V shape Post rating: 1   New post Posted: Tue 12 Apr, 2016, 13:00 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
HI,


Quote:
I want a shortcut which will enable me to create one single V shape which is consisted of more combinations of candles.


I did not understand what you meant byt the above statement..
Although, if you want a consistent V shape, it really depends how you define the consistency of this pattern :

- Number of candles used in the pattern ? --> You can play with different number of candles using the shift value to determine how "confirmed" the V is.
- the depth of the V (or wideness) ? You can calculate the height of the V by checking the High of the first candle and the very bottom low of the V and use a minimum size in pips for example.
- the consistency of the pattern ? You can check your pattern in different time-frames (10 mn Vs 30 mn for example) and therefore any fluctuation in the 10 time-frame will be "smoothed in 30 mn ..
- Else ??

I don't know how would you define your requirement


 
 Post subject: Re: V shape Post rating: 0   New post Posted: Tue 12 Apr, 2016, 15:21 
User avatar

User rating: 0
Joined: Wed 22 Feb, 2012, 12:24
Posts: 44
Location: Romania, Bucharest
I want soemthing like this, but i am not sure if this thing is possible
Image


Attachments:
vvv.jpg [30.06 KiB]
Downloaded 397 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.
 
 Post subject: Re: V shape Post rating: 1   New post Posted: Tue 12 Apr, 2016, 16:36 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Image


Attachments:
Chart_EUR_USD_30 Mins_inputs.jpg [180.12 KiB]
Downloaded 301 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.
 
 Post subject: Re: V shape Post rating: 0   New post Posted: Tue 12 Apr, 2016, 17:46 
User avatar

User rating: 0
Joined: Wed 22 Feb, 2012, 12:24
Posts: 44
Location: Romania, Bucharest
Yep ..you're right.. Then let's reduce the amplitude of this V shape in this form.


Image


Attachments:
vshape3.jpg [42.9 KiB]
Downloaded 418 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.
 
 Post subject: Re: V shape Post rating: 1   New post Posted: Wed 13 Apr, 2016, 08:15 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

It seems like you misunderstood what I've wrote:
By "amplitude" I was referring to the candle size and not any pattern you spoke about. So to determine the candle's amplitude you need to check its color first, then calculate its body (IF RED then OPEN - CLOSE and IF GREEN it will be CLOSE - OPEN.
Once done, and you are happy with the candle's body size, you can implement a counter just after the your first big RED candle and start increment (to 10 as you said) till a Green candle is detected with the needed body size. Then you'll get it.

Cheers


 
 Post subject: Re: V shape Post rating: 1   New post Posted: Fri 15 Apr, 2016, 10:56 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Alright,

I came across what you said in different post and here's a simple example based on the following assumptions:

Assuming that you want to detect this V pattern regardless of the number of candles that sits in-between the \ / lines, I built a strategy that considers:
1/ The start of the V should be a red candle and its amplitude is at least 30pips
2/ the end of the V should be a green candle with the same amplitude size.
3/ the bottom of the V is determined by a low candle that should be "far enough" from the red candle low described in 1/ (in this example 10 pips)

The sequence of such requirement is made with the help of "V_identifier" variable : it takes sequentially the value 1, 2 then 3 once the above 3 assumptions occurred.

You can play with the amplitude sizes (30 pips here) and the bottom V (10pips away) to determine how sensitive your V should be (Screenshot 1 and 2)
The trading period is also important as you can imagine: 30 pips candle's amplitude in 10seconds period happens less frequently than in 30 mn candle size.


Image
Image


Attachments:
1.jpg [251.33 KiB]
Downloaded 298 times
2.JPG [276.76 KiB]
Downloaded 292 times
V_pattern.vfs [35.77 KiB]
Downloaded 136 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.
 
 Post subject: Re: V shape Post rating: 0   New post Posted: Mon 18 Apr, 2016, 08:51 
User avatar

User rating: 0
Joined: Wed 22 Feb, 2012, 12:24
Posts: 44
Location: Romania, Bucharest
I see now what you uploaded here and your excellent description :shock: . Yap.. this is 100% what i wanted :). Thanks very much. You have all my respect.
Based on this V shape i will try later on to create an M shape. For the moment i will play some time with this V shape to understand the coding.


 
 Post subject: Re: V shape Post rating: 0   New post Posted: Mon 18 Apr, 2016, 12:18 
User avatar

User rating: 0
Joined: Wed 22 Feb, 2012, 12:24
Posts: 44
Location: Romania, Bucharest
Now I understand the coding behind this V_pattern, but this pattern is not complete as long as the open of first candle (most of the time) is higher than the close of last candle. I tried to solve this issue by myself , but i failed. This approach is something new for me. And at last i understood the usefulness of the Assign block. . I am sorry disturbing you again with this kind of question. Sorry
Image


Attachments:
vcomplete.jpg [93.37 KiB]
Downloaded 394 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.
 
 Post subject: Re: V shape Post rating: 1   New post Posted: Mon 18 Apr, 2016, 13:29 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

In this case:
Once the first RED candle detected, you need to save at which prices it was formed: Take the open and close for example and save these prices in a new variables
THEN: your GREEN candle should have the same amplitude (approx.) AND should be formed in the same range where the RED one was made: As you saved the open and close of the RED candle before, you can add a condition IF open GREEN is between Open and Close of the RED one.

(There could be some other ways much more simpler... this is the first idea that came into my mind ...)

Over to you to put in blocks what I described above ;)

Cheers


 
 Post subject: Re: V shape Post rating: 0   New post Posted: Tue 19 Apr, 2016, 10:01 
User avatar

User rating: 0
Joined: Wed 22 Feb, 2012, 12:24
Posts: 44
Location: Romania, Bucharest
Hi,
I tried to translate your advices in coding, but it still not working.
Check my attempt below.

Hope i am not very far away from the right path


Attachments:
V_patternattemptcomplete.vfs [40.36 KiB]
Downloaded 134 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.
 
 Post subject: Re: V shape Post rating: 1   New post Posted: Tue 19 Apr, 2016, 10:38 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Please read one more time what I've wrote:

Quote:
your GREEN candle should have the same amplitude (approx.) AND should be formed in the same range where the RED one was made: As you saved the open and close of the RED candle before, you can add a condition IF open GREEN is between Open and Close of the RED one.


Now back to your strategy:
What's the point of assigning 4 to the V_identifier variable ??
Your last condition IF 'Close green" > 'OpenRed' : Do you think this is sufficient for your need ?

Can you try to express this "should be formed in the same range where the RED one was made" in logical conditions ?

Cheers


 
 Post subject: Re: V shape Post rating: 0   New post Posted: Tue 19 Apr, 2016, 12:10 
User avatar

User rating: 0
Joined: Wed 22 Feb, 2012, 12:24
Posts: 44
Location: Romania, Bucharest
I attached a photo with what i understood from "should be formed in the same range ".
If my assumption is right then to be honest i don't know how to do that. Give me more hints.
I corrected the last conditions

Image


Attachments:
v2.jpg [88.44 KiB]
Downloaded 392 times
V_patternattemptcomplete1.vfs [39.32 KiB]
Downloaded 127 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.
 
 Post subject: Re: V shape Post rating: 1   New post Posted: Wed 20 Apr, 2016, 14:10 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Your understanding is correct.

A range is identified by prices, so suppose your RED candle is having [email protected] and close 1.1950 then your GREEN candle should have an open and close somewhere in-between this range [1.1950 , 1.2010]
Example:
IF candle is Green THEN
IF GREEN Open > Close of the RED
Or any other way to make your green candle starting at approx the same level as the red previous one .

I cannot clarify more than that ...


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com