Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Please help with Ichimoku strategy http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=55542 |
Page 1 of 1 |
Author: | Docdow [ Thu 28 Sep, 2017, 14:19 ] | |||
Post subject: | Please help with Ichimoku strategy | |||
Hi, Please give some tips why my strategy isn't working. I tried all ideas I could have come up with. All I want is to go short when the Ichimoku cloud is red and when Kijun line is below Tenkan. Then exit when Kijun line is above Tenkan line. Thank you.
|
Author: | Docdow [ Fri 29 Sep, 2017, 14:31 ] | |||
Post subject: | Need help with Ichimoku strategy - exit doesn't work | |||
Hi, Please help with a very simple Ichimoku strategy. A short entry should happen when the cloud is Red and Kijun(2) is below Tenkan(9) line. The exit is when Kijun crosses above Tenkan. In the attached strategy the exit doesn't work at all. Any ideas why?
|
Author: | amine_chourou [ Tue 03 Oct, 2017, 10:52 ] | |||
Post subject: | Re: Please help with Ichimoku strategy | |||
Hi there ! Sorry for the delayed answer. The reason of non exit is explained by the following block: The variable "pos" doesn't have neither static value nor dynamic: so the system is interpreting this as an unknown value and comparing it with 0 is simply impossible. Therefore the exit is blocked. Besides, I noticed the use of OnTick method while you seems to want to trade on 15mn candles. I've changed that in the attached version. Also, there is a redundancy when checking the number of open positions...So I removed the additional IF Cheers !
|
Page 1 of 1 |