Multitimeframe Stoch EA
-
Hello,
I'm trying FxDreema and I think it's great!
I have to create an EA that open a BUY trade on M30 if:
- Stoch(5,3,3) is under 20 level on M30
- Stoch(5,3,3) is under 20 level on M15
- Stoch(5,3,3) is under 20 level on M5
- Stoch(5,3,3) is under 20 level on M1
- Stoch(5,3,3) %K line crosses over the %D line on M30
- Stoch(5,3,3) %K line crosses over the %D line on M15
- Stoch(5,3,3) %K line crosses over the %D line on M5
- Stoch(5,3,3) %K line crosses over the %D line on M1
All these conditions is on a candle close. For sell signal is the opposite
If the EA is attached on M15, it open a BUY trade on M15 if:
- Stoch(5,3,3) is under 20 level on M15
- Stoch(5,3,3) is under 20 level on M5
- Stoch(5,3,3) is under 20 level on M1
- Stoch(5,3,3) %K line crosses over the %D line on M15
- Stoch(5,3,3) %K line crosses over the %D line on M5
- Stoch(5,3,3) %K line crosses over the %D line on M1
and so on...
Can I create this EA with FxDreema?
-
Well, not on candle close, but on candle open. So, use Candle ID = 1 in all conditions.
Once per bar -> Condition 1 -> Condition 2 ->
-
__Well, not on candle close, but on candle open. So, use Candle ID = 1 in all conditions.
Once per bar -> Condition 1 -> Condition 2 ->[/quote:384jhvep]
why do we use "once per bar"? can we start "condition"?
-
We can, but then the result will be different. "Once per bar" can pass one time within a candle - from it's creation until it's closed. In the beginning, in the middle, in the end... If it's on top level, it passes on the first tick, because nothing is preventing it from that. If there is a condition, then it can pass later in the candle.