Dukascopy
 
 
Wiki JStore Search Login

The strategy omit a block
 Post subject: The strategy omit a block Post rating: 0   New post Posted: Thu 13 Feb, 2014, 00:02 
User avatar

User rating: 0
Joined: Mon 11 Mar, 2013, 00:00
Posts: 47
Location: Colombia, manizales
Hello Dukascopy Community,

It seems the strategy is not taking in account a block (if). I am using two pivots (weekly and daily), what I want first is to analyze if the last candle open (10 second candles) is BELOW THE WEEKLY PIVOT POINT, then, after this condition, analyze if the price is above the daily pivot point, after those conditions, analyze if the last candle close is above the daily pivot point (it means that the price brached it), after all those conditions, open a buy position.

Here is what I mean:

Image

Sometimes the strategy open positions even if any of this conditions are acomplished:

Image


I am using 10 second candles
Ticks - process all ticks

And I am testing it directly in my live account.


Attachments:
Chart_EUR_USD_30 Mins_snapshot.png [26.92 KiB]
Downloaded 197 times
Chart_EUR_USD_30 Mins_snapshot2.png [20.33 KiB]
Downloaded 221 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: The strategy omit a block Post rating: 0   New post Posted: Thu 13 Feb, 2014, 00:11 
User avatar

User rating: 0
Joined: Mon 11 Mar, 2013, 00:00
Posts: 47
Location: Colombia, manizales
Here is the strategy Code:


Attachments:
Sample.vfs [40.71 KiB]
Downloaded 87 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.
 

Jump to:  

  © 1998-2011 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