指定
Hello Dear Community of MQL5,
I would like to create an EA that opens and closes positions depending on the current trend with the manuel pip values we can enter. I will explain the work-flow down so please bear with me.
1. EA has detected the trend ( let's say it is going up ) and made a buy with the lot and pip values that i entered.
1.1. if up trend continues it will close the position and sell at the value that i enter manually
1.2. if the trend goes the other way around, the EA should do the opposite operation ( which is a sell in this current situation ) with the value of lot*2 at the pip value i want.
1.3. if the trend goes the other way around again, EA should keep doing the opposite operation with the one before, with the value of the same lot*2 ( it is same value with 1.2. )
2. after this point it goes into a loop until it catches the pip profit which i have entered beforehand.
Also I would like to have a manuel number of positions that i enter. I dont want it to start too many positions in the same, to test it out i would like to start with 1 position series.
Looking forward for your answers
Best wishes,
Behnan OR.