|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
How to define a height of candles? |
kostakis
|
Post subject: How to define a height of candles? |
Post rating: 0
|
Posted: Wed 10 Jun, 2015, 12:01
|
|
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.
|
|
|
|
 |
tcsabina
|
Post subject: Re: How to define a height of candles? |
Post rating: 0
|
Posted: Thu 11 Jun, 2015, 14:30
|
|
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...
|
|
|
|
 |
kostakis
|
Post subject: Re: How to define a height of candles? |
Post rating: 0
|
Posted: Thu 11 Jun, 2015, 14:39
|
|
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.
|
|
|
|
 |
API Support
|
Post subject: Re: How to define a height of candles? |
Post rating: 0
|
Posted: Fri 12 Jun, 2015, 12:31
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Does it need to be implemented in Visual Forex or Java code?
|
|
|
|
 |
kostakis
|
Post subject: Re: How to define a height of candles? |
Post rating: 0
|
Posted: Fri 12 Jun, 2015, 13:16
|
|
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.
|
|
|
|
 |
API Support
|
Post subject: Re: How to define a height of candles? |
Post rating: 0
|
Posted: Mon 15 Jun, 2015, 14:22
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|