This EA is when touch round number GBPUSD like 1.5100, 1.5200, 1.5300 .... etc every 100pips distance then open buy and sell with 100pip TP, no SL.
let's say the current price for GBPUSD is 1.5230, the EA will normalize it into 2 decimal point which is 1.52, if current price is 1.5270, then will be 1.53
if the price go to 1.5300 or 1.5200 then open 0.1 lot buy and 0.1 lot sell with TP 100pips.
Let's say price go to 1.5300, after open buy and sell each 0.1 lot then wait for price go to 1.5200 or 1.5400 to buy and sell 0.1 lot each with tp 100pips too..
the problem is when the price ranging around 1.5300, the EA keep on opening buy and sell. How to solve it?
You can run this EA with strategy tester with 100k and 0.1 lot for GBPUSD. You will know what is the problem.
let's say the current price for GBPUSD is 1.5230, the EA will normalize it into 2 decimal point which is 1.52, if current price is 1.5270, then will be 1.53
if the price go to 1.5300 or 1.5200 then open 0.1 lot buy and 0.1 lot sell with TP 100pips.
Let's say price go to 1.5300, after open buy and sell each 0.1 lot then wait for price go to 1.5200 or 1.5400 to buy and sell 0.1 lot each with tp 100pips too..
the problem is when the price ranging around 1.5300, the EA keep on opening buy and sell. How to solve it?
You can run this EA with strategy tester with 100k and 0.1 lot for GBPUSD. You will know what is the problem.
Attached File(s)
100pipEA.mq4
< 1 KB
|
379 downloads