Pips away from open price - first entry dont respect pips
-
Hi again.
Im building a tiny grid using pips away from open price, so I can include stop and limit orders.
this is the project:
https://fxdreema.com/shared/bXUpsK8Gc
As you can see new ordens should happen after 20 pips but, I don't know why, the first entry (no mather if buy or sell), always happen only after market walks 100 pips. After this first entry happen, then everything works fine (20 pips every new order).
Any idea why this, and how to fix it?
Thanks in advance
-
@trdjb3 I see your project is on mq5 but both pink blocks are 'for each trade' instead of 'for each position'. Why did you use them?
-
Hi.
Thank you for your response. my bad, I copied wrong block from mt4 project.
Anyway I updated the project and the problem remains:
https://fxdreema.com/shared/3nzg4xwUb
This is a test to build a bigger grid. What I Expect:
Determinate that when market moves X pips (positive or negative) from First (and always first) order, insert a buy or sell pendind order away Y pips (from market price or from first order, the easier to do).
DETAILS:
-
This behaviour should happen only afer market moves X pips once. For exeample, if X=100 pips, when market moves 100 pips then trigger for the pendind order. When market moves more 100 pips (200pips from beginning), not.
-
Option to choose if, after this position (pending position) be filled by take profit or stop loss, the EA should repeat it or not, and determinate how many times repeat it
I will keep triyng to do this and search in forum, but any help is very appreciated!
B.R.
-
-
And here I created a new project trying to understand and make it work. In this one orders are oppened in a infinite loop
https://fxdreema.com/shared/ccApDTxK
What Am I doind wrong?