Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

The strategy omit a block
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=141&t=50798
Page 1 of 1

Author:  juandata [ Thu 13 Feb, 2014, 00:02 ]
Post subject:  The strategy omit a block

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 308 times
Chart_EUR_USD_30 Mins_snapshot2.png [20.33 KiB]
Downloaded 300 times

Author:  juandata [ Thu 13 Feb, 2014, 00:11 ]
Post subject:  Re: The strategy omit a block

Here is the strategy Code:

Attachments:
Sample.vfs [40.71 KiB]
Downloaded 115 times

  Page 1 of 1