Dukascopy
 
 
Wiki JStore Search Login

Open at market when current price hit a price level without "Pending Open" block
 Post subject: Open at market when current price hit a price level without "Pending Open" block Post rating: 0   New post Posted: Thu 27 Jun, 2013, 03:26 
User avatar

User rating: 1
Joined: Wed 05 Jun, 2013, 03:13
Posts: 29
Location: China, HongKong
Dear supporters:
Just like the illustration below. How should the second "if" block go or another better alternative way, thanks!


Image


Attachments:
untitledStrategy1.vfs [26.89 KiB]
Downloaded 274 times
Capture.JPG [93.69 KiB]
Downloaded 512 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: Open at market when current price hit a price level without "Pending Open" block Post rating: 0   New post Posted: Thu 27 Jun, 2013, 06:59 
User avatar

User rating: 7
Joined: Wed 04 Jul, 2012, 02:40
Posts: 109
Location: Australia, Melbourne
Hi Tyson,

I have changed your system slightly - so this will buy when price = or is greater than 5 pips above the previous high.

Please note you do not have trade management - so this will open many positions if that criteria is filled. If you look at some of my other posts - I have posted a way to do this previously.

Kind regards,

DOC
Image


Attachments:
tickbid.jpg [455.74 KiB]
Downloaded 538 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: Open at market when current price hit a price level without "Pending Open" block Post rating: 0   New post Posted: Thu 27 Jun, 2013, 07:48 
User avatar

User rating: 1
Joined: Wed 05 Jun, 2013, 03:13
Posts: 29
Location: China, HongKong
You are too kind, Doc, and thank you. I'v just tested your solution, but it couldn't open one position. Is there something wrong?


 
 Post subject: Re: Open at market when current price hit a price level without "Pending Open" block Post rating: 0   New post Posted: Thu 27 Jun, 2013, 08:32 
Site Administrator
User avatar

User rating:
Joined: Fri 21 Jun, 2013, 16:50
Posts: 197
Location: FranceFrance
Question: why don't you use the "Pending order" component?


 
 Post subject: Re: Open at market when current price hit a price level without "Pending Open" block Post rating: 0   New post Posted: Thu 27 Jun, 2013, 09:40 
User avatar

User rating: 1
Joined: Wed 05 Jun, 2013, 03:13
Posts: 29
Location: China, HongKong
Bruno_Grunberg wrote:
Question: why don't you use the "Pending order" component?


Depends on my strategy, so I need help please.


 
 Post subject: Re: Open at market when current price hit a price level without "Pending Open" block Post rating: 0   New post Posted: Thu 27 Jun, 2013, 11:18 
Site Administrator
User avatar

User rating:
Joined: Fri 21 Jun, 2013, 16:50
Posts: 197
Location: FranceFrance
Hello

Tyson, it is difficult to help you because I do not understand what you want.

What is your strategy is suppose to do?

Quote:
Depends on my strategy, so I need help please.
is not giving any indication.

Diczero' strategy open a position if the next tick after a candle is 5 pips above the last candle high. So no position is opened because the condition is not reached.

If you do not filter the candles by period, the calculation could be made on any candle (10 seconds, 1 hour, etc..) It does not make much sens.

Please explain clearly what you want to achieve with this 4 blocks.


 
 Post subject: Re: Open at market when current price hit a price level without "Pending Open" block Post rating: 0   New post Posted: Thu 27 Jun, 2013, 12:49 
User avatar

User rating: 1
Joined: Wed 05 Jun, 2013, 03:13
Posts: 29
Location: China, HongKong
Bruno_Grunberg wrote:
Hello

Tyson, it is difficult to help you because I do not understand what you want.

What is your strategy is suppose to do?

Quote:
Depends on my strategy, so I need help please.
is not giving any indication.

Diczero' strategy open a position if the next tick after a candle is 5 pips above the last candle high. So no position is opened because the condition is not reached.

If you do not filter the candles by period, the calculation could be made on any candle (10 seconds, 1 hour, etc..) It does not make much sens.

Please explain clearly what you want to achieve with this 4 blocks.


Yeah! Define the period for candle even the defaultPeriod has set! It's work! You are so quick! Thank you all! :D


 
 Post subject: Re: Open at market when current price hit a price level without "Pending Open" block Post rating: 0   New post Posted: Fri 28 Jun, 2013, 13:44 
Site Administrator
User avatar

User rating:
Joined: Fri 21 Jun, 2013, 16:50
Posts: 197
Location: FranceFrance
Good :D


 

Jump to:  

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