|
amine_chourou
|
Post subject: Re: Tick and Candle |
Post rating: 1
|
Posted: Tue 28 Mar, 2017, 16:02
|
|
Visual JForex expert at Dukascopy | |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi,
1/ Well if you use Last tick price variable (like in the attached example test299) connected to OnCandle method it will simply catch last tick price at the moment when the OnCandle method gets activated and/or conditions let it go.
2/ I did not understand what are you looking for but here is some info: - If you want to check the current value of a variable when a condition is met or a block is 'reached' use the break point and put the var on the worksapce. - If you need to catch the time of such phenomena use Assign to get the timestamp
Else please describe your need thoroughly Thanks !
Attachments: |
test299.vfs [25.72 KiB]
Downloaded 128 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.
|
|
|
|
|
|
foreignexchange
|
Post subject: Re: Tick and Candle |
Post rating: 0
|
Posted: Tue 28 Mar, 2017, 18:38
|
|
User rating: 0
Joined: Fri 19 Sep, 2014, 12:05 Posts: 61 Location: Italy, montopoli di sabina
|
Thanks For the -2 I would know a specific value of an indicator of a previous candle. For example in a strategy it is utilized the Minmax indicator to find the min or max value and timestamp to get when has been obtained the minmax. Is it possible to know what kind of value have an indicator (RSI) in the minmax ?
|
|
|
|
|
amine_chourou
|
Post subject: Re: Tick and Candle |
Post rating: 1
|
Posted: Wed 29 Mar, 2017, 14:21
|
|
Visual JForex expert at Dukascopy | |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi,
If I well understood you need to retrieve the time-stamp of the Min Max indicator from a given candle's array. Given the assumption that the the highest and lowest MINMAX indicator refer to the highest and lowest candle from that given range, you can see attached how to implement that.
Let me know if it cope with your needs.
Cheers
Attachments: |
HighestLowest_And_Minmax.vfs [32.29 KiB]
Downloaded 143 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.
|
|
|
|
|
|
foreignexchange
|
Post subject: Re: Tick and Candle |
Post rating: 0
|
Posted: Wed 29 Mar, 2017, 17:37
|
|
User rating: 0
Joined: Fri 19 Sep, 2014, 12:05 Posts: 61 Location: Italy, montopoli di sabina
|
No Amine, your post is great and suitable but is not what I would like to test. Sorry probably is for my english The objective is to find the value of the RSI in correspondence of a MIN (or Max) of a selected period. For example the strategy wants to know what is the value of the RSI during the MIN on a period of 200 Candles. Tried with timestamp to count the number of the previous candles to find with the shift but do not seems so intelligent. Thanks and congratulations for the new version of the platform, it is great : )
|
|
|
|
|
amine_chourou
|
Post subject: Re: Tick and Candle |
Post rating: 1
|
Posted: Tue 04 Apr, 2017, 15:39
|
|
Visual JForex expert at Dukascopy | |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
Hi there, Okay, this has been implemented in the attached example: Quote: the strategy wants to know what is the value of the RSI during the MIN on a period of 200 Candles. this condition was simply made with the help of an RSI indicator and the assign block that comes at the end is catching the value of the RSI right at the moment when the minimum and the maximums are identified. The time stamp will help you locating the moment.
Attachments: |
HighestLowest_And_Minmax_RSI.vfs [34.59 KiB]
Downloaded 152 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.
|
|
|
|
|
|
foreignexchange
|
Post subject: Re: Tick and Candle |
Post rating: 0
|
Posted: Thu 06 Apr, 2017, 11:34
|
|
User rating: 0
Joined: Fri 19 Sep, 2014, 12:05 Posts: 61 Location: Italy, montopoli di sabina
|
Thanks Amine, could I send you the strategy on your mail? Because I would like to partecipate to the strategy contest with an implementation of that. The strategy seems to do not open trades but the code seems logic and in agreement with your suggestions, so maybe it is just a little thing to improve.
|
|
|
|
|
amine_chourou
|
Post subject: Re: Tick and Candle |
Post rating: 1
|
Posted: Thu 06 Apr, 2017, 15:08
|
|
Visual JForex expert at Dukascopy | |
User rating: 288
Joined: Thu 18 Apr, 2013, 09:26 Posts: 1496 Location: Switzerland, Geneva
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|