Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Pivots Monday.
 Post subject: Pivots Monday. Post rating: 0   New post Posted: Sun 11 Aug, 2013, 19:06 

User rating: 0
Joined: Sun 14 Jul, 2013, 02:50
Posts: 1
Location: VenezuelaVenezuela
Hello Support,

Part of my strategy is to buy or sell on R1,S1,R3 and S3. But on Mondays the pivot becomes a bunch of wrong data. See picture.

I have searched a lot inside the forum to prevent this, but I haven't found anything that solve it. As part of the solution I tried to just send my orders on Tuesday, but then I will miss 1 day, which I don't want. Or just using this code to start from day 2, but it does the same, trows wrong pivot data. Even if i use day 1 or 2, it keeps doing the same.

if (calendar1.get(Calendar.DAY_OF_WEEK) < 2) {
calendar1.setTimeInMillis(bidBar.getTime());
console.getOut().println("SUNDAY! " + calendar1.get(Calendar.DAY_OF_WEEK));}
else{
code of the EA
}

Image


 
 Post subject: Re: Pivots Monday. Post rating: 0   New post Posted: Mon 12 Aug, 2013, 07:54 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
It is likely that is due to different filter between the chart and your strategy, see more:
https://www.dukascopy.com/wiki/#Indicator_usage_checklist


 

Jump to:  

  © 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