Need help to build an EA
-
@l-andorrà Hi. This is all it gives me - shared/Rv6aQVGJd
-
-
@jomo10 you have to add at the beginning of that link the following: fxdreema.com/
-
@jomo10 said in Need help to build an EA:
shared/Rv6aQVGJd
This is how you need to do it jomo 10.
https://fxdreema.com/shared/Rv6aQVGJd
Blocks 5 and 6 must be separated from the rest of the structure. A 'For each trade' block creates a loop for all happening below it so it needs to be usually on top of its own tree of blocks. On the other hand, what does that 200 mean on the adjust box on blocks 2 and 3?
-
@l-andorrà Hi. The 200 is the number of points that the current candle (high) will differ from the previous candle (high). On DE30 that will be 20 points e.g. 12560 versus 12580. In terms of the above, are you saying that blocks 5 and 6 must not be linked to the blocks 1 - 4?, and is it required that block 5 be there at all? Regards
-
I'm afraid I don't fully understand. Do you mean that the current high (candle ID 0) must be at least 200 pips (or 20) above the previous one (candle ID 1)? If so, you need to write "+200 pip" instead (or "-200 pips").
On the other hand, just remove the 'for each trade' block. It is useless for launching trade. Finally, are conditions on blocks 2 and 3 supposed to happen at the same time? Or just any of them?
-
@l-andorrà Hi. Yes quite correct on your second sentence. On the one condition (in a rising market) the pips will be (200) +20, whereas in a declining market the pips will be-(200) -20. I will remove the "each trade block" Conditions 2 and 3 will not happen at the same time. They are dependant on whether the market is going up or down. The other questions are: Would it be set up on the tick option, and if so, how will I control that it only works on the 15-minute chart?Thanks
-
Yes, you can create the whole structure on the current 'on tick' tab. In effect this is the place to do it. You can control it by using the 'once per bar' block. That block passes just once every time a tick is arriving for the timeframe it's defined for. In your case M15.
-
@l-andorrà Hi. Did you get my message responding to your offer yesterday? Regards
-
Yes I did. And I answered you. Thank you.