Dukascopy
 
 
Wiki JStore Search Login

Daily and hourly TF relation
 Post subject: Daily and hourly TF relation Post rating: 0   New post Posted: Mon 12 Aug, 2013, 22:47 

User rating: 0
Joined: Tue 23 Jul, 2013, 13:31
Posts: 76
Location: Brazil, Belo Horizonte
I wanted to create a simple strategy that would works on a TF hourly , but took the decision-making levels from TF daily.

But I can not.
Image


Attachments:
File comment: Stategy does not work.
Daily_Hi_Lo_1.vfs [25.84 KiB]
Downloaded 451 times
File comment: Picture of test
2013-08-12_23h43_07.png [96.84 KiB]
Downloaded 771 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: Daily and hourly TF relation Post rating: 0   New post Posted: Tue 13 Aug, 2013, 08:31 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Hello!

As I can see in the picture you have to change the GetHistoricalCandle - candle period - to one hour :mrgreen:

Although, you need to specify your algorithm. If you want to buy when the current price is higher than the last days high you have to adjust ;)

But at least it works like you described it.


Attachments:
Daily_Hi_Lo_1.vfs [29.42 KiB]
Downloaded 445 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: Daily and hourly TF relation Post rating: 0   New post Posted: Tue 13 Aug, 2013, 23:39 

User rating: 0
Joined: Tue 23 Jul, 2013, 13:31
Posts: 76
Location: Brazil, Belo Horizonte
Thanks dirk_r1 for the reply,

I'm not a programmer.
Below I attach a picture of my idea.
And I attach the strategy that I did.
It works, but it loses money.


Image


Attachments:
File comment: Strategy bloks
Daily_Hi_Lo_trail_stop_under_candel_up_end_below_candle_down.vfs [58.03 KiB]
Downloaded 423 times
File comment: Strategy idea
2013-08-13_13h54_19.png [65.53 KiB]
Downloaded 862 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: Daily and hourly TF relation Post rating: 0   New post Posted: Wed 14 Aug, 2013, 09:34 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Alright!

To sum it up:

- daily candle High/Low
- hourly candle

Entry Buy: If an hour candle opens/closes above last daily high
Entry Sell: vice versa

Set stop loss to the low of last hour candle (buy) and vice versa for sell AND set stop loss to break even after 40 Pips gain.

Is that right so far?

EDIT: I ran your strategy - i do not know if the entry is correct but the exit seems to be as defined. Maybe you have to adjust something?


 
 Post subject: Re: Daily and hourly TF relation Post rating: 0   New post Posted: Wed 14 Aug, 2013, 14:20 

User rating: 0
Joined: Tue 23 Jul, 2013, 13:31
Posts: 76
Location: Brazil, Belo Horizonte
Hi dirk_r1,

I tried to put a dynamic trailing stop .

If short: I close my position when prices rise above the EMA (20) High.

If long: close position if prices fall below the EMA (20) Long.

But my code does not work and I do not understand why.


Image
Image
Image


Attachments:
File comment: strategy
Daily_Hi_Lo_t_trailing.vfs [64.22 KiB]
Downloaded 454 times
File comment: why*??%%!!!!????????
2013-08-14_14h59_31.png [141.81 KiB]
Downloaded 744 times
File comment: situation
2013-08-14_14h59_51.png [25.55 KiB]
Downloaded 749 times
File comment: idea
2013-08-14_14h08_32.png [51.44 KiB]
Downloaded 821 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: Daily and hourly TF relation Post rating: 0   New post Posted: Fri 16 Aug, 2013, 11:04 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Ok. Now it should work.


Attachments:
Daily_Hi_Lo_t_trailing.vfs [70.07 KiB]
Downloaded 453 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: Daily and hourly TF relation Post rating: 0   New post Posted: Fri 16 Aug, 2013, 14:15 

User rating: 0
Joined: Tue 23 Jul, 2013, 13:31
Posts: 76
Location: Brazil, Belo Horizonte
Thank you,

I modified the strategy by using two ema's one for long stop and the other short stop.


Image


Attachments:
File comment: strategy
Daily_Hi_Lo_t_trailing_2_EMAS.vfs [72.68 KiB]
Downloaded 429 times
File comment: new bloks
2013-08-16_15h08_09.png [174.11 KiB]
Downloaded 739 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: Daily and hourly TF relation Post rating: 0   New post Posted: Mon 19 Aug, 2013, 11:28 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Hello!

Please have a look in my comment: You have to think about your break even, logically it makes no sense!
Either you adjust it or leave it completely (my suggestion).

Have a nice day!


Attachments:
Daily_Hi_Lo_t_trailing_2_EMAS.vfs [85.46 KiB]
Downloaded 463 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: Daily and hourly TF relation Post rating: 0   New post Posted: Mon 19 Aug, 2013, 20:41 

User rating: 0
Joined: Tue 23 Jul, 2013, 13:31
Posts: 76
Location: Brazil, Belo Horizonte
Hi dirk_r1,

I tried the correct code.
But he gave me problems.
I could not solve it.

I attach screenshots.

Image


Image


Image


Attachments:
File comment: problem_C
2013-08-19_21h23_12.png [112.13 KiB]
Downloaded 728 times
File comment: problem_B
2013-08-19_21h17_31.png [299.88 KiB]
Downloaded 644 times
File comment: problem_A
2013-08-19_21h10_39.png [298.89 KiB]
Downloaded 648 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: Daily and hourly TF relation Post rating: 0   New post Posted: Tue 20 Aug, 2013, 15:38 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
We are investigating right now...Thank you! I will come back to you if I have any news on it.


 

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