Dukascopy
 
 
Wiki JStore Search Login

How to define a height of candles?
 Post subject: How to define a height of candles? Post rating: 0   New post Posted: Wed 10 Jun, 2015, 12:01 
User avatar

User rating: 1
Joined: Wed 30 Jul, 2014, 14:33
Posts: 95
Location: Lithuania, Vilnius
Hi,
Is there a tool to define a height of candles in the strategy? The idea is as follows. If we have the same 3 candles, e.g. the green ones, one by one and the height of these 3 candles is less than 60 pips the buy position has to be opened. But if they are higher than 60 pips no position has to be opened.
Are there any blocks in VisualJForex I can include in to my strategy to define it this way?
Could anybody help me with that, please?
Thank you in advance.


 
 Post subject: Re: How to define a height of candles? Post rating: 0   New post Posted: Thu 11 Jun, 2015, 14:30 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Every bar has 4 properties:
Open, High, Close, Low

You can use the Open and Close values to get the height...


 
 Post subject: Re: How to define a height of candles? Post rating: 0   New post Posted: Thu 11 Jun, 2015, 14:39 
User avatar

User rating: 1
Joined: Wed 30 Jul, 2014, 14:33
Posts: 95
Location: Lithuania, Vilnius
I did that you wrote about. I mean I used the "candle open" and the "candle close" in the "if" block. Unfortunately, I don't know how to get the pips value in case to define the height of the candles.
Any suggestions, please.


 
 Post subject: Re: How to define a height of candles? Post rating: 0   New post Posted: Fri 12 Jun, 2015, 12:31 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Does it need to be implemented in Visual Forex or Java code?


 
 Post subject: Re: How to define a height of candles? Post rating: 0   New post Posted: Fri 12 Jun, 2015, 13:16 
User avatar

User rating: 1
Joined: Wed 30 Jul, 2014, 14:33
Posts: 95
Location: Lithuania, Vilnius
I prefer to have it implemented in VisualJForex code. I just need to know what blocks should I use for that.
Thanks.


 
 Post subject: Re: How to define a height of candles? Post rating: 0   New post Posted: Tue 16 Jun, 2015, 16:32 
Visual JForex expert at Dukascopy
User avatar

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

I've replied in your previous post.


 
 Post subject: Re: How to define a height of candles? Post rating: 0   New post Posted: Wed 17 Jun, 2015, 17:05 
User avatar

User rating: 1
Joined: Wed 30 Jul, 2014, 14:33
Posts: 95
Location: Lithuania, Vilnius
Thank you for the reply in my previous post. I have sent one more question. Please, help me to resolve this issue.
Thanks.


 

Jump to:  

cron
  © 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