Dukascopy
 
 
Wiki JStore Search Login

Simple strategy needed
 Post subject: Simple strategy needed Post rating: 0   New post Posted: Thu 04 Jun, 2015, 14:59 
User avatar

User rating: 1
Joined: Wed 30 Jul, 2014, 14:33
Posts: 95
Location: Lithuania, Vilnius
I need very simple strategy. Unfortunately, I don't know how to write it. I need to have the SELL position opened after two bid (red) candles and the BUY position opened after two ask (green) candles.
It's simple to have the positions opened after one candle (red or green) but I need to have them opened after TWO candles.
Please, help me to resolve the problem.

Kind regards,
kostakis


 
The Best Answer  Post subject: Re: Simple strategy needed Post rating: 0   New post Posted: Thu 04 Jun, 2015, 16:35 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

You need to use 2 "Get historical candle" blocks with shift 1 and 2 and then apply the same method as you did for a single red/green candle.

Cheers


 
 Post subject: Re: Simple strategy needed Post rating: 0   New post Posted: Thu 04 Jun, 2015, 17:39 
User avatar

User rating: 1
Joined: Wed 30 Jul, 2014, 14:33
Posts: 95
Location: Lithuania, Vilnius
Thanks a lot for the prompt answer. I did that. It works!

Kind regards,
kostakis


 

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