Does anyone know how to make my EA to only place one trade per entry signal?
I'm trying to build a grid system based on Standard Deviation, where after a first trade is placed, subsequent entries will be according to the price movement against my first entry price in a multiple of SDs.
For example, when my first Long entry is triggered at let's say 1.9950. The current SD is 500. Hence my subsequent entry price would be 1.9450, then 1.8950, 1.8450 etc...
The problem is my EA will place multiple entry at each of these level, including the first entry level, as long as the all the conditions are met.
How do I ensure that my EA will only place only 1 trade at each entry signal?
I'm trying to build a grid system based on Standard Deviation, where after a first trade is placed, subsequent entries will be according to the price movement against my first entry price in a multiple of SDs.
For example, when my first Long entry is triggered at let's say 1.9950. The current SD is 500. Hence my subsequent entry price would be 1.9450, then 1.8950, 1.8450 etc...
The problem is my EA will place multiple entry at each of these level, including the first entry level, as long as the all the conditions are met.
How do I ensure that my EA will only place only 1 trade at each entry signal?
Attached File(s)
Day Grid.mq5
21 KB
|
363 downloads